1/**
2 * Copyright (c) 2021, 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    default_team: "trendy_team_android_core_graphics_stack",
19    // 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_test {
28    name: "VtsHalGraphicsComposer3_TargetTest",
29    defaults: [
30        "VtsHalTargetTestDefaults",
31        "use_libaidlvintf_gtest_helper_static",
32        "librenderengine_deps",
33        "android.hardware.graphics.common-ndk_static",
34        "android.hardware.graphics.composer3-ndk_static",
35    ],
36    srcs: [
37        "VtsHalGraphicsComposer3_TargetTest.cpp",
38        "VtsHalGraphicsComposer3_ReadbackTest.cpp",
39        "GraphicsComposerCallback.cpp",
40        "ReadbackVts.cpp",
41        "RenderEngineVts.cpp",
42        "VtsComposerClient.cpp",
43    ],
44
45    shared_libs: [
46        "libEGL",
47        "libGLESv1_CM",
48        "libGLESv2",
49        "libbinder_ndk",
50        "libbinder",
51        "libfmq",
52        "libbase",
53        "libsync",
54        "libui",
55        "libgui",
56        "libhidlbase",
57        "libprocessgroup",
58        "libvndksupport",
59        "server_configurable_flags",
60    ],
61    header_libs: [
62        "android.hardware.graphics.composer3-command-buffer",
63    ],
64    static_libs: [
65        "android.hardware.graphics.common@1.2",
66        "android.hardware.common-V2-ndk",
67        "android.hardware.common.fmq-V1-ndk",
68        "libaidlcommonsupport",
69        "libarect",
70        "libbase",
71        "libfmq",
72        "libgtest",
73        "libmath",
74        "librenderengine",
75        "libshaders",
76        "libsync",
77        "libtonemap",
78        "libsurfaceflinger_common",
79    ],
80    cflags: [
81        "-Wconversion",
82    ],
83    test_suites: [
84        "general-tests",
85        "vts",
86    ],
87}
88