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_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_test {
20    name: "ctsgraphicsgpucountersinit",
21    srcs: [
22        "android_graphics_cts_GpuCounters.cpp",
23    ],
24    test_suites: ["cts", "general-tests"],
25    compile_multilib: "both",
26    multilib: {
27        lib32: {
28            suffix: "32",
29        },
30        lib64: {
31            suffix: "64",
32        },
33    },
34    cflags: [
35        "-Wall",
36        "-Werror",
37    ],
38    shared_libs: [
39        "libdl",
40        "libandroid",
41        "liblog",
42    ],
43    stl: "c++_static",
44    sdk_version: "current",
45}
46
47cc_test_library {
48    name: "libctsgraphicsgpuprofiling_jni",
49    gtest: false,
50    srcs: [
51        "jni/CtsGraphicsProfilingDataJniOnLoad.cpp",
52        "jni/android_graphics_cts_GpuRenderStages.cpp",
53    ],
54    cflags: [
55        "-Wall",
56        "-Werror",
57    ],
58    header_libs: ["jni_headers"],
59    shared_libs: [
60        "libandroid",
61        "libvulkan",
62        "liblog",
63    ],
64    stl: "c++_shared",
65    sdk_version: "current",
66}
67
68android_test_helper_app {
69    name: "CtsGraphicsProfilingDataApp",
70    defaults: ["cts_support_defaults"],
71    srcs: ["src/**/*.java"],
72    sdk_version: "current",
73    // tag this module as a cts test artifact
74    test_suites: ["cts", "general-tests"],
75    compile_multilib: "both",
76    jni_libs: [
77        "libctsgraphicsgpuprofiling_jni",
78    ],
79    use_embedded_native_libs: false,
80    stl: "c++_shared",
81}
82