1// Copyright (C) 2017 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
15cc_test_library {
16    name: "libctsgputools_jni",
17    gtest: false,
18    srcs: [
19        "jni/CtsGpuToolsJniOnLoad.cpp",
20        "jni/android_gputools_cts_RootlessGpuDebug.cpp",
21    ],
22    cflags: [
23        "-Wall",
24        "-Werror",
25    ],
26    header_libs: ["jni_headers"],
27    shared_libs: [
28        "libandroid",
29        "libvulkan",
30        "liblog",
31        "libandroid",
32        "libvulkan",
33        "libEGL",
34        "libGLESv3",
35        "liblog",
36    ],
37    stl: "c++_shared",
38    sdk_version: "current",
39}
40
41android_test_helper_app {
42    name: "CtsGpuToolsRootlessGpuDebugApp-DEBUG",
43    defaults: ["cts_support_defaults"],
44    srcs: ["src/**/*.java"],
45    sdk_version: "current",
46    // tag this module as a cts test artifact
47    test_suites: ["cts"],
48    compile_multilib: "both",
49    jni_libs: ["libctsgputools_jni"],
50    aaptflags: [
51        "--rename-manifest-package",
52        "android.rootlessgpudebug.DEBUG.app",
53        "--debug-mode",
54    ],
55    use_embedded_native_libs: false,
56    stl: "c++_shared",
57}
58
59android_test_helper_app {
60    name: "CtsGpuToolsRootlessGpuDebugApp-RELEASE",
61    defaults: ["cts_support_defaults"],
62    srcs: ["src/**/*.java"],
63    sdk_version: "current",
64    // tag this module as a cts test artifact
65    test_suites: ["cts"],
66    compile_multilib: "both",
67    jni_libs: [
68        "libctsgputools_jni",
69        "libVkLayer_nullLayerC",
70        "libGLES_glesLayerC",
71    ],
72    aaptflags: [
73        "--rename-manifest-package android.rootlessgpudebug.RELEASE.app",
74    ],
75    use_embedded_native_libs: false,
76    stl: "c++_shared",
77}
78