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 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19cc_test_library { 20 name: "libdynamiclinker_native_lib_a", 21 sdk_version: "current", 22 srcs: ["native_lib_a.cpp"], 23 cflags: [ 24 "-Wall", 25 "-Werror", 26 ], 27 header_libs: ["jni_headers"], 28 strip: { 29 none: true, 30 }, 31 stl: "libc++_static", 32} 33 34cc_test_library { 35 name: "libdynamiclinker_native_lib_b", 36 sdk_version: "current", 37 srcs: ["native_lib_b.cpp"], 38 cflags: [ 39 "-Wall", 40 "-Werror", 41 ], 42 header_libs: ["jni_headers"], 43 strip: { 44 none: true, 45 }, 46 stl: "libc++_static", 47} 48 49android_test { 50 name: "CtsDynamicLinkerTestCases", 51 team: "trendy_team_native_tools_libraries", 52 defaults: ["cts_defaults"], 53 static_libs: ["ctstestrunner-axt"], 54 srcs: ["**/*.java"], 55 compile_multilib: "both", 56 jni_libs: [ 57 "libdynamiclinker_native_lib_a", 58 "libdynamiclinker_native_lib_b", 59 ], 60 manifest: "AndroidManifest.xml", 61 sdk_version: "current", 62 test_suites: [ 63 "cts", 64 "general-tests", 65 ], 66 use_embedded_native_libs: true, 67} 68