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