blob: c93e2df02d697b8416e462ea246bb59736f1e6e9 [file] [log] [blame]
// Copyright (C) 2017 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_test_library {
name: "libdynamiclinker_native_lib_a",
sdk_version: "current",
srcs: ["native_lib_a.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
strip: {
none: true,
},
stl: "libc++_static",
}
cc_test_library {
name: "libdynamiclinker_native_lib_b",
sdk_version: "current",
srcs: ["native_lib_b.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
strip: {
none: true,
},
stl: "libc++_static",
}
android_test {
name: "CtsDynamicLinkerTestCases",
defaults: ["cts_defaults"],
static_libs: ["ctstestrunner-axt"],
srcs: ["**/*.java"],
compile_multilib: "both",
jni_libs: [
"libdynamiclinker_native_lib_a",
"libdynamiclinker_native_lib_b",
],
manifest: "AndroidManifest.xml",
sdk_version: "current",
test_suites: [
"cts",
"general-tests",
],
use_embedded_native_libs: true,
}