blob: 9dc54b4597b36440cd34fe59f075db5988211a39 [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",
Steven Moreland337e6b62017-01-18 17:25:13 -080032 "libhidl-gen-utils"
Yifan Hong00f4a392016-11-16 12:35:58 -080033 ],
34 export_shared_lib_headers: [
35 "libbase",
36 "libutils",
37 "libhidlbase",
38 ],
39
40 export_include_dirs: ["include"],
41
Yifan Hong2cd440c2016-11-23 11:30:36 -080042 generated_sources: [
43 "android.hidl.manager@1.0_genc++",
44 "android.hidl.base@1.0_genc++"
45 ],
46 generated_headers: [
47 "android.hidl.manager@1.0_genc++_headers",
48 "android.hidl.base@1.0_genc++_headers"
49 ],
50 export_generated_headers: [
51 "android.hidl.manager@1.0_genc++_headers",
52 "android.hidl.base@1.0_genc++_headers"
53 ],
Yifan Hong00f4a392016-11-16 12:35:58 -080054
55 srcs: [
56 "HidlBinderSupport.cpp",
Yifan Hong6bf733e2016-12-07 14:42:02 -080057 "HidlPassthroughSupport.cpp",
Steven Moreland3903f462017-01-13 12:57:00 -080058 "LegacySupport.cpp",
Yifan Hong00f4a392016-11-16 12:35:58 -080059 "ServiceManagement.cpp",
60 "Static.cpp"
61 ],
62
63 product_variables: {
64 debuggable: {
65 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
66 },
67 },
68}