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