blob: 482156093acf9ba13b9d8c18a7081e5cb9e349e7 [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
Yifan Hong0abe5aa2017-11-08 10:42:55 -080028cc_library {
Yifan Hong00f4a392016-11-16 12:35:58 -080029 name: "libhidltransport",
Steven Moreland647c0af2017-04-11 09:39:24 -070030 vendor_available: true,
Justin Yun74f65932017-07-24 15:19:45 +090031 vndk: {
32 enabled: true,
33 support_system_process: true,
34 },
Steven Morelandc75fc622017-08-04 11:04:39 -070035 defaults: [
36 "libhidl-defaults",
37 "hidl-module-defaults",
38 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080039 shared_libs: [
40 "libbase",
41 "liblog",
42 "libutils",
43 "libhidlbase",
44 "libhwbinder",
45 "libcutils",
Jiyong Parkba8ace12017-05-15 15:44:39 +090046 "libvndksupport",
Yifan Hong00f4a392016-11-16 12:35:58 -080047 ],
48 export_shared_lib_headers: [
49 "libbase",
50 "libutils",
51 "libhidlbase",
52 ],
53
54 export_include_dirs: ["include"],
55
Yifan Hong2cd440c2016-11-23 11:30:36 -080056 generated_sources: [
57 "android.hidl.manager@1.0_genc++",
Steven Moreland2a2678e2017-07-21 18:07:38 -070058 "android.hidl.manager@1.1_genc++",
Yifan Hong2cd440c2016-11-23 11:30:36 -080059 "android.hidl.base@1.0_genc++"
60 ],
61 generated_headers: [
62 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070063 "android.hidl.manager@1.1_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080064 "android.hidl.base@1.0_genc++_headers"
65 ],
66 export_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 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080071
72 srcs: [
73 "HidlBinderSupport.cpp",
Steven Moreland0b1e62a2017-10-09 13:03:17 -070074 "HidlPassthroughSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080075 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070076 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080077 "ServiceManagement.cpp",
78 "Static.cpp"
79 ],
80
81 product_variables: {
82 debuggable: {
83 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
84 },
Steven Morelanda15479f2017-10-06 16:06:26 -070085 treble: {
86 cflags: ["-DLIBHIDL_TARGET_TREBLE"]
87 },
Yifan Hong00f4a392016-11-16 12:35:58 -080088 },
89}