• 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/gmock:gmock__testing
25cc_library_static {
26    name: "tot_cronet_testing_gmock_gmock__testing",
27    shared_libs: [
28        "libandroid",
29        "liblog",
30        "libz",
31    ],
32    host_cross_supported: false,
33    generated_headers: [
34        "tot_cronet_base_allocator_buildflags__testing",
35        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
36        "tot_cronet_base_anchor_functions_buildflags__testing",
37        "tot_cronet_base_build_date__testing",
38        "tot_cronet_base_cfi_buildflags__testing",
39        "tot_cronet_base_check_version_internal_action__testing",
40        "tot_cronet_base_clang_profiling_buildflags__testing",
41        "tot_cronet_base_debugging_buildflags__testing",
42        "tot_cronet_base_feature_list_buildflags__testing",
43        "tot_cronet_base_fuzzing_buildflags__testing",
44        "tot_cronet_base_ios_cronet_buildflags__testing",
45        "tot_cronet_base_orderfile_buildflags__testing",
46        "tot_cronet_base_power_monitor_buildflags__testing",
47        "tot_cronet_base_profiler_buildflags__testing",
48        "tot_cronet_base_protected_memory_buildflags__testing",
49        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
50        "tot_cronet_base_sanitizer_buildflags__testing",
51        "tot_cronet_base_synchronization_buildflags__testing",
52        "tot_cronet_base_tracing_buildflags__testing",
53        "tot_cronet_build_blink_buildflags__testing",
54        "tot_cronet_build_branding_buildflags__testing",
55        "tot_cronet_build_chromecast_buildflags__testing",
56        "tot_cronet_build_chromeos_buildflags__testing",
57        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
58        "tot_cronet_build_ios_buildflags__testing",
59        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
60        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
61        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
62    ],
63    export_generated_headers: [
64        "tot_cronet_base_allocator_buildflags__testing",
65        "tot_cronet_base_allocator_partition_allocator_src_partition_alloc_buildflags__testing",
66        "tot_cronet_base_anchor_functions_buildflags__testing",
67        "tot_cronet_base_build_date__testing",
68        "tot_cronet_base_cfi_buildflags__testing",
69        "tot_cronet_base_check_version_internal_action__testing",
70        "tot_cronet_base_clang_profiling_buildflags__testing",
71        "tot_cronet_base_debugging_buildflags__testing",
72        "tot_cronet_base_feature_list_buildflags__testing",
73        "tot_cronet_base_fuzzing_buildflags__testing",
74        "tot_cronet_base_ios_cronet_buildflags__testing",
75        "tot_cronet_base_orderfile_buildflags__testing",
76        "tot_cronet_base_power_monitor_buildflags__testing",
77        "tot_cronet_base_profiler_buildflags__testing",
78        "tot_cronet_base_protected_memory_buildflags__testing",
79        "tot_cronet_base_rust_logger_cxx_generated_gen__testing_header",
80        "tot_cronet_base_sanitizer_buildflags__testing",
81        "tot_cronet_base_synchronization_buildflags__testing",
82        "tot_cronet_base_tracing_buildflags__testing",
83        "tot_cronet_build_blink_buildflags__testing",
84        "tot_cronet_build_branding_buildflags__testing",
85        "tot_cronet_build_chromecast_buildflags__testing",
86        "tot_cronet_build_chromeos_buildflags__testing",
87        "tot_cronet_build_config_compiler_compiler_buildflags__testing",
88        "tot_cronet_build_ios_buildflags__testing",
89        "tot_cronet_third_party_jni_zero_generate_jni__action__testing",
90        "tot_cronet_third_party_jni_zero_system_jni__action__testing",
91        "tot_cronet_third_party_rust_serde_json_lenient_v0_2_wrapper_wrapper_cxx_generated_gen__testing_header",
92    ],
93    defaults: [
94        "tot_cronet_cc_defaults",
95    ],
96    cflags: [
97        "-DANDROID",
98        "-DANDROID_NDK_VERSION_ROLL=r27_1",
99        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
100        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
101        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
102        "-DGTEST_API_=",
103        "-DGTEST_HAS_ABSL",
104        "-DGTEST_HAS_POSIX_RE=0",
105        "-DGTEST_HAS_TR1_TUPLE=0",
106        "-DGTEST_LANG_CXX11=1",
107        "-DGTEST_NO_ABSL_FLAGS",
108        "-DHAVE_SYS_UIO_H",
109        "-DNDEBUG",
110        "-DNVALGRIND",
111        "-DOFFICIAL_BUILD",
112        "-DTMP_REBUILD_HACK",
113        "-D_GNU_SOURCE",
114        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
115        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
116        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
117        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
118        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
119        "-D__STDC_CONSTANT_MACROS",
120        "-D__STDC_FORMAT_MACROS",
121        "-fdata-sections",
122        "-ffunction-sections",
123        "-fstack-protector",
124        "-fvisibility-inlines-hidden",
125        "-fvisibility=hidden",
126        "-g1",
127    ],
128    include_dirs: [
129        "external/cronet/tot/",
130        "external/cronet/tot/buildtools/third_party/libc++/",
131        "external/cronet/tot/third_party/abseil-cpp/",
132        "external/cronet/tot/third_party/googletest/custom/",
133        "external/cronet/tot/third_party/googletest/src/googlemock/include/",
134        "external/cronet/tot/third_party/googletest/src/googletest/include/",
135        "external/cronet/tot/third_party/libc++/src/include",
136        "external/cronet/tot/third_party/libc++abi/src/include",
137        "external/cronet/tot/third_party/re2/src/",
138    ],
139    cpp_std: "c++20",
140    ldflags: [
141        "-Wl,--as-needed",
142        "-Wl,--gc-sections",
143        "-Wl,--icf=all",
144        "-Wl,--script,external/cronet/tot/base/android/library_loader/anchor_functions.lds",
145    ],
146    visibility: [
147        "//external/cronet:__subpackages__",
148    ],
149    target: {
150        android_arm: {
151            cflags: [
152                "-D_FORTIFY_SOURCE=2",
153            ],
154        },
155        android_arm64: {
156            cflags: [
157                "-D_FORTIFY_SOURCE=2",
158                "-D__ARM_NEON__=1",
159                "-O2",
160                "-mno-outline",
161            ],
162        },
163        android_x86: {
164            cflags: [
165                "-D_FORTIFY_SOURCE=2",
166                "-msse3",
167            ],
168        },
169        android_x86_64: {
170            cflags: [
171                "-D_FORTIFY_SOURCE=2",
172                "-O2",
173                "-msse3",
174            ],
175        },
176    },
177}
178