blob: c03f67ea472d2bd65582f21c685705cab1ffbf0e [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
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 ],
64 visibility: [":__subpackages__"],
65 cpp_std: "experimental",
66}
67
68cc_test {
69 name: "VtsHalGraphicsMapperStableC_TargetTest",
70 cpp_std: "experimental",
71 defaults: [
72 "VtsHalTargetTestDefaults",
73 "use_libaidlvintf_gtest_helper_static",
74 "android.hardware.graphics.allocator-ndk_shared",
75 "android.hardware.graphics.common-ndk_shared",
76 ],
77 srcs: [
78 "vts/VtsHalGraphicsMapperStableC_TargetTest.cpp",
79 ],
80
81 shared_libs: [
82 "libbinder_ndk",
83 "libbase",
84 "libsync",
85 "libvndksupport",
86 ],
87 static_libs: [
88 "libaidlcommonsupport",
89 "libgralloctypes",
90 "libgtest",
91 ],
92 header_libs: [
93 "libimapper_stablec",
94 "libimapper_providerutils",
95 ],
96 cflags: [
97 "-Wall",
98 "-Werror",
99 ],
100 test_suites: [
101 "general-tests",
102 "vts",
103 ],
104}