blob: 8055b1e529499bacd1957e9da933b07b30fddf3e [file] [log] [blame]
// Copyright (C) 2009 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"],
// Team assignment based on libnativeloader and linker namespace ownership.
// Other JNI issues are owned by trendy_team_art_performance.
default_team: "trendy_team_art_mainline",
}
android_test {
name: "CtsJniTestCases",
defaults: ["cts_defaults"],
// Include both the 32 and 64 bit versions
compile_multilib: "both",
// When built, explicitly put it in the data partition.
// Tag this module as a cts test artifact
test_suites: [
"cts",
"general-tests",
],
static_libs: [
"ctstestrunner-axt",
"androidx.test.rules",
"compatibility-device-util-axt",
],
jni_libs: [
"libjni_test_dlclose",
"libjninamespacea1",
"libjninamespacea2",
"libjninamespaceb",
"libjnicommon",
"libjnitest",
"libnativehelper_compat_libc++",
],
srcs: ["src/**/*.java"],
sdk_version: "test_current",
use_embedded_native_libs: false,
per_testcase_directory: true,
}
cc_test_library {
name: "libjninamespacea1",
srcs: ["libjninamespacea1/namespacea1.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
local_include_dirs: ["libjnicommon"],
host_ldlibs: ["-llog"],
shared_libs: [
"liblog",
"libjnicommon",
],
sdk_version: "23",
gtest: false,
}
cc_test_library {
name: "libjninamespacea2",
srcs: ["libjninamespacea2/namespacea2.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
local_include_dirs: ["libjnicommon"],
host_ldlibs: ["-llog"],
shared_libs: [
"liblog",
"libjnicommon",
],
sdk_version: "23",
gtest: false,
}
cc_test_library {
name: "libjninamespaceb",
srcs: ["libjninamespaceb/namespaceb.cpp"],
cflags: [
"-Wall",
"-Werror",
],
header_libs: ["jni_headers"],
local_include_dirs: ["libjnicommon"],
host_ldlibs: ["-llog"],
shared_libs: [
"liblog",
"libjnicommon",
],
sdk_version: "23",
gtest: false,
}