• 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        "stable_cronet_third_party_protobuf_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_cronet_third_party_protobuf_license",
27    visibility: [
28        ":__subpackages__",
29    ],
30    license_text: [
31        "LICENSE",
32    ],
33    license_kinds: [
34        "SPDX-license-identifier-BSD-3-Clause",
35    ],
36}
37
38// GN: //third_party/protobuf:protobuf_full
39cc_library_static {
40    name: "stable_cronet_third_party_protobuf_protobuf_full",
41    srcs: [
42        "src/google/protobuf/any.cc",
43        "src/google/protobuf/any.pb.cc",
44        "src/google/protobuf/api.pb.cc",
45        "src/google/protobuf/compiler/importer.cc",
46        "src/google/protobuf/compiler/parser.cc",
47        "src/google/protobuf/descriptor.cc",
48        "src/google/protobuf/descriptor.pb.cc",
49        "src/google/protobuf/descriptor_database.cc",
50        "src/google/protobuf/duration.pb.cc",
51        "src/google/protobuf/dynamic_message.cc",
52        "src/google/protobuf/empty.pb.cc",
53        "src/google/protobuf/extension_set_heavy.cc",
54        "src/google/protobuf/field_mask.pb.cc",
55        "src/google/protobuf/generated_message_bases.cc",
56        "src/google/protobuf/generated_message_reflection.cc",
57        "src/google/protobuf/generated_message_tctable_full.cc",
58        "src/google/protobuf/io/gzip_stream.cc",
59        "src/google/protobuf/io/printer.cc",
60        "src/google/protobuf/io/tokenizer.cc",
61        "src/google/protobuf/map_field.cc",
62        "src/google/protobuf/message.cc",
63        "src/google/protobuf/reflection_ops.cc",
64        "src/google/protobuf/service.cc",
65        "src/google/protobuf/source_context.pb.cc",
66        "src/google/protobuf/struct.pb.cc",
67        "src/google/protobuf/stubs/substitute.cc",
68        "src/google/protobuf/text_format.cc",
69        "src/google/protobuf/timestamp.pb.cc",
70        "src/google/protobuf/type.pb.cc",
71        "src/google/protobuf/unknown_field_set.cc",
72        "src/google/protobuf/util/delimited_message_util.cc",
73        "src/google/protobuf/util/field_comparator.cc",
74        "src/google/protobuf/util/field_mask_util.cc",
75        "src/google/protobuf/util/internal/datapiece.cc",
76        "src/google/protobuf/util/internal/default_value_objectwriter.cc",
77        "src/google/protobuf/util/internal/error_listener.cc",
78        "src/google/protobuf/util/internal/field_mask_utility.cc",
79        "src/google/protobuf/util/internal/json_escaping.cc",
80        "src/google/protobuf/util/internal/json_objectwriter.cc",
81        "src/google/protobuf/util/internal/json_stream_parser.cc",
82        "src/google/protobuf/util/internal/object_writer.cc",
83        "src/google/protobuf/util/internal/proto_writer.cc",
84        "src/google/protobuf/util/internal/protostream_objectsource.cc",
85        "src/google/protobuf/util/internal/protostream_objectwriter.cc",
86        "src/google/protobuf/util/internal/type_info.cc",
87        "src/google/protobuf/util/internal/utility.cc",
88        "src/google/protobuf/util/json_util.cc",
89        "src/google/protobuf/util/message_differencer.cc",
90        "src/google/protobuf/util/time_util.cc",
91        "src/google/protobuf/util/type_resolver_util.cc",
92        "src/google/protobuf/wire_format.cc",
93        "src/google/protobuf/wrappers.pb.cc",
94    ],
95    shared_libs: [
96        "libz",
97    ],
98    host_supported: true,
99    host_cross_supported: false,
100    device_supported: false,
101    defaults: [
102        "stable_cronet_cc_defaults",
103    ],
104    cflags: [
105        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
106        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
107        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
108        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
109        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
110        "-DGOOGLE_PROTOBUF_NO_RTTI",
111        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
112        "-DHAVE_PTHREAD",
113        "-DHAVE_ZLIB",
114        "-DNDEBUG",
115        "-DNO_UNWIND_TABLES",
116        "-DNVALGRIND",
117        "-DOFFICIAL_BUILD",
118        "-DTMP_REBUILD_HACK",
119        "-DUSE_AURA=1",
120        "-DUSE_OZONE=1",
121        "-DUSE_UDEV",
122        "-D_FILE_OFFSET_BITS=64",
123        "-D_GNU_SOURCE",
124        "-D_LARGEFILE64_SOURCE",
125        "-D_LARGEFILE_SOURCE",
126        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
127        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
128        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
129        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
130        "-O2",
131        "-fdata-sections",
132        "-ffunction-sections",
133        "-fno-asynchronous-unwind-tables",
134        "-fno-unwind-tables",
135        "-fstack-protector",
136        "-fvisibility-inlines-hidden",
137        "-fvisibility=hidden",
138        "-g1",
139        "-msse3",
140    ],
141    include_dirs: [
142        "external/cronet/stable/",
143        "external/cronet/stable/buildtools/third_party/libc++/",
144        "external/cronet/stable/third_party/libc++/src/include",
145        "external/cronet/stable/third_party/libc++abi/src/include",
146        "external/cronet/stable/third_party/protobuf/src/",
147    ],
148    cpp_std: "c++20",
149    ldflags: [
150        "-Wl,--as-needed",
151        "-Wl,--gc-sections",
152        "-Wl,--icf=all",
153    ],
154    visibility: [
155        "//external/cronet:__subpackages__",
156    ],
157}
158
159// GN: //third_party/protobuf:protobuf_full__testing
160cc_library_static {
161    name: "stable_cronet_third_party_protobuf_protobuf_full__testing",
162    srcs: [
163        "src/google/protobuf/any.cc",
164        "src/google/protobuf/any.pb.cc",
165        "src/google/protobuf/api.pb.cc",
166        "src/google/protobuf/compiler/importer.cc",
167        "src/google/protobuf/compiler/parser.cc",
168        "src/google/protobuf/descriptor.cc",
169        "src/google/protobuf/descriptor.pb.cc",
170        "src/google/protobuf/descriptor_database.cc",
171        "src/google/protobuf/duration.pb.cc",
172        "src/google/protobuf/dynamic_message.cc",
173        "src/google/protobuf/empty.pb.cc",
174        "src/google/protobuf/extension_set_heavy.cc",
175        "src/google/protobuf/field_mask.pb.cc",
176        "src/google/protobuf/generated_message_bases.cc",
177        "src/google/protobuf/generated_message_reflection.cc",
178        "src/google/protobuf/generated_message_tctable_full.cc",
179        "src/google/protobuf/io/gzip_stream.cc",
180        "src/google/protobuf/io/printer.cc",
181        "src/google/protobuf/io/tokenizer.cc",
182        "src/google/protobuf/map_field.cc",
183        "src/google/protobuf/message.cc",
184        "src/google/protobuf/reflection_ops.cc",
185        "src/google/protobuf/service.cc",
186        "src/google/protobuf/source_context.pb.cc",
187        "src/google/protobuf/struct.pb.cc",
188        "src/google/protobuf/stubs/substitute.cc",
189        "src/google/protobuf/text_format.cc",
190        "src/google/protobuf/timestamp.pb.cc",
191        "src/google/protobuf/type.pb.cc",
192        "src/google/protobuf/unknown_field_set.cc",
193        "src/google/protobuf/util/delimited_message_util.cc",
194        "src/google/protobuf/util/field_comparator.cc",
195        "src/google/protobuf/util/field_mask_util.cc",
196        "src/google/protobuf/util/internal/datapiece.cc",
197        "src/google/protobuf/util/internal/default_value_objectwriter.cc",
198        "src/google/protobuf/util/internal/error_listener.cc",
199        "src/google/protobuf/util/internal/field_mask_utility.cc",
200        "src/google/protobuf/util/internal/json_escaping.cc",
201        "src/google/protobuf/util/internal/json_objectwriter.cc",
202        "src/google/protobuf/util/internal/json_stream_parser.cc",
203        "src/google/protobuf/util/internal/object_writer.cc",
204        "src/google/protobuf/util/internal/proto_writer.cc",
205        "src/google/protobuf/util/internal/protostream_objectsource.cc",
206        "src/google/protobuf/util/internal/protostream_objectwriter.cc",
207        "src/google/protobuf/util/internal/type_info.cc",
208        "src/google/protobuf/util/internal/utility.cc",
209        "src/google/protobuf/util/json_util.cc",
210        "src/google/protobuf/util/message_differencer.cc",
211        "src/google/protobuf/util/time_util.cc",
212        "src/google/protobuf/util/type_resolver_util.cc",
213        "src/google/protobuf/wire_format.cc",
214        "src/google/protobuf/wrappers.pb.cc",
215    ],
216    shared_libs: [
217        "libz",
218    ],
219    host_supported: true,
220    host_cross_supported: false,
221    defaults: [
222        "stable_cronet_cc_defaults",
223    ],
224    cflags: [
225        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
226        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
227        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
228        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
229        "-DGOOGLE_PROTOBUF_NO_RTTI",
230        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
231        "-DHAVE_PTHREAD",
232        "-DHAVE_ZLIB",
233        "-DNDEBUG",
234        "-DNVALGRIND",
235        "-DOFFICIAL_BUILD",
236        "-DTMP_REBUILD_HACK",
237        "-D_GNU_SOURCE",
238        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
239        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
240        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
241        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
242        "-fdata-sections",
243        "-ffunction-sections",
244        "-fstack-protector",
245        "-fvisibility-inlines-hidden",
246        "-fvisibility=hidden",
247        "-g1",
248    ],
249    include_dirs: [
250        "external/cronet/stable/",
251        "external/cronet/stable/buildtools/third_party/libc++/",
252        "external/cronet/stable/third_party/libc++/src/include",
253        "external/cronet/stable/third_party/libc++abi/src/include",
254        "external/cronet/stable/third_party/protobuf/src/",
255    ],
256    cpp_std: "c++20",
257    ldflags: [
258        "-Wl,--as-needed",
259        "-Wl,--gc-sections",
260        "-Wl,--icf=all",
261    ],
262    visibility: [
263        "//external/cronet:__subpackages__",
264    ],
265    target: {
266        android: {
267            shared_libs: [
268                "liblog",
269            ],
270        },
271        android_arm: {
272            cflags: [
273                "-DANDROID",
274                "-DANDROID_NDK_VERSION_ROLL=r27_1",
275                "-DHAVE_SYS_UIO_H",
276                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
277            ],
278        },
279        android_arm64: {
280            cflags: [
281                "-DANDROID",
282                "-DANDROID_NDK_VERSION_ROLL=r27_1",
283                "-DHAVE_SYS_UIO_H",
284                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
285                "-D__ARM_NEON__=1",
286                "-O2",
287                "-mno-outline",
288            ],
289        },
290        android_riscv64: {
291            cflags: [
292                "-DANDROID",
293                "-DANDROID_NDK_VERSION_ROLL=r27_1",
294                "-DHAVE_SYS_UIO_H",
295                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
296            ],
297        },
298        android_x86: {
299            cflags: [
300                "-DANDROID",
301                "-DANDROID_NDK_VERSION_ROLL=r27_1",
302                "-DHAVE_SYS_UIO_H",
303                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
304                "-msse3",
305            ],
306        },
307        android_x86_64: {
308            cflags: [
309                "-DANDROID",
310                "-DANDROID_NDK_VERSION_ROLL=r27_1",
311                "-DHAVE_SYS_UIO_H",
312                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
313                "-O2",
314                "-msse3",
315            ],
316        },
317        host: {
318            cflags: [
319                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
320                "-DNO_UNWIND_TABLES",
321                "-DUSE_AURA=1",
322                "-DUSE_OZONE=1",
323                "-DUSE_UDEV",
324                "-D_FILE_OFFSET_BITS=64",
325                "-D_LARGEFILE64_SOURCE",
326                "-D_LARGEFILE_SOURCE",
327                "-O2",
328                "-fno-asynchronous-unwind-tables",
329                "-fno-unwind-tables",
330                "-msse3",
331            ],
332        },
333    },
334}
335
336// GN: //third_party/protobuf:protobuf_lite
337cc_library_static {
338    name: "stable_cronet_third_party_protobuf_protobuf_lite",
339    srcs: [
340        "src/google/protobuf/any_lite.cc",
341        "src/google/protobuf/arena.cc",
342        "src/google/protobuf/arenastring.cc",
343        "src/google/protobuf/arenaz_sampler.cc",
344        "src/google/protobuf/extension_set.cc",
345        "src/google/protobuf/generated_enum_util.cc",
346        "src/google/protobuf/generated_message_tctable_lite.cc",
347        "src/google/protobuf/generated_message_util.cc",
348        "src/google/protobuf/implicit_weak_message.cc",
349        "src/google/protobuf/inlined_string_field.cc",
350        "src/google/protobuf/io/coded_stream.cc",
351        "src/google/protobuf/io/io_win32.cc",
352        "src/google/protobuf/io/strtod.cc",
353        "src/google/protobuf/io/zero_copy_stream.cc",
354        "src/google/protobuf/io/zero_copy_stream_impl.cc",
355        "src/google/protobuf/io/zero_copy_stream_impl_lite.cc",
356        "src/google/protobuf/map.cc",
357        "src/google/protobuf/message_lite.cc",
358        "src/google/protobuf/parse_context.cc",
359        "src/google/protobuf/repeated_field.cc",
360        "src/google/protobuf/repeated_ptr_field.cc",
361        "src/google/protobuf/stubs/bytestream.cc",
362        "src/google/protobuf/stubs/common.cc",
363        "src/google/protobuf/stubs/int128.cc",
364        "src/google/protobuf/stubs/status.cc",
365        "src/google/protobuf/stubs/statusor.cc",
366        "src/google/protobuf/stubs/stringpiece.cc",
367        "src/google/protobuf/stubs/stringprintf.cc",
368        "src/google/protobuf/stubs/structurally_valid.cc",
369        "src/google/protobuf/stubs/strutil.cc",
370        "src/google/protobuf/stubs/time.cc",
371        "src/google/protobuf/wire_format_lite.cc",
372    ],
373    host_supported: true,
374    host_cross_supported: false,
375    defaults: [
376        "stable_cronet_cc_defaults",
377    ],
378    cflags: [
379        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
380        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
381        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
382        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
383        "-DGOOGLE_PROTOBUF_NO_RTTI",
384        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
385        "-DHAVE_PTHREAD",
386        "-DNDEBUG",
387        "-DNVALGRIND",
388        "-DOFFICIAL_BUILD",
389        "-DTMP_REBUILD_HACK",
390        "-D_GNU_SOURCE",
391        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
392        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
393        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
394        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
395        "-O2",
396        "-fdata-sections",
397        "-ffunction-sections",
398        "-fstack-protector",
399        "-fvisibility-inlines-hidden",
400        "-fvisibility=hidden",
401        "-g1",
402    ],
403    include_dirs: [
404        "external/cronet/stable/",
405        "external/cronet/stable/buildtools/third_party/libc++/",
406        "external/cronet/stable/third_party/libc++/src/include",
407        "external/cronet/stable/third_party/libc++abi/src/include",
408        "external/cronet/stable/third_party/protobuf/src/",
409    ],
410    cpp_std: "c++20",
411    ldflags: [
412        "-Wl,--as-needed",
413        "-Wl,--gc-sections",
414        "-Wl,--icf=all",
415    ],
416    visibility: [
417        "//external/cronet:__subpackages__",
418    ],
419    target: {
420        android: {
421            shared_libs: [
422                "liblog",
423            ],
424        },
425        android_arm: {
426            cflags: [
427                "-DANDROID",
428                "-DANDROID_NDK_VERSION_ROLL=r27_1",
429                "-DHAVE_SYS_UIO_H",
430                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
431            ],
432        },
433        android_arm64: {
434            cflags: [
435                "-DANDROID",
436                "-DANDROID_NDK_VERSION_ROLL=r27_1",
437                "-DHAVE_SYS_UIO_H",
438                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
439                "-D__ARM_NEON__=1",
440                "-mno-outline",
441            ],
442        },
443        android_riscv64: {
444            cflags: [
445                "-DANDROID",
446                "-DANDROID_NDK_VERSION_ROLL=r27_1",
447                "-DHAVE_SYS_UIO_H",
448                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
449            ],
450        },
451        android_x86: {
452            cflags: [
453                "-DANDROID",
454                "-DANDROID_NDK_VERSION_ROLL=r27_1",
455                "-DHAVE_SYS_UIO_H",
456                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
457                "-msse3",
458            ],
459        },
460        android_x86_64: {
461            cflags: [
462                "-DANDROID",
463                "-DANDROID_NDK_VERSION_ROLL=r27_1",
464                "-DHAVE_SYS_UIO_H",
465                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
466                "-msse3",
467            ],
468        },
469        host: {
470            cflags: [
471                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
472                "-DNO_UNWIND_TABLES",
473                "-DUSE_AURA=1",
474                "-DUSE_OZONE=1",
475                "-DUSE_UDEV",
476                "-D_FILE_OFFSET_BITS=64",
477                "-D_LARGEFILE64_SOURCE",
478                "-D_LARGEFILE_SOURCE",
479                "-fno-asynchronous-unwind-tables",
480                "-fno-unwind-tables",
481                "-msse3",
482            ],
483        },
484    },
485}
486
487// GN: //third_party/protobuf:protobuf_lite__testing
488cc_library_static {
489    name: "stable_cronet_third_party_protobuf_protobuf_lite__testing",
490    srcs: [
491        "src/google/protobuf/any_lite.cc",
492        "src/google/protobuf/arena.cc",
493        "src/google/protobuf/arenastring.cc",
494        "src/google/protobuf/arenaz_sampler.cc",
495        "src/google/protobuf/extension_set.cc",
496        "src/google/protobuf/generated_enum_util.cc",
497        "src/google/protobuf/generated_message_tctable_lite.cc",
498        "src/google/protobuf/generated_message_util.cc",
499        "src/google/protobuf/implicit_weak_message.cc",
500        "src/google/protobuf/inlined_string_field.cc",
501        "src/google/protobuf/io/coded_stream.cc",
502        "src/google/protobuf/io/io_win32.cc",
503        "src/google/protobuf/io/strtod.cc",
504        "src/google/protobuf/io/zero_copy_stream.cc",
505        "src/google/protobuf/io/zero_copy_stream_impl.cc",
506        "src/google/protobuf/io/zero_copy_stream_impl_lite.cc",
507        "src/google/protobuf/map.cc",
508        "src/google/protobuf/message_lite.cc",
509        "src/google/protobuf/parse_context.cc",
510        "src/google/protobuf/repeated_field.cc",
511        "src/google/protobuf/repeated_ptr_field.cc",
512        "src/google/protobuf/stubs/bytestream.cc",
513        "src/google/protobuf/stubs/common.cc",
514        "src/google/protobuf/stubs/int128.cc",
515        "src/google/protobuf/stubs/status.cc",
516        "src/google/protobuf/stubs/statusor.cc",
517        "src/google/protobuf/stubs/stringpiece.cc",
518        "src/google/protobuf/stubs/stringprintf.cc",
519        "src/google/protobuf/stubs/structurally_valid.cc",
520        "src/google/protobuf/stubs/strutil.cc",
521        "src/google/protobuf/stubs/time.cc",
522        "src/google/protobuf/wire_format_lite.cc",
523    ],
524    host_supported: true,
525    host_cross_supported: false,
526    defaults: [
527        "stable_cronet_cc_defaults",
528    ],
529    cflags: [
530        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
531        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
532        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
533        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
534        "-DGOOGLE_PROTOBUF_NO_RTTI",
535        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
536        "-DHAVE_PTHREAD",
537        "-DNDEBUG",
538        "-DNVALGRIND",
539        "-DOFFICIAL_BUILD",
540        "-DTMP_REBUILD_HACK",
541        "-D_GNU_SOURCE",
542        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
543        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
544        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
545        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
546        "-O2",
547        "-fdata-sections",
548        "-ffunction-sections",
549        "-fstack-protector",
550        "-fvisibility-inlines-hidden",
551        "-fvisibility=hidden",
552        "-g1",
553    ],
554    include_dirs: [
555        "external/cronet/stable/",
556        "external/cronet/stable/buildtools/third_party/libc++/",
557        "external/cronet/stable/third_party/libc++/src/include",
558        "external/cronet/stable/third_party/libc++abi/src/include",
559        "external/cronet/stable/third_party/protobuf/src/",
560    ],
561    cpp_std: "c++20",
562    ldflags: [
563        "-Wl,--as-needed",
564        "-Wl,--gc-sections",
565        "-Wl,--icf=all",
566    ],
567    visibility: [
568        "//external/cronet:__subpackages__",
569    ],
570    target: {
571        android: {
572            shared_libs: [
573                "liblog",
574            ],
575        },
576        android_arm: {
577            cflags: [
578                "-DANDROID",
579                "-DANDROID_NDK_VERSION_ROLL=r27_1",
580                "-DHAVE_SYS_UIO_H",
581                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
582            ],
583        },
584        android_arm64: {
585            cflags: [
586                "-DANDROID",
587                "-DANDROID_NDK_VERSION_ROLL=r27_1",
588                "-DHAVE_SYS_UIO_H",
589                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
590                "-D__ARM_NEON__=1",
591                "-mno-outline",
592            ],
593        },
594        android_riscv64: {
595            cflags: [
596                "-DANDROID",
597                "-DANDROID_NDK_VERSION_ROLL=r27_1",
598                "-DHAVE_SYS_UIO_H",
599                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
600            ],
601        },
602        android_x86: {
603            cflags: [
604                "-DANDROID",
605                "-DANDROID_NDK_VERSION_ROLL=r27_1",
606                "-DHAVE_SYS_UIO_H",
607                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
608                "-msse3",
609            ],
610        },
611        android_x86_64: {
612            cflags: [
613                "-DANDROID",
614                "-DANDROID_NDK_VERSION_ROLL=r27_1",
615                "-DHAVE_SYS_UIO_H",
616                "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
617                "-msse3",
618            ],
619        },
620        host: {
621            cflags: [
622                "-DCR_SYSROOT_KEY=20230611T210420Z-2",
623                "-DNO_UNWIND_TABLES",
624                "-DUSE_AURA=1",
625                "-DUSE_OZONE=1",
626                "-DUSE_UDEV",
627                "-D_FILE_OFFSET_BITS=64",
628                "-D_LARGEFILE64_SOURCE",
629                "-D_LARGEFILE_SOURCE",
630                "-fno-asynchronous-unwind-tables",
631                "-fno-unwind-tables",
632                "-msse3",
633            ],
634        },
635    },
636}
637
638// GN: //third_party/protobuf:protoc
639cc_binary {
640    name: "stable_cronet_third_party_protobuf_protoc",
641    srcs: [
642        "src/google/protobuf/compiler/main.cc",
643    ],
644    shared_libs: [
645        "libz",
646    ],
647    whole_static_libs: [
648        "stable_cronet_buildtools_third_party_libc___libc__",
649        "stable_cronet_buildtools_third_party_libc__abi_libc__abi",
650        "stable_cronet_third_party_protobuf_protobuf_full",
651        "stable_cronet_third_party_protobuf_protobuf_lite",
652        "stable_cronet_third_party_protobuf_protoc_java",
653        "stable_cronet_third_party_protobuf_protoc_lib",
654        "stable_cronet_third_party_protobuf_protoc_python",
655    ],
656    host_supported: true,
657    host_cross_supported: false,
658    device_supported: false,
659    defaults: [
660        "stable_cronet_cc_defaults",
661    ],
662    cflags: [
663        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
664        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
665        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
666        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
667        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
668        "-DGOOGLE_PROTOBUF_NO_RTTI",
669        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
670        "-DHAVE_PTHREAD",
671        "-DNDEBUG",
672        "-DNO_UNWIND_TABLES",
673        "-DNVALGRIND",
674        "-DOFFICIAL_BUILD",
675        "-DTMP_REBUILD_HACK",
676        "-DUSE_AURA=1",
677        "-DUSE_OZONE=1",
678        "-DUSE_UDEV",
679        "-D_FILE_OFFSET_BITS=64",
680        "-D_GNU_SOURCE",
681        "-D_LARGEFILE64_SOURCE",
682        "-D_LARGEFILE_SOURCE",
683        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
684        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
685        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
686        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
687        "-O2",
688        "-fdata-sections",
689        "-ffunction-sections",
690        "-fno-asynchronous-unwind-tables",
691        "-fno-unwind-tables",
692        "-fstack-protector",
693        "-fvisibility-inlines-hidden",
694        "-fvisibility=hidden",
695        "-g1",
696        "-msse3",
697    ],
698    include_dirs: [
699        "external/cronet/stable/",
700        "external/cronet/stable/buildtools/third_party/libc++/",
701        "external/cronet/stable/third_party/libc++/src/include",
702        "external/cronet/stable/third_party/libc++abi/src/include",
703        "external/cronet/stable/third_party/protobuf/src/",
704    ],
705    cpp_std: "c++20",
706    ldflags: [
707        "-Wl,--as-needed",
708        "-Wl,--gc-sections",
709        "-Wl,--icf=all",
710    ],
711    visibility: [
712        "//external/cronet:__subpackages__",
713    ],
714}
715
716// GN: //third_party/protobuf:protoc__testing
717cc_binary {
718    name: "stable_cronet_third_party_protobuf_protoc__testing",
719    srcs: [
720        "src/google/protobuf/compiler/main.cc",
721    ],
722    shared_libs: [
723        "libz",
724    ],
725    whole_static_libs: [
726        "stable_cronet_buildtools_third_party_libc___libc____testing",
727        "stable_cronet_buildtools_third_party_libc__abi_libc__abi__testing",
728        "stable_cronet_third_party_protobuf_protobuf_full__testing",
729        "stable_cronet_third_party_protobuf_protobuf_lite__testing",
730        "stable_cronet_third_party_protobuf_protoc_java__testing",
731        "stable_cronet_third_party_protobuf_protoc_lib__testing",
732        "stable_cronet_third_party_protobuf_protoc_python__testing",
733    ],
734    host_supported: true,
735    host_cross_supported: false,
736    device_supported: false,
737    defaults: [
738        "stable_cronet_cc_defaults",
739    ],
740    cflags: [
741        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
742        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
743        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
744        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
745        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
746        "-DGOOGLE_PROTOBUF_NO_RTTI",
747        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
748        "-DHAVE_PTHREAD",
749        "-DNDEBUG",
750        "-DNO_UNWIND_TABLES",
751        "-DNVALGRIND",
752        "-DOFFICIAL_BUILD",
753        "-DTMP_REBUILD_HACK",
754        "-DUSE_AURA=1",
755        "-DUSE_OZONE=1",
756        "-DUSE_UDEV",
757        "-D_FILE_OFFSET_BITS=64",
758        "-D_GNU_SOURCE",
759        "-D_LARGEFILE64_SOURCE",
760        "-D_LARGEFILE_SOURCE",
761        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
762        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
763        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
764        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
765        "-O2",
766        "-fdata-sections",
767        "-ffunction-sections",
768        "-fno-asynchronous-unwind-tables",
769        "-fno-unwind-tables",
770        "-fstack-protector",
771        "-fvisibility-inlines-hidden",
772        "-fvisibility=hidden",
773        "-g1",
774        "-msse3",
775    ],
776    include_dirs: [
777        "external/cronet/stable/",
778        "external/cronet/stable/buildtools/third_party/libc++/",
779        "external/cronet/stable/third_party/libc++/src/include",
780        "external/cronet/stable/third_party/libc++abi/src/include",
781        "external/cronet/stable/third_party/protobuf/src/",
782    ],
783    cpp_std: "c++20",
784    ldflags: [
785        "-Wl,--as-needed",
786        "-Wl,--gc-sections",
787        "-Wl,--icf=all",
788    ],
789    visibility: [
790        "//external/cronet:__subpackages__",
791    ],
792}
793
794// GN: //third_party/protobuf:protoc_java
795cc_library_static {
796    name: "stable_cronet_third_party_protobuf_protoc_java",
797    srcs: [
798        "src/google/protobuf/compiler/java/context.cc",
799        "src/google/protobuf/compiler/java/doc_comment.cc",
800        "src/google/protobuf/compiler/java/enum.cc",
801        "src/google/protobuf/compiler/java/enum_field.cc",
802        "src/google/protobuf/compiler/java/enum_field_lite.cc",
803        "src/google/protobuf/compiler/java/enum_lite.cc",
804        "src/google/protobuf/compiler/java/extension.cc",
805        "src/google/protobuf/compiler/java/extension_lite.cc",
806        "src/google/protobuf/compiler/java/field.cc",
807        "src/google/protobuf/compiler/java/file.cc",
808        "src/google/protobuf/compiler/java/generator.cc",
809        "src/google/protobuf/compiler/java/generator_factory.cc",
810        "src/google/protobuf/compiler/java/helpers.cc",
811        "src/google/protobuf/compiler/java/kotlin_generator.cc",
812        "src/google/protobuf/compiler/java/map_field.cc",
813        "src/google/protobuf/compiler/java/map_field_lite.cc",
814        "src/google/protobuf/compiler/java/message.cc",
815        "src/google/protobuf/compiler/java/message_builder.cc",
816        "src/google/protobuf/compiler/java/message_builder_lite.cc",
817        "src/google/protobuf/compiler/java/message_field.cc",
818        "src/google/protobuf/compiler/java/message_field_lite.cc",
819        "src/google/protobuf/compiler/java/message_lite.cc",
820        "src/google/protobuf/compiler/java/name_resolver.cc",
821        "src/google/protobuf/compiler/java/primitive_field.cc",
822        "src/google/protobuf/compiler/java/primitive_field_lite.cc",
823        "src/google/protobuf/compiler/java/service.cc",
824        "src/google/protobuf/compiler/java/shared_code_generator.cc",
825        "src/google/protobuf/compiler/java/string_field.cc",
826        "src/google/protobuf/compiler/java/string_field_lite.cc",
827    ],
828    shared_libs: [
829        "libz",
830    ],
831    host_supported: true,
832    host_cross_supported: false,
833    device_supported: false,
834    defaults: [
835        "stable_cronet_cc_defaults",
836    ],
837    cflags: [
838        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
839        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
840        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
841        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
842        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
843        "-DGOOGLE_PROTOBUF_NO_RTTI",
844        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
845        "-DHAVE_PTHREAD",
846        "-DNDEBUG",
847        "-DNO_UNWIND_TABLES",
848        "-DNVALGRIND",
849        "-DOFFICIAL_BUILD",
850        "-DTMP_REBUILD_HACK",
851        "-DUSE_AURA=1",
852        "-DUSE_OZONE=1",
853        "-DUSE_UDEV",
854        "-D_FILE_OFFSET_BITS=64",
855        "-D_GNU_SOURCE",
856        "-D_LARGEFILE64_SOURCE",
857        "-D_LARGEFILE_SOURCE",
858        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
859        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
860        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
861        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
862        "-O2",
863        "-fdata-sections",
864        "-ffunction-sections",
865        "-fno-asynchronous-unwind-tables",
866        "-fno-unwind-tables",
867        "-fstack-protector",
868        "-fvisibility-inlines-hidden",
869        "-fvisibility=hidden",
870        "-g1",
871        "-msse3",
872    ],
873    include_dirs: [
874        "external/cronet/stable/",
875        "external/cronet/stable/buildtools/third_party/libc++/",
876        "external/cronet/stable/third_party/libc++/src/include",
877        "external/cronet/stable/third_party/libc++abi/src/include",
878        "external/cronet/stable/third_party/protobuf/src/",
879    ],
880    cpp_std: "c++20",
881    ldflags: [
882        "-Wl,--as-needed",
883        "-Wl,--gc-sections",
884        "-Wl,--icf=all",
885    ],
886    visibility: [
887        "//external/cronet:__subpackages__",
888    ],
889}
890
891// GN: //third_party/protobuf:protoc_java__testing
892cc_library_static {
893    name: "stable_cronet_third_party_protobuf_protoc_java__testing",
894    srcs: [
895        "src/google/protobuf/compiler/java/context.cc",
896        "src/google/protobuf/compiler/java/doc_comment.cc",
897        "src/google/protobuf/compiler/java/enum.cc",
898        "src/google/protobuf/compiler/java/enum_field.cc",
899        "src/google/protobuf/compiler/java/enum_field_lite.cc",
900        "src/google/protobuf/compiler/java/enum_lite.cc",
901        "src/google/protobuf/compiler/java/extension.cc",
902        "src/google/protobuf/compiler/java/extension_lite.cc",
903        "src/google/protobuf/compiler/java/field.cc",
904        "src/google/protobuf/compiler/java/file.cc",
905        "src/google/protobuf/compiler/java/generator.cc",
906        "src/google/protobuf/compiler/java/generator_factory.cc",
907        "src/google/protobuf/compiler/java/helpers.cc",
908        "src/google/protobuf/compiler/java/kotlin_generator.cc",
909        "src/google/protobuf/compiler/java/map_field.cc",
910        "src/google/protobuf/compiler/java/map_field_lite.cc",
911        "src/google/protobuf/compiler/java/message.cc",
912        "src/google/protobuf/compiler/java/message_builder.cc",
913        "src/google/protobuf/compiler/java/message_builder_lite.cc",
914        "src/google/protobuf/compiler/java/message_field.cc",
915        "src/google/protobuf/compiler/java/message_field_lite.cc",
916        "src/google/protobuf/compiler/java/message_lite.cc",
917        "src/google/protobuf/compiler/java/name_resolver.cc",
918        "src/google/protobuf/compiler/java/primitive_field.cc",
919        "src/google/protobuf/compiler/java/primitive_field_lite.cc",
920        "src/google/protobuf/compiler/java/service.cc",
921        "src/google/protobuf/compiler/java/shared_code_generator.cc",
922        "src/google/protobuf/compiler/java/string_field.cc",
923        "src/google/protobuf/compiler/java/string_field_lite.cc",
924    ],
925    shared_libs: [
926        "libz",
927    ],
928    host_supported: true,
929    host_cross_supported: false,
930    device_supported: false,
931    defaults: [
932        "stable_cronet_cc_defaults",
933    ],
934    cflags: [
935        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
936        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
937        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
938        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
939        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
940        "-DGOOGLE_PROTOBUF_NO_RTTI",
941        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
942        "-DHAVE_PTHREAD",
943        "-DNDEBUG",
944        "-DNO_UNWIND_TABLES",
945        "-DNVALGRIND",
946        "-DOFFICIAL_BUILD",
947        "-DTMP_REBUILD_HACK",
948        "-DUSE_AURA=1",
949        "-DUSE_OZONE=1",
950        "-DUSE_UDEV",
951        "-D_FILE_OFFSET_BITS=64",
952        "-D_GNU_SOURCE",
953        "-D_LARGEFILE64_SOURCE",
954        "-D_LARGEFILE_SOURCE",
955        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
956        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
957        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
958        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
959        "-O2",
960        "-fdata-sections",
961        "-ffunction-sections",
962        "-fno-asynchronous-unwind-tables",
963        "-fno-unwind-tables",
964        "-fstack-protector",
965        "-fvisibility-inlines-hidden",
966        "-fvisibility=hidden",
967        "-g1",
968        "-msse3",
969    ],
970    include_dirs: [
971        "external/cronet/stable/",
972        "external/cronet/stable/buildtools/third_party/libc++/",
973        "external/cronet/stable/third_party/libc++/src/include",
974        "external/cronet/stable/third_party/libc++abi/src/include",
975        "external/cronet/stable/third_party/protobuf/src/",
976    ],
977    cpp_std: "c++20",
978    ldflags: [
979        "-Wl,--as-needed",
980        "-Wl,--gc-sections",
981        "-Wl,--icf=all",
982    ],
983    visibility: [
984        "//external/cronet:__subpackages__",
985    ],
986}
987
988// GN: //third_party/protobuf:protoc_lib
989cc_library_static {
990    name: "stable_cronet_third_party_protobuf_protoc_lib",
991    srcs: [
992        "src/google/protobuf/compiler/code_generator.cc",
993        "src/google/protobuf/compiler/command_line_interface.cc",
994        "src/google/protobuf/compiler/cpp/enum.cc",
995        "src/google/protobuf/compiler/cpp/enum_field.cc",
996        "src/google/protobuf/compiler/cpp/extension.cc",
997        "src/google/protobuf/compiler/cpp/field.cc",
998        "src/google/protobuf/compiler/cpp/file.cc",
999        "src/google/protobuf/compiler/cpp/generator.cc",
1000        "src/google/protobuf/compiler/cpp/helpers.cc",
1001        "src/google/protobuf/compiler/cpp/map_field.cc",
1002        "src/google/protobuf/compiler/cpp/message.cc",
1003        "src/google/protobuf/compiler/cpp/message_field.cc",
1004        "src/google/protobuf/compiler/cpp/padding_optimizer.cc",
1005        "src/google/protobuf/compiler/cpp/parse_function_generator.cc",
1006        "src/google/protobuf/compiler/cpp/primitive_field.cc",
1007        "src/google/protobuf/compiler/cpp/service.cc",
1008        "src/google/protobuf/compiler/cpp/string_field.cc",
1009        "src/google/protobuf/compiler/csharp/csharp_doc_comment.cc",
1010        "src/google/protobuf/compiler/csharp/csharp_enum.cc",
1011        "src/google/protobuf/compiler/csharp/csharp_enum_field.cc",
1012        "src/google/protobuf/compiler/csharp/csharp_field_base.cc",
1013        "src/google/protobuf/compiler/csharp/csharp_generator.cc",
1014        "src/google/protobuf/compiler/csharp/csharp_helpers.cc",
1015        "src/google/protobuf/compiler/csharp/csharp_map_field.cc",
1016        "src/google/protobuf/compiler/csharp/csharp_message.cc",
1017        "src/google/protobuf/compiler/csharp/csharp_message_field.cc",
1018        "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc",
1019        "src/google/protobuf/compiler/csharp/csharp_reflection_class.cc",
1020        "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc",
1021        "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc",
1022        "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc",
1023        "src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc",
1024        "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc",
1025        "src/google/protobuf/compiler/objectivec/objectivec_enum.cc",
1026        "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc",
1027        "src/google/protobuf/compiler/objectivec/objectivec_extension.cc",
1028        "src/google/protobuf/compiler/objectivec/objectivec_field.cc",
1029        "src/google/protobuf/compiler/objectivec/objectivec_file.cc",
1030        "src/google/protobuf/compiler/objectivec/objectivec_generator.cc",
1031        "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc",
1032        "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc",
1033        "src/google/protobuf/compiler/objectivec/objectivec_message.cc",
1034        "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc",
1035        "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc",
1036        "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc",
1037        "src/google/protobuf/compiler/php/php_generator.cc",
1038        "src/google/protobuf/compiler/plugin.cc",
1039        "src/google/protobuf/compiler/plugin.pb.cc",
1040        "src/google/protobuf/compiler/ruby/ruby_generator.cc",
1041        "src/google/protobuf/compiler/subprocess.cc",
1042        "src/google/protobuf/compiler/zip_writer.cc",
1043    ],
1044    shared_libs: [
1045        "libz",
1046    ],
1047    host_supported: true,
1048    host_cross_supported: false,
1049    device_supported: false,
1050    defaults: [
1051        "stable_cronet_cc_defaults",
1052    ],
1053    cflags: [
1054        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
1055        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
1056        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
1057        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
1058        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
1059        "-DGOOGLE_PROTOBUF_NO_RTTI",
1060        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
1061        "-DHAVE_PTHREAD",
1062        "-DNDEBUG",
1063        "-DNO_UNWIND_TABLES",
1064        "-DNVALGRIND",
1065        "-DOFFICIAL_BUILD",
1066        "-DTMP_REBUILD_HACK",
1067        "-DUSE_AURA=1",
1068        "-DUSE_OZONE=1",
1069        "-DUSE_UDEV",
1070        "-D_FILE_OFFSET_BITS=64",
1071        "-D_GNU_SOURCE",
1072        "-D_LARGEFILE64_SOURCE",
1073        "-D_LARGEFILE_SOURCE",
1074        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
1075        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
1076        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
1077        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
1078        "-O2",
1079        "-fdata-sections",
1080        "-ffunction-sections",
1081        "-fno-asynchronous-unwind-tables",
1082        "-fno-unwind-tables",
1083        "-fstack-protector",
1084        "-fvisibility-inlines-hidden",
1085        "-fvisibility=hidden",
1086        "-g1",
1087        "-msse3",
1088    ],
1089    include_dirs: [
1090        "external/cronet/stable/",
1091        "external/cronet/stable/buildtools/third_party/libc++/",
1092        "external/cronet/stable/third_party/libc++/src/include",
1093        "external/cronet/stable/third_party/libc++abi/src/include",
1094        "external/cronet/stable/third_party/protobuf/src/",
1095    ],
1096    cpp_std: "c++20",
1097    ldflags: [
1098        "-Wl,--as-needed",
1099        "-Wl,--gc-sections",
1100        "-Wl,--icf=all",
1101    ],
1102    visibility: [
1103        "//external/cronet:__subpackages__",
1104    ],
1105}
1106
1107// GN: //third_party/protobuf:protoc_lib__testing
1108cc_library_static {
1109    name: "stable_cronet_third_party_protobuf_protoc_lib__testing",
1110    srcs: [
1111        "src/google/protobuf/compiler/code_generator.cc",
1112        "src/google/protobuf/compiler/command_line_interface.cc",
1113        "src/google/protobuf/compiler/cpp/enum.cc",
1114        "src/google/protobuf/compiler/cpp/enum_field.cc",
1115        "src/google/protobuf/compiler/cpp/extension.cc",
1116        "src/google/protobuf/compiler/cpp/field.cc",
1117        "src/google/protobuf/compiler/cpp/file.cc",
1118        "src/google/protobuf/compiler/cpp/generator.cc",
1119        "src/google/protobuf/compiler/cpp/helpers.cc",
1120        "src/google/protobuf/compiler/cpp/map_field.cc",
1121        "src/google/protobuf/compiler/cpp/message.cc",
1122        "src/google/protobuf/compiler/cpp/message_field.cc",
1123        "src/google/protobuf/compiler/cpp/padding_optimizer.cc",
1124        "src/google/protobuf/compiler/cpp/parse_function_generator.cc",
1125        "src/google/protobuf/compiler/cpp/primitive_field.cc",
1126        "src/google/protobuf/compiler/cpp/service.cc",
1127        "src/google/protobuf/compiler/cpp/string_field.cc",
1128        "src/google/protobuf/compiler/csharp/csharp_doc_comment.cc",
1129        "src/google/protobuf/compiler/csharp/csharp_enum.cc",
1130        "src/google/protobuf/compiler/csharp/csharp_enum_field.cc",
1131        "src/google/protobuf/compiler/csharp/csharp_field_base.cc",
1132        "src/google/protobuf/compiler/csharp/csharp_generator.cc",
1133        "src/google/protobuf/compiler/csharp/csharp_helpers.cc",
1134        "src/google/protobuf/compiler/csharp/csharp_map_field.cc",
1135        "src/google/protobuf/compiler/csharp/csharp_message.cc",
1136        "src/google/protobuf/compiler/csharp/csharp_message_field.cc",
1137        "src/google/protobuf/compiler/csharp/csharp_primitive_field.cc",
1138        "src/google/protobuf/compiler/csharp/csharp_reflection_class.cc",
1139        "src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc",
1140        "src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc",
1141        "src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc",
1142        "src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc",
1143        "src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc",
1144        "src/google/protobuf/compiler/objectivec/objectivec_enum.cc",
1145        "src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc",
1146        "src/google/protobuf/compiler/objectivec/objectivec_extension.cc",
1147        "src/google/protobuf/compiler/objectivec/objectivec_field.cc",
1148        "src/google/protobuf/compiler/objectivec/objectivec_file.cc",
1149        "src/google/protobuf/compiler/objectivec/objectivec_generator.cc",
1150        "src/google/protobuf/compiler/objectivec/objectivec_helpers.cc",
1151        "src/google/protobuf/compiler/objectivec/objectivec_map_field.cc",
1152        "src/google/protobuf/compiler/objectivec/objectivec_message.cc",
1153        "src/google/protobuf/compiler/objectivec/objectivec_message_field.cc",
1154        "src/google/protobuf/compiler/objectivec/objectivec_oneof.cc",
1155        "src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc",
1156        "src/google/protobuf/compiler/php/php_generator.cc",
1157        "src/google/protobuf/compiler/plugin.cc",
1158        "src/google/protobuf/compiler/plugin.pb.cc",
1159        "src/google/protobuf/compiler/ruby/ruby_generator.cc",
1160        "src/google/protobuf/compiler/subprocess.cc",
1161        "src/google/protobuf/compiler/zip_writer.cc",
1162    ],
1163    shared_libs: [
1164        "libz",
1165    ],
1166    host_supported: true,
1167    host_cross_supported: false,
1168    device_supported: false,
1169    defaults: [
1170        "stable_cronet_cc_defaults",
1171    ],
1172    cflags: [
1173        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
1174        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
1175        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
1176        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
1177        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
1178        "-DGOOGLE_PROTOBUF_NO_RTTI",
1179        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
1180        "-DHAVE_PTHREAD",
1181        "-DNDEBUG",
1182        "-DNO_UNWIND_TABLES",
1183        "-DNVALGRIND",
1184        "-DOFFICIAL_BUILD",
1185        "-DTMP_REBUILD_HACK",
1186        "-DUSE_AURA=1",
1187        "-DUSE_OZONE=1",
1188        "-DUSE_UDEV",
1189        "-D_FILE_OFFSET_BITS=64",
1190        "-D_GNU_SOURCE",
1191        "-D_LARGEFILE64_SOURCE",
1192        "-D_LARGEFILE_SOURCE",
1193        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
1194        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
1195        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
1196        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
1197        "-O2",
1198        "-fdata-sections",
1199        "-ffunction-sections",
1200        "-fno-asynchronous-unwind-tables",
1201        "-fno-unwind-tables",
1202        "-fstack-protector",
1203        "-fvisibility-inlines-hidden",
1204        "-fvisibility=hidden",
1205        "-g1",
1206        "-msse3",
1207    ],
1208    include_dirs: [
1209        "external/cronet/stable/",
1210        "external/cronet/stable/buildtools/third_party/libc++/",
1211        "external/cronet/stable/third_party/libc++/src/include",
1212        "external/cronet/stable/third_party/libc++abi/src/include",
1213        "external/cronet/stable/third_party/protobuf/src/",
1214    ],
1215    cpp_std: "c++20",
1216    ldflags: [
1217        "-Wl,--as-needed",
1218        "-Wl,--gc-sections",
1219        "-Wl,--icf=all",
1220    ],
1221    visibility: [
1222        "//external/cronet:__subpackages__",
1223    ],
1224}
1225
1226// GN: //third_party/protobuf:protoc_python
1227cc_library_static {
1228    name: "stable_cronet_third_party_protobuf_protoc_python",
1229    srcs: [
1230        "src/google/protobuf/compiler/python/generator.cc",
1231        "src/google/protobuf/compiler/python/helpers.cc",
1232        "src/google/protobuf/compiler/python/pyi_generator.cc",
1233    ],
1234    shared_libs: [
1235        "libz",
1236    ],
1237    host_supported: true,
1238    host_cross_supported: false,
1239    device_supported: false,
1240    defaults: [
1241        "stable_cronet_cc_defaults",
1242    ],
1243    cflags: [
1244        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
1245        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
1246        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
1247        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
1248        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
1249        "-DGOOGLE_PROTOBUF_NO_RTTI",
1250        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
1251        "-DHAVE_PTHREAD",
1252        "-DNDEBUG",
1253        "-DNO_UNWIND_TABLES",
1254        "-DNVALGRIND",
1255        "-DOFFICIAL_BUILD",
1256        "-DTMP_REBUILD_HACK",
1257        "-DUSE_AURA=1",
1258        "-DUSE_OZONE=1",
1259        "-DUSE_UDEV",
1260        "-D_FILE_OFFSET_BITS=64",
1261        "-D_GNU_SOURCE",
1262        "-D_LARGEFILE64_SOURCE",
1263        "-D_LARGEFILE_SOURCE",
1264        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
1265        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
1266        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
1267        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
1268        "-O2",
1269        "-fdata-sections",
1270        "-ffunction-sections",
1271        "-fno-asynchronous-unwind-tables",
1272        "-fno-unwind-tables",
1273        "-fstack-protector",
1274        "-fvisibility-inlines-hidden",
1275        "-fvisibility=hidden",
1276        "-g1",
1277        "-msse3",
1278    ],
1279    include_dirs: [
1280        "external/cronet/stable/",
1281        "external/cronet/stable/buildtools/third_party/libc++/",
1282        "external/cronet/stable/third_party/libc++/src/include",
1283        "external/cronet/stable/third_party/libc++abi/src/include",
1284        "external/cronet/stable/third_party/protobuf/src/",
1285    ],
1286    cpp_std: "c++20",
1287    ldflags: [
1288        "-Wl,--as-needed",
1289        "-Wl,--gc-sections",
1290        "-Wl,--icf=all",
1291    ],
1292    visibility: [
1293        "//external/cronet:__subpackages__",
1294    ],
1295}
1296
1297// GN: //third_party/protobuf:protoc_python__testing
1298cc_library_static {
1299    name: "stable_cronet_third_party_protobuf_protoc_python__testing",
1300    srcs: [
1301        "src/google/protobuf/compiler/python/generator.cc",
1302        "src/google/protobuf/compiler/python/helpers.cc",
1303        "src/google/protobuf/compiler/python/pyi_generator.cc",
1304    ],
1305    shared_libs: [
1306        "libz",
1307    ],
1308    host_supported: true,
1309    host_cross_supported: false,
1310    device_supported: false,
1311    defaults: [
1312        "stable_cronet_cc_defaults",
1313    ],
1314    cflags: [
1315        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
1316        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
1317        "-DCR_SYSROOT_KEY=20230611T210420Z-2",
1318        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
1319        "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0",
1320        "-DGOOGLE_PROTOBUF_NO_RTTI",
1321        "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
1322        "-DHAVE_PTHREAD",
1323        "-DNDEBUG",
1324        "-DNO_UNWIND_TABLES",
1325        "-DNVALGRIND",
1326        "-DOFFICIAL_BUILD",
1327        "-DTMP_REBUILD_HACK",
1328        "-DUSE_AURA=1",
1329        "-DUSE_OZONE=1",
1330        "-DUSE_UDEV",
1331        "-D_FILE_OFFSET_BITS=64",
1332        "-D_GNU_SOURCE",
1333        "-D_LARGEFILE64_SOURCE",
1334        "-D_LARGEFILE_SOURCE",
1335        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
1336        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
1337        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
1338        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
1339        "-O2",
1340        "-fdata-sections",
1341        "-ffunction-sections",
1342        "-fno-asynchronous-unwind-tables",
1343        "-fno-unwind-tables",
1344        "-fstack-protector",
1345        "-fvisibility-inlines-hidden",
1346        "-fvisibility=hidden",
1347        "-g1",
1348        "-msse3",
1349    ],
1350    include_dirs: [
1351        "external/cronet/stable/",
1352        "external/cronet/stable/buildtools/third_party/libc++/",
1353        "external/cronet/stable/third_party/libc++/src/include",
1354        "external/cronet/stable/third_party/libc++abi/src/include",
1355        "external/cronet/stable/third_party/protobuf/src/",
1356    ],
1357    cpp_std: "c++20",
1358    ldflags: [
1359        "-Wl,--as-needed",
1360        "-Wl,--gc-sections",
1361        "-Wl,--icf=all",
1362    ],
1363    visibility: [
1364        "//external/cronet:__subpackages__",
1365    ],
1366}
1367