1// Copyright 2018 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_library_shared { 21 name: "libahardwarebuffertest", 22 compile_multilib: "both", 23 tidy_timeout_srcs: [ 24 "AHardwareBufferGLTest.cpp", 25 ], 26 srcs: [ 27 "AHardwareBufferGLTest.cpp", 28 "AHardwareBufferTest.cpp", 29 "AtomicBufferStateTest.cpp", 30 "GTestMain.cpp", 31 ], 32 shared_libs: [ 33 "libandroid", 34 "liblog", 35 "libEGL", 36 "libGLESv2", 37 "libGLESv3", 38 ], 39 static_libs: [ 40 "libbase_ndk", 41 "libgmock_ndk", 42 ], 43 whole_static_libs: ["libnativetesthelper_jni"], 44 cflags: [ 45 "-Werror", 46 "-Wall", 47 "-Wextra", 48 "-DEGL_EGLEXT_PROTOTYPES", 49 "-DGL_GLEXT_PROTOTYPES", 50 ], 51 sdk_version: "current", 52 stl: "c++_static", 53} 54