blob: 4e424bee20274f162a816fae19f24c2f88fa2018 [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",
20 "memory/1.0",
21 "memory/1.0/default",
Steven Moreland2ef31d82016-12-21 14:38:23 -080022 "token/1.0",
Pawin Vongmasa155e9d32017-03-09 06:38:22 -080023 "token/1.0/utils",
Yifan Hong00f4a392016-11-16 12:35:58 -080024]
25
26cc_library_shared {
27 name: "libhidltransport",
Steven Moreland647c0af2017-04-11 09:39:24 -070028 vendor_available: true,
Steven Moreland8dd65742017-02-17 22:39:46 -080029 cflags: libhidl_flags,
Yifan Hong00f4a392016-11-16 12:35:58 -080030 shared_libs: [
31 "libbase",
32 "liblog",
33 "libutils",
34 "libhidlbase",
35 "libhwbinder",
36 "libcutils",
37 ],
38 export_shared_lib_headers: [
39 "libbase",
40 "libutils",
41 "libhidlbase",
42 ],
43
44 export_include_dirs: ["include"],
45
Yifan Hong2cd440c2016-11-23 11:30:36 -080046 generated_sources: [
47 "android.hidl.manager@1.0_genc++",
48 "android.hidl.base@1.0_genc++"
49 ],
50 generated_headers: [
51 "android.hidl.manager@1.0_genc++_headers",
52 "android.hidl.base@1.0_genc++_headers"
53 ],
54 export_generated_headers: [
55 "android.hidl.manager@1.0_genc++_headers",
56 "android.hidl.base@1.0_genc++_headers"
57 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080058
59 srcs: [
60 "HidlBinderSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080061 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070062 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080063 "ServiceManagement.cpp",
64 "Static.cpp"
65 ],
66
67 product_variables: {
68 debuggable: {
69 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
70 },
71 },
72}