blob: f7830220dae1a11d25f5f254c90ac15e84a1b1c7 [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 Moreland30b8a422017-07-18 22:03:52 -070015hidl_package_root {
16 name: "android.hidl",
Steven Moreland30b8a422017-07-18 22:03:52 -070017}
18
Yifan Hong0abe5aa2017-11-08 10:42:55 -080019cc_library {
Yifan Hong00f4a392016-11-16 12:35:58 -080020 name: "libhidltransport",
Jerry Zhang86ae9992018-05-30 17:11:09 -070021 recovery_available: true,
Steven Moreland647c0af2017-04-11 09:39:24 -070022 vendor_available: true,
Justin Yun74f65932017-07-24 15:19:45 +090023 vndk: {
24 enabled: true,
25 support_system_process: true,
26 },
Steven Morelandc75fc622017-08-04 11:04:39 -070027 defaults: [
28 "libhidl-defaults",
29 "hidl-module-defaults",
30 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080031 shared_libs: [
32 "libbase",
33 "liblog",
34 "libutils",
35 "libhidlbase",
36 "libhwbinder",
37 "libcutils",
Jiyong Parkba8ace12017-05-15 15:44:39 +090038 "libvndksupport",
Yifan Hong00f4a392016-11-16 12:35:58 -080039 ],
40 export_shared_lib_headers: [
Yifan Hong00f4a392016-11-16 12:35:58 -080041 "libutils",
42 "libhidlbase",
43 ],
44
45 export_include_dirs: ["include"],
46
Yifan Hong2cd440c2016-11-23 11:30:36 -080047 generated_sources: [
48 "android.hidl.manager@1.0_genc++",
Steven Moreland2a2678e2017-07-21 18:07:38 -070049 "android.hidl.manager@1.1_genc++",
Steven Moreland89909692018-05-30 14:11:19 -070050 "android.hidl.manager@1.2_genc++",
Yifan Hong2cd440c2016-11-23 11:30:36 -080051 "android.hidl.base@1.0_genc++"
52 ],
53 generated_headers: [
54 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070055 "android.hidl.manager@1.1_genc++_headers",
Steven Moreland89909692018-05-30 14:11:19 -070056 "android.hidl.manager@1.2_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080057 "android.hidl.base@1.0_genc++_headers"
58 ],
59 export_generated_headers: [
60 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070061 "android.hidl.manager@1.1_genc++_headers",
Steven Moreland89909692018-05-30 14:11:19 -070062 "android.hidl.manager@1.2_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080063 "android.hidl.base@1.0_genc++_headers"
64 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080065
66 srcs: [
67 "HidlBinderSupport.cpp",
Steven Moreland0b1e62a2017-10-09 13:03:17 -070068 "HidlPassthroughSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080069 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070070 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080071 "ServiceManagement.cpp",
72 "Static.cpp"
73 ],
74
75 product_variables: {
76 debuggable: {
77 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
78 },
Steven Moreland757394b2017-12-13 14:09:24 -080079 enforce_vintf_manifest: {
80 cflags: ["-DENFORCE_VINTF_MANIFEST"]
Steven Morelanda15479f2017-10-06 16:06:26 -070081 },
Yifan Hong00f4a392016-11-16 12:35:58 -080082 },
Jerry Zhang86ae9992018-05-30 17:11:09 -070083
84 target: {
85 recovery: {
86 exclude_shared_libs: ["libvndksupport"],
87 },
88 },
Yifan Hong00f4a392016-11-16 12:35:58 -080089}