blob: 40486fd10528470d335c12254f1bff839b3353c9 [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 {
Aditya Choudharyad2ba1b2024-02-05 15:45:22 +000018 default_team: "trendy_team_android_core_graphics_stack",
John Reck48c546c2022-11-15 16:29:21 -050019 // See: http://go/android-license-faq
20 // A large-scale-change added 'default_applicable_licenses' to import
21 // all of the 'license_kinds' from "hardware_interfaces_license"
22 // to get the below license kinds:
23 // SPDX-license-identifier-Apache-2.0
24 default_applicable_licenses: ["hardware_interfaces_license"],
25}
26
27cc_library_headers {
28 name: "libimapper_stablec",
29 export_include_dirs: ["include"],
30 vendor_available: true,
31 header_libs: [
32 "libarect_headers",
33 ],
34 export_header_lib_headers: [
35 "libarect_headers",
36 ],
John Reck800d77c2022-12-08 14:03:24 -050037 // TODO(b/214400477) Remove apex_available
38 apex_available: [
39 "//apex_available:platform",
40 "com.android.media.swcodec",
41 "test_com.android.media.swcodec",
42 ],
43 min_sdk_version: "29",
John Reck48c546c2022-11-15 16:29:21 -050044}
45
John Reckc1e4c062022-11-01 17:29:48 -040046cc_library_shared {
47 name: "libimapper_stablec_abicheck",
48 visibility: ["//visibility:private"],
49 defaults: [
50 "android.hardware.graphics.allocator-ndk_shared",
51 "android.hardware.graphics.common-ndk_shared",
52 ],
53 header_libs: [
54 "libimapper_stablec",
55 ],
56 srcs: [
57 "imapper5_abicheck.cpp",
58 ],
59 header_abi_checker: {
60 enabled: true,
61 symbol_file: "imapper.map.txt",
62 },
63}
64
John Reck48c546c2022-11-15 16:29:21 -050065cc_library_headers {
66 name: "libimapper_providerutils",
67 vendor_available: true,
68 export_include_dirs: ["implutils/include"],
69 header_libs: [
70 "libbase_headers",
71 "libimapper_stablec",
72 ],
73 export_header_lib_headers: [
74 "libbase_headers",
75 "libimapper_stablec",
76 ],
John Reck800d77c2022-12-08 14:03:24 -050077 // TODO(b/214400477) Remove apex_available
78 apex_available: [
79 "//apex_available:platform",
80 "com.android.media.swcodec",
81 "test_com.android.media.swcodec",
82 ],
83 min_sdk_version: "29",
John Reck48c546c2022-11-15 16:29:21 -050084}
85
86cc_test {
87 name: "libimapper_providerutils_tests",
88 defaults: [
89 "android.hardware.graphics.allocator-ndk_shared",
90 "android.hardware.graphics.common-ndk_shared",
91 ],
92 header_libs: [
93 "libimapper_providerutils",
94 ],
95 srcs: [
96 "implutils/impltests.cpp",
97 ],
John Reckfc21e8b2022-11-22 14:58:57 -050098 shared_libs: [
99 "libgralloctypes",
100 "libhidlbase",
101 ],
John Reck48c546c2022-11-15 16:29:21 -0500102 visibility: [":__subpackages__"],
103 cpp_std: "experimental",
104}
105
106cc_test {
107 name: "VtsHalGraphicsMapperStableC_TargetTest",
108 cpp_std: "experimental",
109 defaults: [
110 "VtsHalTargetTestDefaults",
111 "use_libaidlvintf_gtest_helper_static",
112 "android.hardware.graphics.allocator-ndk_shared",
113 "android.hardware.graphics.common-ndk_shared",
114 ],
115 srcs: [
116 "vts/VtsHalGraphicsMapperStableC_TargetTest.cpp",
117 ],
118
119 shared_libs: [
120 "libbinder_ndk",
121 "libbase",
122 "libsync",
123 "libvndksupport",
124 ],
125 static_libs: [
126 "libaidlcommonsupport",
127 "libgralloctypes",
128 "libgtest",
129 ],
130 header_libs: [
131 "libimapper_stablec",
132 "libimapper_providerutils",
133 ],
134 cflags: [
135 "-Wall",
136 "-Werror",
137 ],
138 test_suites: [
139 "general-tests",
140 "vts",
141 ],
142}