blob: 537eb746d00923278871fdf88e2ff098b85c8a89 [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",
Tommaso Fonda442ed0c2022-03-03 12:39:39 +010026 recovery_available: true,
Steven Morelanda169f992017-04-11 17:36:57 -070027 vendor_available: true,
Justin Yun8ee97132020-11-11 19:23:49 +090028 product_available: true,
Ayushi Khopkar830f03e2020-06-11 13:50:37 +053029 // Host support is needed for testing only
30 host_supported: true,
Victor Khimenko538af7d2020-07-08 23:24:21 +020031 // TODO(b/153609531): remove when no longer needed.
32 native_bridge_supported: true,
Ayushi Khopkar830f03e2020-06-11 13:50:37 +053033 target: {
34 darwin: {
35 enabled: false,
36 },
37 },
Justin Yun74f65932017-07-24 15:19:45 +090038 vndk: {
39 enabled: true,
Justin Yun768011e2017-08-03 16:09:30 +090040 support_system_process: true,
Justin Yun74f65932017-07-24 15:19:45 +090041 },
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000042 apex_available: [
43 "//apex_available:platform",
44 "com.android.neuralnetworks",
45 "test_com.android.neuralnetworks",
Jiyong Park958a03f2020-03-07 17:23:16 +090046 "com.android.media",
47 "com.android.media.swcodec",
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000048 ],
Steven Morelandc75fc622017-08-04 11:04:39 -070049 defaults: ["libhidl-defaults"],
Martijn Coenen30791002016-12-01 15:40:46 +010050 shared_libs: [
51 "libbase",
52 "liblog",
53 "libutils",
54 "libcutils",
55 "libhidlbase",
Howard Chen23e163b2017-11-07 23:45:02 +080056 "android.hidl.memory@1.0",
57 "android.hidl.memory.token@1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010058 ],
59 local_include_dirs: ["include"],
60 export_include_dirs: ["include"],
61
62 export_shared_lib_headers: [
63 "android.hidl.memory@1.0",
Howard Chen23e163b2017-11-07 23:45:02 +080064 "android.hidl.memory.token@1.0",
Jooyung Handfe14f12020-04-16 18:48:34 +090065 "libhidlbase",
Martijn Coenen30791002016-12-01 15:40:46 +010066 ],
67
68 srcs: [
Howard Chen23e163b2017-11-07 23:45:02 +080069 "HidlMemoryToken.cpp",
Jooyung Handfe14f12020-04-16 18:48:34 +090070 "mapping.cpp",
Martijn Coenen30791002016-12-01 15:40:46 +010071 ],
72
73 product_variables: {
74 debuggable: {
75 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
76 },
77 },
Jooyung Handfe14f12020-04-16 18:48:34 +090078 min_sdk_version: "29",
Martijn Coenen30791002016-12-01 15:40:46 +010079}