blob: 063cd8e2c5d4cf029c633e2362886fe37d3a5fb3 [file] [log] [blame]
Martijn Coenen30791002016-12-01 15:40:46 +01001// 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
Bob Badourad2415c2021-02-12 17:33:30 -080015package {
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
Tri Vo681cd6a2017-08-03 17:10:05 -070024cc_library {
Martijn Coenen30791002016-12-01 15:40:46 +010025 name: "libhidlmemory",
Steven Morelanda169f992017-04-11 17:36:57 -070026 vendor_available: true,
Justin Yun8ee97132020-11-11 19:23:49 +090027 product_available: true,
Ayushi Khopkar830f03e2020-06-11 13:50:37 +053028 // Host support is needed for testing only
29 host_supported: true,
Victor Khimenko538af7d2020-07-08 23:24:21 +020030 // TODO(b/153609531): remove when no longer needed.
31 native_bridge_supported: true,
Ayushi Khopkar830f03e2020-06-11 13:50:37 +053032 target: {
33 darwin: {
34 enabled: false,
35 },
36 },
Kiyoung Kim3c7a87b2024-03-11 13:04:42 +090037 double_loadable: true,
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000038 apex_available: [
39 "//apex_available:platform",
40 "com.android.neuralnetworks",
41 "test_com.android.neuralnetworks",
Jiyong Park958a03f2020-03-07 17:23:16 +090042 "com.android.media",
43 "com.android.media.swcodec",
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000044 ],
Steven Morelandc75fc622017-08-04 11:04:39 -070045 defaults: ["libhidl-defaults"],
Martijn Coenen30791002016-12-01 15:40:46 +010046 shared_libs: [
47 "libbase",
48 "liblog",
49 "libutils",
50 "libcutils",
51 "libhidlbase",
Howard Chen23e163b2017-11-07 23:45:02 +080052 "android.hidl.memory@1.0",
53 "android.hidl.memory.token@1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010054 ],
55 local_include_dirs: ["include"],
56 export_include_dirs: ["include"],
57
58 export_shared_lib_headers: [
59 "android.hidl.memory@1.0",
Howard Chen23e163b2017-11-07 23:45:02 +080060 "android.hidl.memory.token@1.0",
Jooyung Handfe14f12020-04-16 18:48:34 +090061 "libhidlbase",
Martijn Coenen30791002016-12-01 15:40:46 +010062 ],
63
64 srcs: [
Howard Chen23e163b2017-11-07 23:45:02 +080065 "HidlMemoryToken.cpp",
Jooyung Handfe14f12020-04-16 18:48:34 +090066 "mapping.cpp",
Martijn Coenen30791002016-12-01 15:40:46 +010067 ],
68
69 product_variables: {
70 debuggable: {
71 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
72 },
73 },
Jooyung Handfe14f12020-04-16 18:48:34 +090074 min_sdk_version: "29",
Martijn Coenen30791002016-12-01 15:40:46 +010075}