blob: d40e160207ea5b30f1b86f32276fa98a425fb544 [file] [log] [blame]
John Reck97f31372022-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
38cc_library_headers {
39 name: "libimapper_providerutils",
40 vendor_available: true,
41 export_include_dirs: ["implutils/include"],
42 header_libs: [
43 "libbase_headers",
44 "libimapper_stablec",
45 ],
46 export_header_lib_headers: [
47 "libbase_headers",
48 "libimapper_stablec",
49 ],
50}
51
52cc_test {
53 name: "libimapper_providerutils_tests",
54 defaults: [
55 "android.hardware.graphics.allocator-ndk_shared",
56 "android.hardware.graphics.common-ndk_shared",
57 ],
58 header_libs: [
59 "libimapper_providerutils",
60 ],
61 srcs: [
62 "implutils/impltests.cpp",
63 ],
John Reck0e4732c2022-11-22 14:58:57 -050064 shared_libs: [
65 "libgralloctypes",
66 "libhidlbase",
67 ],
John Reck97f31372022-11-15 16:29:21 -050068 visibility: [":__subpackages__"],
69 cpp_std: "experimental",
70}
71
72cc_test {
73 name: "VtsHalGraphicsMapperStableC_TargetTest",
74 cpp_std: "experimental",
75 defaults: [
76 "VtsHalTargetTestDefaults",
77 "use_libaidlvintf_gtest_helper_static",
78 "android.hardware.graphics.allocator-ndk_shared",
79 "android.hardware.graphics.common-ndk_shared",
80 ],
81 srcs: [
82 "vts/VtsHalGraphicsMapperStableC_TargetTest.cpp",
83 ],
84
85 shared_libs: [
86 "libbinder_ndk",
87 "libbase",
88 "libsync",
89 "libvndksupport",
90 ],
91 static_libs: [
92 "libaidlcommonsupport",
93 "libgralloctypes",
94 "libgtest",
95 ],
96 header_libs: [
97 "libimapper_stablec",
98 "libimapper_providerutils",
99 ],
100 cflags: [
101 "-Wall",
102 "-Werror",
103 ],
104 test_suites: [
105 "general-tests",
106 "vts",
107 ],
108}