blob: fc5770c36b8989e8804543a3db0c2719b3355af3 [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 },
Justin Yun74f65932017-07-24 15:19:45 +090037 vndk: {
38 enabled: true,
Justin Yun768011e2017-08-03 16:09:30 +090039 support_system_process: true,
Justin Yun74f65932017-07-24 15:19:45 +090040 },
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000041 apex_available: [
42 "//apex_available:platform",
43 "com.android.neuralnetworks",
44 "test_com.android.neuralnetworks",
Jiyong Park958a03f2020-03-07 17:23:16 +090045 "com.android.media",
46 "com.android.media.swcodec",
Przemyslaw Szczepaniak4f0d1e32020-02-13 20:01:04 +000047 ],
Steven Morelandc75fc622017-08-04 11:04:39 -070048 defaults: ["libhidl-defaults"],
Martijn Coenen30791002016-12-01 15:40:46 +010049 shared_libs: [
50 "libbase",
51 "liblog",
52 "libutils",
53 "libcutils",
54 "libhidlbase",
Howard Chen23e163b2017-11-07 23:45:02 +080055 "android.hidl.memory@1.0",
56 "android.hidl.memory.token@1.0",
Martijn Coenen30791002016-12-01 15:40:46 +010057 ],
58 local_include_dirs: ["include"],
59 export_include_dirs: ["include"],
60
61 export_shared_lib_headers: [
62 "android.hidl.memory@1.0",
Howard Chen23e163b2017-11-07 23:45:02 +080063 "android.hidl.memory.token@1.0",
Jooyung Handfe14f12020-04-16 18:48:34 +090064 "libhidlbase",
Martijn Coenen30791002016-12-01 15:40:46 +010065 ],
66
67 srcs: [
Howard Chen23e163b2017-11-07 23:45:02 +080068 "HidlMemoryToken.cpp",
Jooyung Handfe14f12020-04-16 18:48:34 +090069 "mapping.cpp",
Martijn Coenen30791002016-12-01 15:40:46 +010070 ],
71
72 product_variables: {
73 debuggable: {
74 cflags: ["-DLIBHIDL_TARGET_DEBUGGABLE"],
75 },
76 },
Jooyung Handfe14f12020-04-16 18:48:34 +090077 min_sdk_version: "29",
Martijn Coenen30791002016-12-01 15:40:46 +010078}