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 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "system_libhidl_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["system_libhidl_license"], 22} 23 24cc_library { 25 name: "libhidlmemory", 26 vendor_available: true, 27 product_available: true, 28 // Host support is needed for testing only 29 host_supported: true, 30 // TODO(b/153609531): remove when no longer needed. 31 native_bridge_supported: true, 32 target: { 33 darwin: { 34 enabled: false, 35 }, 36 }, 37 vndk: { 38 enabled: true, 39 support_system_process: true, 40 }, 41 apex_available: [ 42 "//apex_available:platform", 43 "com.android.neuralnetworks", 44 "test_com.android.neuralnetworks", 45 "com.android.media", 46 "com.android.media.swcodec", 47 ], 48 defaults: ["libhidl-defaults"], 49 shared_libs: [ 50 "libbase", 51 "liblog", 52 "libutils", 53 "libcutils", 54 "libhidlbase", 55 "android.hidl.memory@1.0", 56 "android.hidl.memory.token@1.0", 57 ], 58 local_include_dirs: ["include"], 59 export_include_dirs: ["include"], 60 61 export_shared_lib_headers: [ 62 "android.hidl.memory@1.0", 63 "android.hidl.memory.token@1.0", 64 "libhidlbase", 65 ], 66 67 srcs: [ 68 "HidlMemoryToken.cpp", 69 "mapping.cpp", 70 ], 71 72 product_variables: { 73 debuggable: { 74 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], 75 }, 76 }, 77 min_sdk_version: "29", 78} 79