Android.bp revision 3903f46a480de9ec5b1c1152f07dc46d7e56064e
1// 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 = [
16    "base/1.0",
17    "manager/1.0",
18    "memory/1.0",
19    "memory/1.0/default",
20    "token/1.0",
21]
22
23cc_library_shared {
24    name: "libhidltransport",
25    shared_libs: [
26        "libbase",
27        "liblog",
28        "libutils",
29        "libhidlbase",
30        "libhwbinder",
31        "libcutils",
32        "libhidl-gen-utils"
33    ],
34    export_shared_lib_headers: [
35        "libbase",
36        "libutils",
37        "libhidlbase",
38    ],
39
40    export_include_dirs: ["include"],
41
42    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    ],
54
55    srcs: [
56        "HidlBinderSupport.cpp",
57        "HidlPassthroughSupport.cpp",
58        "LegacySupport.cpp",
59        "ServiceManagement.cpp",
60        "Static.cpp"
61    ],
62
63    product_variables: {
64        debuggable: {
65            cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
66        },
67    },
68}
69