blob: fa3087a62dc33a4edc22b4f201e6491b7d1ace42 [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 ],
36}
37
John Reckc1e4c062022-11-01 17:29:48 -040038cc_library_shared {
39 name: "libimapper_stablec_abicheck",
40 visibility: ["//visibility:private"],
41 defaults: [
42 "android.hardware.graphics.allocator-ndk_shared",
43 "android.hardware.graphics.common-ndk_shared",
44 ],
45 header_libs: [
46 "libimapper_stablec",
47 ],
48 srcs: [
49 "imapper5_abicheck.cpp",
50 ],
51 header_abi_checker: {
52 enabled: true,
53 symbol_file: "imapper.map.txt",
54 },
55}
56
John Reck48c546c2022-11-15 16:29:21 -050057cc_library_headers {
58 name: "libimapper_providerutils",
59 vendor_available: true,
60 export_include_dirs: ["implutils/include"],
61 header_libs: [
62 "libbase_headers",
63 "libimapper_stablec",
64 ],
65 export_header_lib_headers: [
66 "libbase_headers",
67 "libimapper_stablec",
68 ],
69}
70
71cc_test {
72 name: "libimapper_providerutils_tests",
73 defaults: [
74 "android.hardware.graphics.allocator-ndk_shared",
75 "android.hardware.graphics.common-ndk_shared",
76 ],
77 header_libs: [
78 "libimapper_providerutils",
79 ],
80 srcs: [
81 "implutils/impltests.cpp",
82 ],
John Reckfc21e8b2022-11-22 14:58:57 -050083 shared_libs: [
84 "libgralloctypes",
85 "libhidlbase",
86 ],
John Reck48c546c2022-11-15 16:29:21 -050087 visibility: [":__subpackages__"],
88 cpp_std: "experimental",
89}
90
91cc_test {
92 name: "VtsHalGraphicsMapperStableC_TargetTest",
93 cpp_std: "experimental",
94 defaults: [
95 "VtsHalTargetTestDefaults",
96 "use_libaidlvintf_gtest_helper_static",
97 "android.hardware.graphics.allocator-ndk_shared",
98 "android.hardware.graphics.common-ndk_shared",
99 ],
100 srcs: [
101 "vts/VtsHalGraphicsMapperStableC_TargetTest.cpp",
102 ],
103
104 shared_libs: [
105 "libbinder_ndk",
106 "libbase",
107 "libsync",
108 "libvndksupport",
109 ],
110 static_libs: [
111 "libaidlcommonsupport",
112 "libgralloctypes",
113 "libgtest",
114 ],
115 header_libs: [
116 "libimapper_stablec",
117 "libimapper_providerutils",
118 ],
119 cflags: [
120 "-Wall",
121 "-Werror",
122 ],
123 test_suites: [
124 "general-tests",
125 "vts",
126 ],
127}