1// Copyright (C) 2020 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: "libtest_extract_native_libs",
21    gtest: false,
22    srcs: ["jni/*.cpp"],
23    cflags: [
24        "-Wall",
25        "-Werror",
26        "-Wno-unused-parameter",
27    ],
28    header_libs: ["jni_headers"],
29    shared_libs: ["liblog"],
30    sdk_version: "current",
31}
32
33android_test_helper_app {
34    name: "CtsExtractNativeLibsAppFalse32",
35    defaults: ["cts_defaults"],
36    sdk_version: "current",
37    srcs: ["app_no_extract/src/**/*.java"],
38    manifest: "app_no_extract/AndroidManifest.xml",
39    test_suites: [
40        "cts",
41        "vts10",
42        "general-tests",
43    ],
44    jni_libs: [
45        "libtest_extract_native_libs",
46    ],
47    static_libs: ["androidx.test.rules"],
48    use_embedded_native_libs: true,
49    compile_multilib: "32",
50    v4_signature: true,
51}
52
53android_test_helper_app {
54    name: "CtsExtractNativeLibsAppFalse64",
55    defaults: ["cts_defaults"],
56    sdk_version: "current",
57    srcs: ["app_no_extract/src/**/*.java"],
58    manifest: "app_no_extract/AndroidManifest.xml",
59    test_suites: [
60        "cts",
61        "vts10",
62        "general-tests",
63    ],
64    jni_libs: [
65        "libtest_extract_native_libs",
66    ],
67    static_libs: ["androidx.test.rules"],
68    use_embedded_native_libs: true,
69    compile_multilib: "64",
70    v4_signature: true,
71}
72
73android_test_helper_app {
74    name: "CtsExtractNativeLibsAppFalseBoth",
75    defaults: ["cts_defaults"],
76    sdk_version: "current",
77    srcs: ["app_no_extract/src/**/*.java"],
78    manifest: "app_no_extract/AndroidManifest.xml",
79    test_suites: [
80        "cts",
81        "general-tests",
82    ],
83    jni_libs: [
84        "libtest_extract_native_libs",
85    ],
86    static_libs: ["androidx.test.rules"],
87    use_embedded_native_libs: true,
88    compile_multilib: "both",
89    v4_signature: true,
90}
91
92android_test_helper_app {
93    name: "CtsExtractNativeLibsAppTrue32",
94    defaults: ["cts_defaults"],
95    sdk_version: "current",
96    srcs: ["app_extract/src/**/*.java"],
97    manifest: "app_extract/AndroidManifest.xml",
98    test_suites: [
99        "cts",
100        "vts10",
101        "general-tests",
102    ],
103    jni_libs: [
104        "libtest_extract_native_libs",
105    ],
106    static_libs: ["androidx.test.rules"],
107    use_embedded_native_libs: false,
108    compile_multilib: "32",
109    v4_signature: true,
110}
111
112android_test_helper_app {
113    name: "CtsExtractNativeLibsAppTrue64",
114    defaults: ["cts_defaults"],
115    sdk_version: "current",
116    srcs: ["app_extract/src/**/*.java"],
117    manifest: "app_extract/AndroidManifest.xml",
118    test_suites: [
119        "cts",
120        "vts10",
121        "general-tests",
122    ],
123    jni_libs: [
124        "libtest_extract_native_libs",
125    ],
126    static_libs: ["androidx.test.rules"],
127    use_embedded_native_libs: false,
128    compile_multilib: "64",
129    v4_signature: true,
130}
131
132android_test_helper_app {
133    name: "CtsExtractNativeLibsAppTrueBoth",
134    defaults: ["cts_defaults"],
135    sdk_version: "current",
136    srcs: ["app_extract/src/**/*.java"],
137    manifest: "app_extract/AndroidManifest.xml",
138    test_suites: [
139        "cts",
140        "general-tests",
141    ],
142    jni_libs: [
143        "libtest_extract_native_libs",
144    ],
145    static_libs: ["androidx.test.rules"],
146    use_embedded_native_libs: false,
147    compile_multilib: "both",
148    v4_signature: true,
149}
150