1// Copyright (C) 2020 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_team: "trendy_team_android_gpu", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20cc_test { 21 name: "ctsgraphicsgpucountersinit", 22 srcs: [ 23 "android_graphics_cts_GpuCounters.cpp", 24 ], 25 test_suites: [ 26 "cts", 27 "general-tests", 28 ], 29 compile_multilib: "both", 30 multilib: { 31 lib32: { 32 suffix: "32", 33 }, 34 lib64: { 35 suffix: "64", 36 }, 37 }, 38 cflags: [ 39 "-Wall", 40 "-Werror", 41 ], 42 shared_libs: [ 43 "libdl", 44 "libandroid", 45 "liblog", 46 ], 47 stl: "c++_static", 48 sdk_version: "current", 49} 50 51cc_test_library { 52 name: "libctsgraphicsgpuprofiling_jni", 53 gtest: false, 54 srcs: [ 55 "jni/android_main.cpp", 56 "jni/vulkan_renderer.cpp", 57 ], 58 cflags: [ 59 "-DVK_USE_PLATFORM_ANDROID_KHR", 60 "-Wall", 61 "-Werror", 62 "-Wno-implicit-fallthrough", 63 "-Wno-unused-parameter", 64 ], 65 header_libs: ["jni_headers"], 66 shared_libs: [ 67 "libandroid", 68 "libjnigraphics", 69 "libvulkan", 70 "liblog", 71 ], 72 static_libs: [ 73 "android_native_app_glue", 74 ], 75 ldflags: [ 76 "-uANativeActivity_onCreate", 77 ], 78 stl: "c++_shared", 79 sdk_version: "current", 80} 81 82android_test_helper_app { 83 name: "CtsGraphicsProfilingDataApp", 84 defaults: ["cts_support_defaults"], 85 srcs: ["src/**/*.java"], 86 sdk_version: "current", 87 // tag this module as a cts test artifact 88 test_suites: [ 89 "cts", 90 "general-tests", 91 ], 92 compile_multilib: "both", 93 jni_libs: [ 94 "libctsgraphicsgpuprofiling_jni", 95 ], 96 asset_dirs: ["assets"], 97 use_embedded_native_libs: false, 98 stl: "c++_shared", 99} 100