xref: /aosp_15_r20/cts/tests/tests/nativeapi/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1/*
2 * Copyright (C) 2024 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    default_team: "trendy_team_partner_eng",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "CtsNonProductionReadyNativeApiTestCases",
24    srcs: ["src/**/*.java"],
25    // Include both the 32 and 64 bit versions.
26    compile_multilib: "both",
27    static_libs: [
28        "androidx.test.rules",
29        "compatibility-device-util-axt",
30    ],
31    jni_libs: [
32        "libnative-api-check-jni",
33    ],
34    host_required: ["cts-dynamic-config"],
35    test_suites: [
36        "general-tests",
37        "cts",
38    ],
39    data: [":cts-dynamic-config.dynamic"],
40    sdk_version: "current",
41}
42
43cc_library_shared {
44    name: "libnative-api-check-jni",
45    header_libs: [
46        "libnativehelper_header_only",
47    ],
48    srcs: [
49        "jni/NonProductionReadyNativeApiCheck-jni.cpp",
50    ],
51    shared_libs: [
52        "libaaudio",
53        "libamidi",
54        "libandroid",
55        "libc",
56        "libcamera2ndk",
57        "libdl",
58        "libEGL",
59        "libGLESv1_CM",
60        "libGLESv2",
61        "libGLESv3",
62        "libjnigraphics",
63        "liblog",
64        "libmediandk",
65        "libm",
66        "libneuralnetworks",
67        "libOpenMAXAL",
68        "libOpenSLES",
69        "libstdc++",
70        "libvulkan",
71        "libz",
72    ],
73    cflags: [
74        "-Werror",
75        "-Wno-unused-parameter",
76    ],
77    sdk_version: "current",
78}
79