blob: 9b0fe2c56d217a59b7c1fb802bf9d2268557f74a [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 Moreland2ef31d82016-12-21 14:38:23 -080016 "base/1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010017 "manager/1.0",
18 "memory/1.0",
19 "memory/1.0/default",
Steven Moreland2ef31d82016-12-21 14:38:23 -080020 "token/1.0",
Yifan Hong00f4a392016-11-16 12:35:58 -080021]
22
23cc_library_shared {
24 name: "libhidltransport",
25 shared_libs: [
26 "libbase",
27 "liblog",
28 "libutils",
29 "libhidlbase",
30 "libhwbinder",
31 "libcutils",
32 ],
33 export_shared_lib_headers: [
34 "libbase",
35 "libutils",
36 "libhidlbase",
37 ],
38
39 export_include_dirs: ["include"],
40
Yifan Hong2cd440c2016-11-23 11:30:36 -080041 generated_sources: [
42 "android.hidl.manager@1.0_genc++",
43 "android.hidl.base@1.0_genc++"
44 ],
45 generated_headers: [
46 "android.hidl.manager@1.0_genc++_headers",
47 "android.hidl.base@1.0_genc++_headers"
48 ],
49 export_generated_headers: [
50 "android.hidl.manager@1.0_genc++_headers",
51 "android.hidl.base@1.0_genc++_headers"
52 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080053
54 srcs: [
55 "HidlBinderSupport.cpp",
Yifan Hong6bf733e2016-12-07 14:42:02 -080056 "HidlPassthroughSupport.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080057 "ServiceManagement.cpp",
58 "Static.cpp"
59 ],
60
61 product_variables: {
62 debuggable: {
63 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
64 },
65 },
66}