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    // tag this module as a cts test artifact
51    test_suites: [
52        "cts",
53        "general-tests",
54    ],
55    compile_multilib: "both",
56    jni_libs: ["libctsgputools_jni"],
57    aaptflags: [
58        "--rename-manifest-package",
59        "android.rootlessgpudebug.DEBUG.app",
60        "--debug-mode",
61    ],
62    use_embedded_native_libs: false,
63    stl: "c++_shared",
64}
65
66android_test_helper_app {
67    name: "CtsGpuToolsRootlessGpuDebugApp-RELEASE",
68    defaults: ["cts_support_defaults"],
69    srcs: ["src/**/*.java"],
70    sdk_version: "current",
71    // tag this module as a cts test artifact
72    test_suites: [
73        "cts",
74        "general-tests",
75    ],
76    compile_multilib: "both",
77    jni_libs: [
78        "libctsgputools_jni",
79        "libVkLayer_nullLayerC",
80        "libGLES_glesLayerC",
81    ],
82    aaptflags: [
83        "--rename-manifest-package android.rootlessgpudebug.RELEASE.app",
84    ],
85    use_embedded_native_libs: false,
86    stl: "c++_shared",
87}
88
89android_test_helper_app {
90    name: "CtsGpuToolsRootlessGpuDebugApp-INJECT",
91    defaults: ["cts_support_defaults"],
92    srcs: ["src/**/*.java"],
93    sdk_version: "current",
94    // tag this module as a cts test artifact
95    test_suites: [
96        "cts",
97        "general-tests",
98    ],
99    compile_multilib: "both",
100    jni_libs: [
101        "libctsgputools_jni",
102        "libVkLayer_nullLayerC",
103        "libGLES_glesLayerC",
104    ],
105    manifest: "inject/AndroidManifest.xml",
106    aaptflags: [
107        "--rename-manifest-package android.rootlessgpudebug.INJECT.app",
108    ],
109    use_embedded_native_libs: false,
110    stl: "c++_shared",
111}
112