Android.bp revision 6ae1f619b54d2478ad8633aa1f4c7119d491354a
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    "allocator/1.0",
17    "allocator/1.0/default",
18    "base/1.0",
19    "manager/1.0",
20    "memory/1.0",
21    "memory/1.0/default",
22    "token/1.0",
23    "token/1.0/utils",
24]
25
26cc_library_shared {
27    name: "libhidltransport",
28    vendor_available: true,
29    cflags: libhidl_flags,
30    shared_libs: [
31        "libbase",
32        "liblog",
33        "libutils",
34        "libhidlbase",
35        "libhwbinder",
36        "libcutils",
37    ],
38    export_shared_lib_headers: [
39        "libbase",
40        "libutils",
41        "libhidlbase",
42    ],
43
44    export_include_dirs: ["include"],
45
46    generated_sources: [
47        "android.hidl.manager@1.0_genc++",
48        "android.hidl.base@1.0_genc++"
49    ],
50    generated_headers: [
51        "android.hidl.manager@1.0_genc++_headers",
52        "android.hidl.base@1.0_genc++_headers"
53    ],
54    export_generated_headers: [
55        "android.hidl.manager@1.0_genc++_headers",
56        "android.hidl.base@1.0_genc++_headers"
57    ],
58
59    srcs: [
60        "HidlBinderSupport.cpp",
61        "HidlPassthroughSupport.cpp",
62        "HidlTransportSupport.cpp",
63        "ServiceManagement.cpp",
64        "Static.cpp"
65    ],
66
67    product_variables: {
68        debuggable: {
69            cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
70        },
71    },
72}
73