• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 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//
15// This file is automatically generated by gen_android_bp.py. Do not edit.
16
17// GN: Package-Artificial
18package {
19    default_applicable_licenses: [
20        "external_cronet_license",
21    ],
22}
23
24// GN: //testing/android/native_test:native_main_runner_java__testing
25java_library {
26    name: "tot_cronet_testing_android_native_test_native_main_runner_java__testing",
27    srcs: [
28        ":tot_cronet_testing_android_native_test_native_main_runner_jni__action__testing__java",
29        "java/src/org/chromium/native_test/MainRunner.java",
30    ],
31    static_libs: [
32        "tot_cronet_third_party_jni_zero_jni_zero_java__testing",
33    ],
34    apex_available: [
35        "com.android.tethering",
36    ],
37    min_sdk_version: "30",
38    sdk_version: "current",
39    visibility: [
40        "//external/cronet:__subpackages__",
41    ],
42    jarjar_rules: ":remove_gen_jni_jarjar_rules",
43}
44
45// GN: //testing/android/native_test:native_test_java__testing
46java_library {
47    name: "tot_cronet_testing_android_native_test_native_test_java__testing",
48    srcs: [
49        ":tot_cronet_testing_android_native_test_native_test_jni__action__testing__java",
50        "java/src/org/chromium/native_test/NativeTest.java",
51        "java/src/org/chromium/native_test/NativeTestApplication.java",
52        "java/src/org/chromium/native_test/NativeUnitTest.java",
53        "java/src/org/chromium/native_test/NativeUnitTestActivity.java",
54        "java/src/org/chromium/native_test/NativeUnitTestNativeActivity.java",
55    ],
56    static_libs: [
57        "tot_cronet_base_base_java__testing",
58        "tot_cronet_base_base_java_test_support__testing",
59        "tot_cronet_build_android_build_java__testing",
60        "tot_cronet_build_android_gtest_apk_native_test_instrumentation_test_runner_java__testing",
61        "tot_cronet_testing_android_native_test_native_main_runner_java__testing",
62        "tot_cronet_testing_android_reporter_reporter_java__testing",
63        "tot_cronet_third_party_jni_zero_jni_zero_java__testing",
64    ],
65    apex_available: [
66        "com.android.tethering",
67    ],
68    min_sdk_version: "30",
69    sdk_version: "current",
70    visibility: [
71        "//external/cronet:__subpackages__",
72        "//packages/modules/Connectivity:__subpackages__",
73    ],
74    jarjar_rules: ":remove_gen_jni_jarjar_rules",
75}
76
77// GN: //testing/android/native_test:native_test_native_code__testing
78cc_library_static {
79    name: "tot_cronet_testing_android_native_test_native_test_native_code__testing",
80    srcs: [
81        "native_test_jni_onload.cc",
82    ],
83    shared_libs: [
84        "libandroid",
85        "liblog",
86        "libz",
87    ],
88    host_cross_supported: false,
89    generated_headers: [
90        "tot_cronet_base_allocator_buildflags__testing",
91        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
92        "tot_cronet_base_anchor_functions_buildflags__testing",
93        "tot_cronet_base_build_date__testing",
94        "tot_cronet_base_cfi_buildflags__testing",
95        "tot_cronet_base_check_version_internal_action__testing",
96        "tot_cronet_base_clang_profiling_buildflags__testing",
97        "tot_cronet_base_debugging_buildflags__testing",
98        "tot_cronet_base_feature_list_buildflags__testing",
99        "tot_cronet_base_fuzzing_buildflags__testing",
100        "tot_cronet_base_ios_cronet_buildflags__testing",
101        "tot_cronet_base_orderfile_buildflags__testing",
102        "tot_cronet_base_power_monitor_buildflags__testing",
103        "tot_cronet_base_profiler_buildflags__testing",
104        "tot_cronet_base_protected_memory_buildflags__testing",
105        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
106        "tot_cronet_base_sanitizer_buildflags__testing",
107        "tot_cronet_base_synchronization_buildflags__testing",
108        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
109        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
110        "tot_cronet_base_test_test_support_jni_headers__action__testing",
111        "tot_cronet_base_tracing_buildflags__testing",
112        "tot_cronet_build_blink_buildflags__testing",
113        "tot_cronet_build_branding_buildflags__testing",
114        "tot_cronet_build_chromecast_buildflags__testing",
115        "tot_cronet_build_chromeos_buildflags__testing",
116        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
117        "tot_cronet_build_ios_buildflags__testing",
118        "tot_cronet_testing_android_native_test_native_main_runner_jni__action__testing",
119        "tot_cronet_testing_android_native_test_native_test_jni__action__testing",
120        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
121        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
122        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
123    ],
124    export_generated_headers: [
125        "tot_cronet_base_allocator_buildflags__testing",
126        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
127        "tot_cronet_base_anchor_functions_buildflags__testing",
128        "tot_cronet_base_build_date__testing",
129        "tot_cronet_base_cfi_buildflags__testing",
130        "tot_cronet_base_check_version_internal_action__testing",
131        "tot_cronet_base_clang_profiling_buildflags__testing",
132        "tot_cronet_base_debugging_buildflags__testing",
133        "tot_cronet_base_feature_list_buildflags__testing",
134        "tot_cronet_base_fuzzing_buildflags__testing",
135        "tot_cronet_base_ios_cronet_buildflags__testing",
136        "tot_cronet_base_orderfile_buildflags__testing",
137        "tot_cronet_base_power_monitor_buildflags__testing",
138        "tot_cronet_base_profiler_buildflags__testing",
139        "tot_cronet_base_protected_memory_buildflags__testing",
140        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
141        "tot_cronet_base_sanitizer_buildflags__testing",
142        "tot_cronet_base_synchronization_buildflags__testing",
143        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
144        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
145        "tot_cronet_base_test_test_support_jni_headers__action__testing",
146        "tot_cronet_base_tracing_buildflags__testing",
147        "tot_cronet_build_blink_buildflags__testing",
148        "tot_cronet_build_branding_buildflags__testing",
149        "tot_cronet_build_chromecast_buildflags__testing",
150        "tot_cronet_build_chromeos_buildflags__testing",
151        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
152        "tot_cronet_build_ios_buildflags__testing",
153        "tot_cronet_testing_android_native_test_native_main_runner_jni__action__testing",
154        "tot_cronet_testing_android_native_test_native_test_jni__action__testing",
155        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
156        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
157        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
158    ],
159    defaults: [
160        "tot_cronet_cc_defaults",
161    ],
162    cflags: [
163        "-DANDROID",
164        "-DANDROID_NDK_VERSION_ROLL=r27_1",
165        "-DBENCHMARK_STATIC_DEFINE",
166        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
167        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
168        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
169        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
170        "-DHAVE_SYS_UIO_H",
171        "-DNDEBUG",
172        "-DNVALGRIND",
173        "-DOFFICIAL_BUILD",
174        "-DTMP_REBUILD_HACK",
175        "-D_GNU_SOURCE",
176        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
177        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
178        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
179        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
180        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
181        "-D__STDC_CONSTANT_MACROS",
182        "-D__STDC_FORMAT_MACROS",
183        "-fdata-sections",
184        "-ffunction-sections",
185        "-fstack-protector",
186        "-fvisibility-inlines-hidden",
187        "-fvisibility=hidden",
188        "-g1",
189    ],
190    include_dirs: [
191        "external/cronet/tot/",
192        "external/cronet/tot/base/allocator/partition_allocator/src/",
193        "external/cronet/tot/buildtools/third_party/libc++/",
194        "external/cronet/tot/third_party/abseil-cpp/",
195        "external/cronet/tot/third_party/boringssl/src/include/",
196        "external/cronet/tot/third_party/google_benchmark/src/include/",
197        "external/cronet/tot/third_party/libc++/src/include",
198        "external/cronet/tot/third_party/libc++abi/src/include",
199    ],
200    cpp_std: "c++20",
201    ldflags: [
202        "-Wl,--as-needed",
203        "-Wl,--gc-sections",
204        "-Wl,--icf=all",
205        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
206    ],
207    visibility: [
208        "//external/cronet:__subpackages__",
209    ],
210    target: {
211        android_arm: {
212            cflags: [
213                "-D_FORTIFY_SOURCE=2",
214            ],
215        },
216        android_arm64: {
217            cflags: [
218                "-D_FORTIFY_SOURCE=2",
219                "-D__ARM_NEON__=1",
220                "-O2",
221                "-mno-outline",
222            ],
223        },
224        android_x86: {
225            cflags: [
226                "-D_FORTIFY_SOURCE=2",
227                "-msse3",
228            ],
229        },
230        android_x86_64: {
231            cflags: [
232                "-D_FORTIFY_SOURCE=2",
233                "-O2",
234                "-msse3",
235            ],
236        },
237    },
238}
239
240// GN: //testing/android/native_test:native_test_support__testing
241cc_library_static {
242    name: "tot_cronet_testing_android_native_test_native_test_support__testing",
243    srcs: [
244        "main_runner.cc",
245        "native_test_launcher.cc",
246        "native_test_util.cc",
247    ],
248    shared_libs: [
249        "libandroid",
250        "liblog",
251        "libz",
252    ],
253    host_cross_supported: false,
254    generated_headers: [
255        "tot_cronet_base_allocator_buildflags__testing",
256        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
257        "tot_cronet_base_anchor_functions_buildflags__testing",
258        "tot_cronet_base_build_date__testing",
259        "tot_cronet_base_cfi_buildflags__testing",
260        "tot_cronet_base_check_version_internal_action__testing",
261        "tot_cronet_base_clang_profiling_buildflags__testing",
262        "tot_cronet_base_debugging_buildflags__testing",
263        "tot_cronet_base_feature_list_buildflags__testing",
264        "tot_cronet_base_fuzzing_buildflags__testing",
265        "tot_cronet_base_ios_cronet_buildflags__testing",
266        "tot_cronet_base_orderfile_buildflags__testing",
267        "tot_cronet_base_power_monitor_buildflags__testing",
268        "tot_cronet_base_profiler_buildflags__testing",
269        "tot_cronet_base_protected_memory_buildflags__testing",
270        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
271        "tot_cronet_base_sanitizer_buildflags__testing",
272        "tot_cronet_base_synchronization_buildflags__testing",
273        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
274        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
275        "tot_cronet_base_test_test_support_jni_headers__action__testing",
276        "tot_cronet_base_tracing_buildflags__testing",
277        "tot_cronet_build_blink_buildflags__testing",
278        "tot_cronet_build_branding_buildflags__testing",
279        "tot_cronet_build_chromecast_buildflags__testing",
280        "tot_cronet_build_chromeos_buildflags__testing",
281        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
282        "tot_cronet_build_ios_buildflags__testing",
283        "tot_cronet_testing_android_native_test_native_main_runner_jni__action__testing",
284        "tot_cronet_testing_android_native_test_native_test_jni__action__testing",
285        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
286        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
287        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
288    ],
289    export_generated_headers: [
290        "tot_cronet_base_allocator_buildflags__testing",
291        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
292        "tot_cronet_base_anchor_functions_buildflags__testing",
293        "tot_cronet_base_build_date__testing",
294        "tot_cronet_base_cfi_buildflags__testing",
295        "tot_cronet_base_check_version_internal_action__testing",
296        "tot_cronet_base_clang_profiling_buildflags__testing",
297        "tot_cronet_base_debugging_buildflags__testing",
298        "tot_cronet_base_feature_list_buildflags__testing",
299        "tot_cronet_base_fuzzing_buildflags__testing",
300        "tot_cronet_base_ios_cronet_buildflags__testing",
301        "tot_cronet_base_orderfile_buildflags__testing",
302        "tot_cronet_base_power_monitor_buildflags__testing",
303        "tot_cronet_base_profiler_buildflags__testing",
304        "tot_cronet_base_protected_memory_buildflags__testing",
305        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
306        "tot_cronet_base_sanitizer_buildflags__testing",
307        "tot_cronet_base_synchronization_buildflags__testing",
308        "tot_cronet_base_test_base_unittests_jni_headers__action__testing",
309        "tot_cronet_base_test_test_rust_logger_consumer_cxx_generated_gen__testing_header",
310        "tot_cronet_base_test_test_support_jni_headers__action__testing",
311        "tot_cronet_base_tracing_buildflags__testing",
312        "tot_cronet_build_blink_buildflags__testing",
313        "tot_cronet_build_branding_buildflags__testing",
314        "tot_cronet_build_chromecast_buildflags__testing",
315        "tot_cronet_build_chromeos_buildflags__testing",
316        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
317        "tot_cronet_build_ios_buildflags__testing",
318        "tot_cronet_testing_android_native_test_native_main_runner_jni__action__testing",
319        "tot_cronet_testing_android_native_test_native_test_jni__action__testing",
320        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
321        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
322        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
323    ],
324    defaults: [
325        "tot_cronet_cc_defaults",
326    ],
327    cflags: [
328        "-DANDROID",
329        "-DANDROID_NDK_VERSION_ROLL=r27_1",
330        "-DBENCHMARK_STATIC_DEFINE",
331        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
332        "-DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.130/include/cxx.h\"",
333        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
334        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
335        "-DGTEST_API_=",
336        "-DGTEST_HAS_ABSL",
337        "-DGTEST_HAS_POSIX_RE=0",
338        "-DGTEST_HAS_TR1_TUPLE=0",
339        "-DGTEST_LANG_CXX11=1",
340        "-DGTEST_NO_ABSL_FLAGS",
341        "-DHAVE_SYS_UIO_H",
342        "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE",
343        "-DNDEBUG",
344        "-DNVALGRIND",
345        "-DOFFICIAL_BUILD",
346        "-DTMP_REBUILD_HACK",
347        "-DUNIT_TEST",
348        "-DUSE_CHROMIUM_ICU=1",
349        "-DU_ENABLE_DYLOAD=0",
350        "-DU_ENABLE_RESOURCE_TRACING=0",
351        "-DU_ENABLE_TRACING=1",
352        "-DU_STATIC_IMPLEMENTATION",
353        "-DU_USING_ICU_NAMESPACE=0",
354        "-D_GNU_SOURCE",
355        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
356        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
357        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
358        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
359        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
360        "-D__STDC_CONSTANT_MACROS",
361        "-D__STDC_FORMAT_MACROS",
362        "-fdata-sections",
363        "-ffunction-sections",
364        "-fstack-protector",
365        "-fvisibility-inlines-hidden",
366        "-fvisibility=hidden",
367        "-g1",
368    ],
369    include_dirs: [
370        "external/cronet/tot/",
371        "external/cronet/tot/base/allocator/partition_allocator/src/",
372        "external/cronet/tot/buildtools/third_party/libc++/",
373        "external/cronet/tot/third_party/abseil-cpp/",
374        "external/cronet/tot/third_party/boringssl/src/include/",
375        "external/cronet/tot/third_party/ced/src/",
376        "external/cronet/tot/third_party/google_benchmark/src/include/",
377        "external/cronet/tot/third_party/googletest/custom/",
378        "external/cronet/tot/third_party/googletest/src/googlemock/include/",
379        "external/cronet/tot/third_party/googletest/src/googletest/include/",
380        "external/cronet/tot/third_party/icu/source/common/",
381        "external/cronet/tot/third_party/icu/source/i18n/",
382        "external/cronet/tot/third_party/libc++/src/include",
383        "external/cronet/tot/third_party/libc++abi/src/include",
384        "external/cronet/tot/third_party/re2/src/",
385    ],
386    cpp_std: "c++20",
387    ldflags: [
388        "-Wl,--as-needed",
389        "-Wl,--gc-sections",
390        "-Wl,--icf=all",
391        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
392    ],
393    visibility: [
394        "//external/cronet:__subpackages__",
395    ],
396    target: {
397        android_arm: {
398            cflags: [
399                "-D_FORTIFY_SOURCE=2",
400            ],
401        },
402        android_arm64: {
403            cflags: [
404                "-D_FORTIFY_SOURCE=2",
405                "-D__ARM_NEON__=1",
406                "-O2",
407                "-mno-outline",
408            ],
409        },
410        android_x86: {
411            cflags: [
412                "-D_FORTIFY_SOURCE=2",
413                "-msse3",
414            ],
415        },
416        android_x86_64: {
417            cflags: [
418                "-D_FORTIFY_SOURCE=2",
419                "-O2",
420                "-msse3",
421            ],
422        },
423    },
424}
425