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 15cc_library { 16 name: "libhidlmemory", 17 vendor_available: true, 18 // TODO(b/153609531): remove when no longer needed. 19 native_bridge_supported: true, 20 vndk: { 21 enabled: true, 22 support_system_process: true, 23 }, 24 apex_available: [ 25 "//apex_available:platform", 26 "com.android.neuralnetworks", 27 "test_com.android.neuralnetworks", 28 "com.android.media", 29 "com.android.media.swcodec", 30 ], 31 defaults: ["libhidl-defaults"], 32 shared_libs: [ 33 "libbase", 34 "liblog", 35 "libutils", 36 "libcutils", 37 "libhidlbase", 38 "[email protected]", 39 "[email protected]", 40 ], 41 local_include_dirs: ["include"], 42 export_include_dirs: ["include"], 43 44 export_shared_lib_headers: [ 45 "[email protected]", 46 "[email protected]", 47 "libhidlbase", 48 ], 49 50 srcs: [ 51 "HidlMemoryToken.cpp", 52 "mapping.cpp", 53 ], 54 55 product_variables: { 56 debuggable: { 57 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"], 58 }, 59 }, 60 min_sdk_version: "29", 61} 62