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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_test_library {
20    name: "libctsgputools_jni",
21    gtest: false,
22    srcs: [
23        "jni/CtsGpuToolsJniOnLoad.cpp",
24        "jni/android_gputools_cts_RootlessGpuDebug.cpp",
25    ],
26    cflags: [
27        "-Wall",
28        "-Werror",
29    ],
30    header_libs: ["jni_headers"],
31    shared_libs: [
32        "libandroid",
33        "libvulkan",
34        "liblog",
35        "libandroid",
36        "libvulkan",
37        "libEGL",
38        "libGLESv3",
39        "liblog",
40    ],
41    stl: "c++_shared",
42    sdk_version: "current",
43}
44
45android_test_helper_app {
46    name: "CtsGpuToolsRootlessGpuDebugApp-DEBUG",
47    defaults: ["cts_support_defaults"],
48    srcs: ["src/**/*.java"],
49    sdk_version: "current",
50    test_suites: [
51        "general-tests",
52    ],
53    compile_multilib: "both",
54    jni_libs: ["libctsgputools_jni"],
55    aaptflags: [
56        "--rename-manifest-package",
57        "android.rootlessgpudebug.DEBUG.app",
58        "--debug-mode",
59    ],
60    use_embedded_native_libs: false,
61    stl: "c++_shared",
62}
63
64android_test_helper_app {
65    name: "CtsGpuToolsRootlessGpuDebugApp-RELEASE",
66    defaults: ["cts_support_defaults"],
67    srcs: ["src/**/*.java"],
68    sdk_version: "current",
69    test_suites: [
70        "general-tests",
71    ],
72    compile_multilib: "both",
73    jni_libs: [
74        "libctsgputools_jni",
75        "libVkLayer_nullLayerC",
76        "libGLES_glesLayerC",
77    ],
78    aaptflags: [
79        "--rename-manifest-package android.rootlessgpudebug.RELEASE.app",
80    ],
81    use_embedded_native_libs: false,
82    stl: "c++_shared",
83}
84
85android_test_helper_app {
86    name: "CtsGpuToolsRootlessGpuDebugApp-INJECT",
87    defaults: ["cts_support_defaults"],
88    srcs: ["src/**/*.java"],
89    sdk_version: "current",
90    test_suites: [
91        "general-tests",
92    ],
93    compile_multilib: "both",
94    jni_libs: [
95        "libctsgputools_jni",
96        "libVkLayer_nullLayerC",
97        "libGLES_glesLayerC",
98    ],
99    manifest: "inject/AndroidManifest.xml",
100    aaptflags: [
101        "--rename-manifest-package android.rootlessgpudebug.INJECT.app",
102    ],
103    use_embedded_native_libs: false,
104    stl: "c++_shared",
105}
106