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 // See: http://go/android-license-faq 17 default_applicable_licenses: [ 18 "Android-Apache-2.0", 19 "cts_hostsidetests_gputools_layers_vulkan_license", 20 ], 21} 22 23license { 24 name: "cts_hostsidetests_gputools_layers_vulkan_license", 25 license_kinds: ["SPDX-license-identifier-MIT"], 26 license_text: ["LICENSE_MIT"] 27} 28 29cc_test_library { 30 name: "libVkLayer_nullLayerA", 31 gtest: false, 32 srcs: ["jni/nullLayer.cpp"], 33 cflags: [ 34 "-Wall", 35 "-Werror", 36 "-fvisibility=hidden", 37 "-DLAYERNAME=A", 38 ], 39 shared_libs: [ 40 "libandroid", 41 "libvulkan", 42 "liblog", 43 ], 44 stl: "c++_shared", 45 sdk_version: "current", 46} 47 48cc_test_library { 49 name: "libVkLayer_nullLayerB", 50 gtest: false, 51 srcs: ["jni/nullLayer.cpp"], 52 cflags: [ 53 "-Wall", 54 "-Werror", 55 "-fvisibility=hidden", 56 "-DLAYERNAME=B", 57 ], 58 shared_libs: [ 59 "libandroid", 60 "libvulkan", 61 "liblog", 62 ], 63 stl: "c++_shared", 64 sdk_version: "current", 65} 66 67cc_test_library { 68 name: "libVkLayer_nullLayerC", 69 gtest: false, 70 srcs: ["jni/nullLayer.cpp"], 71 cflags: [ 72 "-Wall", 73 "-Werror", 74 "-fvisibility=hidden", 75 "-DLAYERNAME=C", 76 ], 77 shared_libs: [ 78 "libandroid", 79 "libvulkan", 80 "liblog", 81 ], 82 stl: "c++_shared", 83 sdk_version: "current", 84} 85 86cc_test_library { 87 name: "libVkLayer_nullLayerD", 88 gtest: false, 89 srcs: ["jni/nullLayer.cpp"], 90 cflags: [ 91 "-Wall", 92 "-Werror", 93 "-fvisibility=hidden", 94 "-DLAYERNAME=D", 95 "-DDEBUGUTILSPECVERSION=1", 96 ], 97 shared_libs: [ 98 "libandroid", 99 "libvulkan", 100 "liblog", 101 ], 102 stl: "c++_shared", 103 sdk_version: "current", 104} 105 106cc_test_library { 107 name: "libVkLayer_nullLayerE", 108 gtest: false, 109 srcs: ["jni/nullLayer.cpp"], 110 cflags: [ 111 "-Wall", 112 "-Werror", 113 "-fvisibility=hidden", 114 "-DLAYERNAME=E", 115 "-DDEBUGUTILSPECVERSION=2", 116 ], 117 shared_libs: [ 118 "libandroid", 119 "libvulkan", 120 "liblog", 121 ], 122 stl: "c++_shared", 123 sdk_version: "current", 124} 125 126cc_test_library { 127 name: "libGLES_glesLayerA", 128 gtest: false, 129 srcs: ["jni/glesLayer.cpp"], 130 cflags: [ 131 "-std=c++14", 132 "-Wall", 133 "-Werror", 134 "-fvisibility=hidden", 135 "-DLAYERNAME=A", 136 ], 137 shared_libs: [ 138 "libandroid", 139 "libEGL", 140 "libGLESv3", 141 "liblog", 142 ], 143 stl: "c++_shared", 144 sdk_version: "current", 145} 146 147cc_test_library { 148 name: "libGLES_glesLayerB", 149 gtest: false, 150 srcs: ["jni/glesLayer.cpp"], 151 cflags: [ 152 "-std=c++14", 153 "-Wall", 154 "-Werror", 155 "-fvisibility=hidden", 156 "-DLAYERNAME=B", 157 ], 158 shared_libs: [ 159 "libandroid", 160 "libEGL", 161 "libGLESv3", 162 "liblog", 163 ], 164 stl: "c++_shared", 165 sdk_version: "current", 166} 167 168cc_test_library { 169 name: "libGLES_glesLayerC", 170 gtest: false, 171 srcs: ["jni/glesLayer.cpp"], 172 cflags: [ 173 "-std=c++14", 174 "-Wall", 175 "-Werror", 176 "-fvisibility=hidden", 177 "-DLAYERNAME=C", 178 ], 179 shared_libs: [ 180 "libandroid", 181 "libEGL", 182 "libGLESv3", 183 "liblog", 184 ], 185 stl: "c++_shared", 186 sdk_version: "current", 187} 188 189android_test_helper_app { 190 name: "CtsGpuToolsRootlessGpuDebugApp-LAYERS", 191 defaults: ["cts_support_defaults"], 192 sdk_version: "current", 193 test_suites: [ 194 "general-tests", 195 ], 196 compile_multilib: "both", 197 jni_libs: [ 198 "libVkLayer_nullLayerA", 199 "libVkLayer_nullLayerB", 200 "libVkLayer_nullLayerC", 201 "libVkLayer_nullLayerD", 202 "libVkLayer_nullLayerE", 203 ], 204 use_embedded_native_libs: false, 205 stl: "c++_shared", 206} 207 208android_test_helper_app { 209 name: "CtsGpuToolsRootlessGpuDebugApp-GLES_LAYERS", 210 defaults: ["cts_support_defaults"], 211 sdk_version: "current", 212 test_suites: [ 213 "general-tests", 214 ], 215 compile_multilib: "both", 216 jni_libs: [ 217 "libGLES_glesLayerA", 218 "libGLES_glesLayerB", 219 "libGLES_glesLayerC", 220 ], 221 use_embedded_native_libs: false, 222 aaptflags: [ 223 "--rename-manifest-package android.rootlessgpudebug.GLES_LAYERS.app", 224 ], 225 stl: "c++_shared", 226} 227