blob: 1c1a3104b8ca721d2ecce62e09f48ee7e80154a8 [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",
Yifan Hong00f4a392016-11-16 12:35:58 -080023]
24
25cc_library_shared {
26 name: "libhidltransport",
Steven Moreland8dd65742017-02-17 22:39:46 -080027 cflags: libhidl_flags,
Yifan Hong00f4a392016-11-16 12:35:58 -080028 shared_libs: [
29 "libbase",
30 "liblog",
31 "libutils",
32 "libhidlbase",
33 "libhwbinder",
34 "libcutils",
Steven Moreland337e6b62017-01-18 17:25:13 -080035 "libhidl-gen-utils"
Yifan Hong00f4a392016-11-16 12:35:58 -080036 ],
37 export_shared_lib_headers: [
38 "libbase",
39 "libutils",
40 "libhidlbase",
41 ],
42
43 export_include_dirs: ["include"],
44
Yifan Hong2cd440c2016-11-23 11:30:36 -080045 generated_sources: [
46 "android.hidl.manager@1.0_genc++",
47 "android.hidl.base@1.0_genc++"
48 ],
49 generated_headers: [
50 "android.hidl.manager@1.0_genc++_headers",
51 "android.hidl.base@1.0_genc++_headers"
52 ],
53 export_generated_headers: [
54 "android.hidl.manager@1.0_genc++_headers",
55 "android.hidl.base@1.0_genc++_headers"
56 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080057
58 srcs: [
59 "HidlBinderSupport.cpp",
Yifan Hong6bf733e2016-12-07 14:42:02 -080060 "HidlPassthroughSupport.cpp",
Steven Moreland11a732a2017-03-07 17:44:17 -080061 "HidlTransportSupport.cpp",
Steven Moreland3903f462017-01-13 12:57:00 -080062 "LegacySupport.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}