1// Copyright (C) 2020 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_android_gpu",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20cc_test {
21    name: "ctsgraphicsgpucountersinit",
22    srcs: [
23        "android_graphics_cts_GpuCounters.cpp",
24    ],
25    test_suites: [
26        "cts",
27        "general-tests",
28    ],
29    compile_multilib: "both",
30    multilib: {
31        lib32: {
32            suffix: "32",
33        },
34        lib64: {
35            suffix: "64",
36        },
37    },
38    cflags: [
39        "-Wall",
40        "-Werror",
41    ],
42    shared_libs: [
43        "libdl",
44        "libandroid",
45        "liblog",
46    ],
47    stl: "c++_static",
48    sdk_version: "current",
49}
50
51cc_test_library {
52    name: "libctsgraphicsgpuprofiling_jni",
53    gtest: false,
54    srcs: [
55        "jni/CtsGraphicsProfilingDataJniOnLoad.cpp",
56        "jni/android_graphics_cts_GpuRenderStages.cpp",
57    ],
58    cflags: [
59        "-Wall",
60        "-Werror",
61    ],
62    header_libs: ["jni_headers"],
63    shared_libs: [
64        "libandroid",
65        "libvulkan",
66        "liblog",
67    ],
68    stl: "c++_shared",
69    sdk_version: "current",
70}
71
72android_test_helper_app {
73    name: "CtsGraphicsProfilingDataApp",
74    defaults: ["cts_support_defaults"],
75    srcs: ["src/**/*.java"],
76    sdk_version: "current",
77    // tag this module as a cts test artifact
78    test_suites: [
79        "cts",
80        "general-tests",
81    ],
82    compile_multilib: "both",
83    jni_libs: [
84        "libctsgraphicsgpuprofiling_jni",
85    ],
86    use_embedded_native_libs: false,
87    stl: "c++_shared",
88}
89