blob: 2f4f8587b717daacb5f1e6f476301f550480b1db [file] [log] [blame]
/*
* Copyright (C) 2024 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_team: "trendy_team_partner_eng",
default_applicable_licenses: ["Android-Apache-2.0"],
}
android_test {
name: "CtsNonProductionReadyNativeApiTestCases",
srcs: ["src/**/*.java"],
// Include both the 32 and 64 bit versions.
compile_multilib: "both",
static_libs: [
"androidx.test.rules",
"compatibility-device-util-axt",
],
jni_libs: [
"libnative-api-check-jni",
],
host_required: ["cts-dynamic-config"],
test_suites: [
"general-tests",
"cts",
],
data: [":cts-dynamic-config.dynamic"],
sdk_version: "current",
}
cc_library_shared {
name: "libnative-api-check-jni",
header_libs: [
"libnativehelper_header_only",
],
srcs: [
"jni/NonProductionReadyNativeApiCheck-jni.cpp",
],
shared_libs: [
"libaaudio",
"libamidi",
"libandroid",
"libc",
"libcamera2ndk",
"libdl",
"libEGL",
"libGLESv1_CM",
"libGLESv2",
"libGLESv3",
"libjnigraphics",
"liblog",
"libmediandk",
"libm",
"libneuralnetworks",
"libOpenMAXAL",
"libOpenSLES",
"libstdc++",
"libvulkan",
"libz",
],
cflags: [
"-Werror",
"-Wno-unused-parameter",
],
sdk_version: "current",
}