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