blob: dbbbdaf9a7f9aa3bf2e48667d4118940f6f4df41 [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 Moreland2ef31d82016-12-21 14:38:23 -080018 "base/1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010019 "manager/1.0",
Steven Moreland2a2678e2017-07-21 18:07:38 -070020 "manager/1.1",
Martijn Coenen30791002016-12-01 15:40:46 +010021 "memory/1.0",
22 "memory/1.0/default",
Steven Moreland2ef31d82016-12-21 14:38:23 -080023 "token/1.0",
Pawin Vongmasa155e9d32017-03-09 06:38:22 -080024 "token/1.0/utils",
Yifan Hong00f4a392016-11-16 12:35:58 -080025]
26
27cc_library_shared {
28 name: "libhidltransport",
Steven Moreland647c0af2017-04-11 09:39:24 -070029 vendor_available: true,
Justin Yun74f65932017-07-24 15:19:45 +090030 vndk: {
31 enabled: true,
32 support_system_process: true,
33 },
Steven Morelandc75fc622017-08-04 11:04:39 -070034 defaults: [
35 "libhidl-defaults",
36 "hidl-module-defaults",
37 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080038 shared_libs: [
39 "libbase",
40 "liblog",
41 "libutils",
42 "libhidlbase",
43 "libhwbinder",
44 "libcutils",
Jiyong Parkba8ace12017-05-15 15:44:39 +090045 "libvndksupport",
Yifan Hong00f4a392016-11-16 12:35:58 -080046 ],
47 export_shared_lib_headers: [
48 "libbase",
49 "libutils",
50 "libhidlbase",
51 ],
52
53 export_include_dirs: ["include"],
54
Yifan Hong2cd440c2016-11-23 11:30:36 -080055 generated_sources: [
56 "android.hidl.manager@1.0_genc++",
Steven Moreland2a2678e2017-07-21 18:07:38 -070057 "android.hidl.manager@1.1_genc++",
Yifan Hong2cd440c2016-11-23 11:30:36 -080058 "android.hidl.base@1.0_genc++"
59 ],
60 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",
Yifan Hong2cd440c2016-11-23 11:30:36 -080063 "android.hidl.base@1.0_genc++_headers"
64 ],
65 export_generated_headers: [
66 "android.hidl.manager@1.0_genc++_headers",
Steven Moreland2a2678e2017-07-21 18:07:38 -070067 "android.hidl.manager@1.1_genc++_headers",
Yifan Hong2cd440c2016-11-23 11:30:36 -080068 "android.hidl.base@1.0_genc++_headers"
69 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080070
71 srcs: [
72 "HidlBinderSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080073 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070074 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080075 "ServiceManagement.cpp",
76 "Static.cpp"
77 ],
78
79 product_variables: {
80 debuggable: {
81 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
82 },
Steven Morelanda15479f2017-10-06 16:06:26 -070083 treble: {
84 cflags: ["-DLIBHIDL_TARGET_TREBLE"]
85 },
Yifan Hong00f4a392016-11-16 12:35:58 -080086 },
87}