blob: 1d01a02707e1f6d29a9eda39005baa30aca2fb84 [file] [log] [blame]
John Reck48c546c2022-11-15 16:29:21 -05001/**
2 * Copyright (c) 2022, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18 // See: http://go/android-license-faq
19 // A large-scale-change added 'default_applicable_licenses' to import
20 // all of the 'license_kinds' from "hardware_interfaces_license"
21 // to get the below license kinds:
22 // SPDX-license-identifier-Apache-2.0
23 default_applicable_licenses: ["hardware_interfaces_license"],
24}
25
26cc_library_headers {
27 name: "libimapper_stablec",
28 export_include_dirs: ["include"],
29 vendor_available: true,
30 header_libs: [
31 "libarect_headers",
32 ],
33 export_header_lib_headers: [
34 "libarect_headers",
35 ],
John Reck800d77c2022-12-08 14:03:24 -050036 // TODO(b/214400477) Remove apex_available
37 apex_available: [
38 "//apex_available:platform",
39 "com.android.media.swcodec",
40 "test_com.android.media.swcodec",
41 ],
42 min_sdk_version: "29",
John Reck48c546c2022-11-15 16:29:21 -050043}
44
John Reckc1e4c062022-11-01 17:29:48 -040045cc_library_shared {
46 name: "libimapper_stablec_abicheck",
47 visibility: ["//visibility:private"],
48 defaults: [
49 "android.hardware.graphics.allocator-ndk_shared",
50 "android.hardware.graphics.common-ndk_shared",
51 ],
52 header_libs: [
53 "libimapper_stablec",
54 ],
55 srcs: [
56 "imapper5_abicheck.cpp",
57 ],
58 header_abi_checker: {
59 enabled: true,
60 symbol_file: "imapper.map.txt",
61 },
62}
63
John Reck48c546c2022-11-15 16:29:21 -050064cc_library_headers {
65 name: "libimapper_providerutils",
66 vendor_available: true,
67 export_include_dirs: ["implutils/include"],
68 header_libs: [
69 "libbase_headers",
70 "libimapper_stablec",
71 ],
72 export_header_lib_headers: [
73 "libbase_headers",
74 "libimapper_stablec",
75 ],
John Reck800d77c2022-12-08 14:03:24 -050076 // TODO(b/214400477) Remove apex_available
77 apex_available: [
78 "//apex_available:platform",
79 "com.android.media.swcodec",
80 "test_com.android.media.swcodec",
81 ],
82 min_sdk_version: "29",
John Reck48c546c2022-11-15 16:29:21 -050083}
84
85cc_test {
86 name: "libimapper_providerutils_tests",
87 defaults: [
88 "android.hardware.graphics.allocator-ndk_shared",
89 "android.hardware.graphics.common-ndk_shared",
90 ],
91 header_libs: [
92 "libimapper_providerutils",
93 ],
94 srcs: [
95 "implutils/impltests.cpp",
96 ],
John Reckfc21e8b2022-11-22 14:58:57 -050097 shared_libs: [
98 "libgralloctypes",
99 "libhidlbase",
100 ],
John Reck48c546c2022-11-15 16:29:21 -0500101 visibility: [":__subpackages__"],
102 cpp_std: "experimental",
103}
104
105cc_test {
106 name: "VtsHalGraphicsMapperStableC_TargetTest",
107 cpp_std: "experimental",
108 defaults: [
109 "VtsHalTargetTestDefaults",
110 "use_libaidlvintf_gtest_helper_static",
111 "android.hardware.graphics.allocator-ndk_shared",
112 "android.hardware.graphics.common-ndk_shared",
113 ],
114 srcs: [
115 "vts/VtsHalGraphicsMapperStableC_TargetTest.cpp",
116 ],
117
118 shared_libs: [
119 "libbinder_ndk",
120 "libbase",
121 "libsync",
122 "libvndksupport",
123 ],
124 static_libs: [
125 "libaidlcommonsupport",
126 "libgralloctypes",
127 "libgtest",
128 ],
129 header_libs: [
130 "libimapper_stablec",
131 "libimapper_providerutils",
132 ],
133 cflags: [
134 "-Wall",
135 "-Werror",
136 ],
137 test_suites: [
138 "general-tests",
139 "vts",
140 ],
141}