1// Copyright (C) 2010 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: "libctspermission_jni", 21 sdk_version: "current", 22 srcs: [ 23 "CtsPermissionsJniOnLoad.cpp", 24 "android_permission_cts_FileUtils.cpp", 25 ], 26 shared_libs: [ 27 "libnativehelper_compat_libc++", 28 "liblog", 29 ], 30 stl: "c++_static", 31 cflags: [ 32 "-Wno-unused-parameter", 33 ], 34 gtest: false, 35} 36 37cc_test_library { 38 name: "libpermissionmanager_native_test", 39 sdk_version: "current", 40 compile_multilib: "both", 41 srcs: [ 42 "PermissionManagerNativeJniTest.cpp" 43 ], 44 shared_libs: [ 45 "libandroid", 46 "liblog", 47 ], 48 static_libs: [ 49 "libbase_ndk", 50 ], 51 whole_static_libs: [ 52 "libnativetesthelper_jni" 53 ], 54 gtest: false, 55 stl: "libc++_static", 56 cflags: [ 57 "-Werror", 58 "-Wall", 59 ], 60} 61