blob: 92fbc943c01fa2014b6dd2522a1a68cb9587985b [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",
17 path: "system/libhidl/transport",
18}
19
Yifan Hong0abe5aa2017-11-08 10:42:55 -080020cc_library {
Yifan Hong00f4a392016-11-16 12:35:58 -080021 name: "libhidltransport",
Jerry Zhang86ae9992018-05-30 17:11:09 -070022 recovery_available: true,
Steven Moreland647c0af2017-04-11 09:39:24 -070023 vendor_available: true,
Justin Yun74f65932017-07-24 15:19:45 +090024 vndk: {
25 enabled: true,
26 support_system_process: true,
27 },
Steven Morelandc75fc622017-08-04 11:04:39 -070028 defaults: [
29 "libhidl-defaults",
30 "hidl-module-defaults",
31 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080032 shared_libs: [
33 "libbase",
34 "liblog",
35 "libutils",
36 "libhidlbase",
37 "libhwbinder",
38 "libcutils",
Jiyong Parkba8ace12017-05-15 15:44:39 +090039 "libvndksupport",
Yifan Hong00f4a392016-11-16 12:35:58 -080040 ],
41 export_shared_lib_headers: [
Yifan Hong00f4a392016-11-16 12:35:58 -080042 "libutils",
43 "libhidlbase",
44 ],
45
46 export_include_dirs: ["include"],
47
Yifan Hong2cd440c2016-11-23 11:30:36 -080048 generated_sources: [
49 "android.hidl.manager@1.0_genc++",
Steven Moreland2a2678e2017-07-21 18:07:38 -070050 "android.hidl.manager@1.1_genc++",
Steven Moreland89909692018-05-30 14:11:19 -070051 "android.hidl.manager@1.2_genc++",
Yifan Hong2cd440c2016-11-23 11:30:36 -080052 "android.hidl.base@1.0_genc++"
53 ],
54 generated_headers: [
55 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070056 "android.hidl.manager@1.1_genc++_headers",
Steven Moreland89909692018-05-30 14:11:19 -070057 "android.hidl.manager@1.2_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080058 "android.hidl.base@1.0_genc++_headers"
59 ],
60 export_generated_headers: [
61 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070062 "android.hidl.manager@1.1_genc++_headers",
Steven Moreland89909692018-05-30 14:11:19 -070063 "android.hidl.manager@1.2_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080064 "android.hidl.base@1.0_genc++_headers"
65 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080066
67 srcs: [
68 "HidlBinderSupport.cpp",
Steven Moreland0b1e62a2017-10-09 13:03:17 -070069 "HidlPassthroughSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080070 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070071 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080072 "ServiceManagement.cpp",
73 "Static.cpp"
74 ],
75
76 product_variables: {
77 debuggable: {
78 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
79 },
Steven Moreland757394b2017-12-13 14:09:24 -080080 enforce_vintf_manifest: {
81 cflags: ["-DENFORCE_VINTF_MANIFEST"]
Steven Morelanda15479f2017-10-06 16:06:26 -070082 },
Yifan Hong00f4a392016-11-16 12:35:58 -080083 },
Jerry Zhang86ae9992018-05-30 17:11:09 -070084
85 target: {
86 recovery: {
87 exclude_shared_libs: ["libvndksupport"],
88 },
89 },
Yifan Hong00f4a392016-11-16 12:35:58 -080090}
Steven Moreland6a0c66b2018-03-29 13:27:49 -070091
92// deprecated/legacy (already removed in mainline Android)
93// use android-hidl-base-V1-0-java instead!
94java_library_static {
95 name: "android.hidl.base-V1.0-java-static",
96 no_framework_libs: true,
97 defaults: ["hidl-java-module-defaults"],
98 srcs: [":android.hidl.base-V1.0-java_gen_java"],
99 libs: [
100 "hwbinder",
101 ],
102 product_variables: {
103 pdk: {
104 enabled: false,
105 },
106 },
107}