blob: c7bb63be86b2f9166cf00232b1582179a8cf6b83 [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 Moreland8a61f322017-06-05 16:56:42 -070029 defaults: ["hidl-module-defaults"],
Steven Moreland8dd65742017-02-17 22:39:46 -080030 cflags: libhidl_flags,
Yifan Hong00f4a392016-11-16 12:35:58 -080031 shared_libs: [
32 "libbase",
33 "liblog",
34 "libutils",
35 "libhidlbase",
36 "libhwbinder",
37 "libcutils",
38 ],
39 export_shared_lib_headers: [
40 "libbase",
41 "libutils",
42 "libhidlbase",
43 ],
44
45 export_include_dirs: ["include"],
46
Yifan Hong2cd440c2016-11-23 11:30:36 -080047 generated_sources: [
48 "android.hidl.manager@1.0_genc++",
49 "android.hidl.base@1.0_genc++"
50 ],
51 generated_headers: [
52 "android.hidl.manager@1.0_genc++_headers",
53 "android.hidl.base@1.0_genc++_headers"
54 ],
55 export_generated_headers: [
56 "android.hidl.manager@1.0_genc++_headers",
57 "android.hidl.base@1.0_genc++_headers"
58 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080059
60 srcs: [
61 "HidlBinderSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080062 "HidlTransportSupport.cpp",
Steven Moreland108d09d2017-05-05 16:15:38 -070063 "HidlTransportUtils.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080064 "ServiceManagement.cpp",
65 "Static.cpp"
66 ],
67
68 product_variables: {
69 debuggable: {
70 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
71 },
72 },
73}