Android.bp revision 8dd657432832bc5117e644c85e8e2b1ec244d2a0
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]
24
25cc_library_shared {
26    name: "libhidltransport",
27    cflags: libhidl_flags,
28    shared_libs: [
29        "libbase",
30        "liblog",
31        "libutils",
32        "libhidlbase",
33        "libhwbinder",
34        "libcutils",
35        "libhidl-gen-utils"
36    ],
37    export_shared_lib_headers: [
38        "libbase",
39        "libutils",
40        "libhidlbase",
41    ],
42
43    export_include_dirs: ["include"],
44
45    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    ],
57
58    srcs: [
59        "HidlBinderSupport.cpp",
60        "HidlPassthroughSupport.cpp",
61        "LegacySupport.cpp",
62        "ServiceManagement.cpp",
63        "Static.cpp"
64    ],
65
66    product_variables: {
67        debuggable: {
68            cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
69        },
70    },
71}
72