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: "libVkLayer_nullLayerA", 17 gtest: false, 18 srcs: ["jni/nullLayer.cpp"], 19 cflags: [ 20 "-Wall", 21 "-Werror", 22 "-fvisibility=hidden", 23 "-DLAYERNAME=A", 24 ], 25 shared_libs: [ 26 "libandroid", 27 "libvulkan", 28 "libEGL", 29 "libGLESv3", 30 "liblog", 31 ], 32 stl: "c++_shared", 33 sdk_version: "current", 34} 35 36cc_test_library { 37 name: "libVkLayer_nullLayerB", 38 gtest: false, 39 srcs: ["jni/nullLayer.cpp"], 40 cflags: [ 41 "-Wall", 42 "-Werror", 43 "-fvisibility=hidden", 44 "-DLAYERNAME=B", 45 ], 46 shared_libs: [ 47 "libandroid", 48 "libvulkan", 49 "libEGL", 50 "libGLESv3", 51 "liblog", 52 ], 53 stl: "c++_shared", 54 sdk_version: "current", 55} 56 57cc_test_library { 58 name: "libVkLayer_nullLayerC", 59 gtest: false, 60 srcs: ["jni/nullLayer.cpp"], 61 cflags: [ 62 "-Wall", 63 "-Werror", 64 "-fvisibility=hidden", 65 "-DLAYERNAME=C", 66 ], 67 shared_libs: [ 68 "libandroid", 69 "libvulkan", 70 "libEGL", 71 "libGLESv3", 72 "liblog", 73 ], 74 stl: "c++_shared", 75 sdk_version: "current", 76} 77 78cc_test_library { 79 name: "libGLES_glesLayerA", 80 gtest: false, 81 srcs: ["jni/glesLayer.cpp"], 82 cflags: [ 83 "-std=c++14", 84 "-Wall", 85 "-Werror", 86 "-fvisibility=hidden", 87 "-DLAYERNAME=A", 88 ], 89 shared_libs: [ 90 "libandroid", 91 "libEGL", 92 "libGLESv3", 93 "liblog", 94 ], 95 stl: "c++_shared", 96 sdk_version: "current", 97} 98 99cc_test_library { 100 name: "libGLES_glesLayerB", 101 gtest: false, 102 srcs: ["jni/glesLayer.cpp"], 103 cflags: [ 104 "-std=c++14", 105 "-Wall", 106 "-Werror", 107 "-fvisibility=hidden", 108 "-DLAYERNAME=B", 109 ], 110 shared_libs: [ 111 "libandroid", 112 "libEGL", 113 "libGLESv3", 114 "liblog", 115 ], 116 stl: "c++_shared", 117 sdk_version: "current", 118} 119 120cc_test_library { 121 name: "libGLES_glesLayerC", 122 gtest: false, 123 srcs: ["jni/glesLayer.cpp"], 124 cflags: [ 125 "-std=c++14", 126 "-Wall", 127 "-Werror", 128 "-fvisibility=hidden", 129 "-DLAYERNAME=C", 130 ], 131 shared_libs: [ 132 "libandroid", 133 "libEGL", 134 "libGLESv3", 135 "liblog", 136 ], 137 stl: "c++_shared", 138 sdk_version: "current", 139} 140 141android_test_helper_app { 142 name: "CtsGpuToolsRootlessGpuDebugApp-LAYERS", 143 defaults: ["cts_support_defaults"], 144 sdk_version: "current", 145 // tag this module as a cts test artifact 146 test_suites: ["cts"], 147 compile_multilib: "both", 148 jni_libs: [ 149 "libVkLayer_nullLayerA", 150 "libVkLayer_nullLayerB", 151 "libVkLayer_nullLayerC", 152 ], 153 use_embedded_native_libs: false, 154 stl: "c++_shared", 155} 156 157android_test_helper_app { 158 name: "CtsGpuToolsRootlessGpuDebugApp-GLES_LAYERS", 159 defaults: ["cts_support_defaults"], 160 sdk_version: "current", 161 // tag this module as a cts test artifact 162 test_suites: ["cts"], 163 compile_multilib: "both", 164 jni_libs: [ 165 "libGLES_glesLayerA", 166 "libGLES_glesLayerB", 167 "libGLES_glesLayerC", 168 ], 169 use_embedded_native_libs: false, 170 aaptflags: [ 171 "--rename-manifest-package android.rootlessgpudebug.GLES_LAYERS.app", 172 ], 173 stl: "c++_shared", 174} 175