blob: f4ca01c2a5469ca6c5aabf950fa8accfcf9b677c [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
15subdirs = [
Steven Moreland346cf512017-02-16 19:23:24 -080016 "allocator/1.0",
17 "allocator/1.0/default",
Steven Morelandcb9e4902017-10-02 13:24:49 -070018 "allocator/1.0/utils",
Steven Moreland2ef31d82016-12-21 14:38:23 -080019 "base/1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010020 "manager/1.0",
Steven Moreland2a2678e2017-07-21 18:07:38 -070021 "manager/1.1",
Martijn Coenen30791002016-12-01 15:40:46 +010022 "memory/1.0",
23 "memory/1.0/default",
Steven Moreland2ef31d82016-12-21 14:38:23 -080024 "token/1.0",
Pawin Vongmasa155e9d32017-03-09 06:38:22 -080025 "token/1.0/utils",
Yifan Hong00f4a392016-11-16 12:35:58 -080026]
27
Steven Moreland30b8a422017-07-18 22:03:52 -070028hidl_package_root {
29 name: "android.hidl",
30 path: "system/libhidl/transport",
31}
32
Yifan Hong0abe5aa2017-11-08 10:42:55 -080033cc_library {
Yifan Hong00f4a392016-11-16 12:35:58 -080034 name: "libhidltransport",
Steven Moreland647c0af2017-04-11 09:39:24 -070035 vendor_available: true,
Justin Yun74f65932017-07-24 15:19:45 +090036 vndk: {
37 enabled: true,
38 support_system_process: true,
39 },
Steven Morelandc75fc622017-08-04 11:04:39 -070040 defaults: [
41 "libhidl-defaults",
42 "hidl-module-defaults",
43 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080044 shared_libs: [
45 "libbase",
46 "liblog",
47 "libutils",
48 "libhidlbase",
49 "libhwbinder",
50 "libcutils",
Jiyong Parkba8ace12017-05-15 15:44:39 +090051 "libvndksupport",
Yifan Hong00f4a392016-11-16 12:35:58 -080052 ],
53 export_shared_lib_headers: [
54 "libbase",
55 "libutils",
56 "libhidlbase",
57 ],
58
59 export_include_dirs: ["include"],
60
Yifan Hong2cd440c2016-11-23 11:30:36 -080061 generated_sources: [
62 "android.hidl.manager@1.0_genc++",
Steven Moreland2a2678e2017-07-21 18:07:38 -070063 "android.hidl.manager@1.1_genc++",
Yifan Hong2cd440c2016-11-23 11:30:36 -080064 "android.hidl.base@1.0_genc++"
65 ],
66 generated_headers: [
67 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070068 "android.hidl.manager@1.1_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080069 "android.hidl.base@1.0_genc++_headers"
70 ],
71 export_generated_headers: [
72 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070073 "android.hidl.manager@1.1_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080074 "android.hidl.base@1.0_genc++_headers"
75 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080076
77 srcs: [
78 "HidlBinderSupport.cpp",
Steven Moreland0b1e62a2017-10-09 13:03:17 -070079 "HidlPassthroughSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080080 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070081 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080082 "ServiceManagement.cpp",
83 "Static.cpp"
84 ],
85
86 product_variables: {
87 debuggable: {
88 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
89 },
Steven Morelanda15479f2017-10-06 16:06:26 -070090 treble: {
91 cflags: ["-DLIBHIDL_TARGET_TREBLE"]
92 },
Yifan Hong00f4a392016-11-16 12:35:58 -080093 },
94}