blob: 8fe2702cba5276473e9cc84c07652e042ffb4f01 [file] [log] [blame]
Yifan Hong00f4a392016-11-16 12:35:58 -08001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Steven Morelanda46371d2019-06-05 18:29:06 -070015cc_defaults {
16 name: "libhidlbase-impl-shared-libs",
Yifan Hong00f4a392016-11-16 12:35:58 -080017 shared_libs: [
18 "libbase",
Yifan Hong44c0e572017-01-20 15:41:52 -080019 "libcutils",
Yifan Hong00f4a392016-11-16 12:35:58 -080020 "liblog",
21 "libutils",
Yifan Hong00f4a392016-11-16 12:35:58 -080022 ],
23 export_shared_lib_headers: [
Yifan Hong00f4a392016-11-16 12:35:58 -080024 "libutils",
Steven Moreland686f6112017-04-13 18:46:35 -070025 "libcutils", // for native_handle.h
Yifan Hong00f4a392016-11-16 12:35:58 -080026 ],
Steven Morelanda46371d2019-06-05 18:29:06 -070027}
28
29cc_library {
30 name: "libhidlbase-impl-internal",
31 vendor_available: true,
32 recovery_available: true,
33 defaults: [
34 "libhidlbase-impl-shared-libs",
35 "libhidl-defaults"
36 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080037 local_include_dirs: ["include"],
38 export_include_dirs: ["include"],
39
Yifan Hong00f4a392016-11-16 12:35:58 -080040 sanitize: {
41 misc_undefined: ["integer"],
42 },
43
44 srcs: [
Steven Moreland337c3ae2016-11-22 13:37:32 -080045 "HidlInternal.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080046 "HidlSupport.cpp",
47 "Status.cpp",
48 "TaskRunner.cpp",
49 ],
50
51 product_variables: {
52 debuggable: {
53 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
54 },
55 },
56}