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 gn2bp/gen_android_bp.py. Do not edit. 16 17// GN: Package-Artificial 18package { 19 default_applicable_licenses: [ 20 "external_cronet_third_party_quic_trace_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "external_cronet_third_party_quic_trace_license", 27 visibility: [ 28 ":__subpackages__", 29 ], 30 license_text: [ 31 "LICENSE", 32 ], 33 license_kinds: [ 34 "SPDX-license-identifier-Apache-2.0", 35 ], 36} 37 38// GN: //third_party/quic_trace:quic_trace_proto__testing 39cc_library_static { 40 name: "cronet_aml_third_party_quic_trace_quic_trace_proto__testing", 41 srcs: [ 42 ":cronet_aml_third_party_quic_trace_quic_trace_proto_gen__testing", 43 ], 44 shared_libs: [ 45 "liblog", 46 "libprotobuf-cpp-lite", 47 ], 48 generated_headers: [ 49 "cronet_aml_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 50 ], 51 export_generated_headers: [ 52 "cronet_aml_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 53 ], 54 defaults: [ 55 "cronet_aml_cc_defaults", 56 ], 57 cflags: [ 58 "-DANDROID", 59 "-DANDROID_NDK_VERSION_ROLL=r26b_1", 60 "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"", 61 "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b", 62 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 63 "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0", 64 "-DGOOGLE_PROTOBUF_NO_RTTI", 65 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", 66 "-DHAVE_PTHREAD", 67 "-DHAVE_SYS_UIO_H", 68 "-DNDEBUG", 69 "-DNO_UNWIND_TABLES", 70 "-DNVALGRIND", 71 "-DOFFICIAL_BUILD", 72 "-D_GNU_SOURCE", 73 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 74 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 75 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 76 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 77 "-D__STDC_CONSTANT_MACROS", 78 "-D__STDC_FORMAT_MACROS", 79 "-fdata-sections", 80 "-ffunction-sections", 81 "-fno-asynchronous-unwind-tables", 82 "-fno-unwind-tables", 83 "-fstack-protector", 84 "-fvisibility-inlines-hidden", 85 "-fvisibility=hidden", 86 "-g1", 87 ], 88 include_dirs: [ 89 "external/cronet/", 90 "external/cronet/buildtools/third_party/libc++/", 91 "external/cronet/third_party/libc++/src/include", 92 "external/cronet/third_party/libc++abi/src/include", 93 "external/cronet/third_party/protobuf/src/", 94 ], 95 cpp_std: "c++20", 96 ldflags: [ 97 "-Wl,--as-needed", 98 "-Wl,--gc-sections", 99 "-Wl,--icf=all", 100 ], 101 visibility: [ 102 "//external/cronet:__subpackages__", 103 ], 104 target: { 105 android_arm: { 106 cflags: [ 107 "-D_FORTIFY_SOURCE=2", 108 ], 109 }, 110 android_arm64: { 111 cflags: [ 112 "-D_FORTIFY_SOURCE=2", 113 "-O2", 114 "-mno-outline", 115 ], 116 }, 117 android_x86: { 118 cflags: [ 119 "-D_FORTIFY_SOURCE=2", 120 "-msse3", 121 ], 122 }, 123 android_x86_64: { 124 cflags: [ 125 "-D_FORTIFY_SOURCE=2", 126 "-msse3", 127 ], 128 }, 129 }, 130} 131 132// GN: //third_party/quic_trace:quic_trace_proto_gen__testing 133cc_genrule { 134 name: "cronet_aml_third_party_quic_trace_quic_trace_proto_gen__testing", 135 srcs: [ 136 "src/quic_trace/quic_trace.proto", 137 ], 138 tools: [ 139 "cronet_aml_third_party_protobuf_protoc", 140 ], 141 cmd: "$(location cronet_aml_third_party_protobuf_protoc) --proto_path=external/cronet/third_party/quic_trace/src/quic_trace --cpp_out=lite=true:$(genDir)/third_party/quic_trace/src/quic_trace/ $(in)", 142 out: [ 143 "third_party/quic_trace/src/quic_trace/quic_trace.pb.cc", 144 ], 145 apex_available: [ 146 "com.android.tethering", 147 ], 148 visibility: [ 149 "//external/cronet:__subpackages__", 150 ], 151} 152 153// GN: //third_party/quic_trace:quic_trace_proto_gen__testing 154cc_genrule { 155 name: "cronet_aml_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 156 srcs: [ 157 "src/quic_trace/quic_trace.proto", 158 ], 159 tools: [ 160 "cronet_aml_third_party_protobuf_protoc", 161 ], 162 cmd: "$(location cronet_aml_third_party_protobuf_protoc) --proto_path=external/cronet/third_party/quic_trace/src/quic_trace --cpp_out=lite=true:$(genDir)/third_party/quic_trace/src/quic_trace/ $(in)", 163 out: [ 164 "third_party/quic_trace/src/quic_trace/quic_trace.pb.h", 165 ], 166 export_include_dirs: [ 167 ".", 168 "protos", 169 "third_party/quic_trace/src", 170 "third_party/quic_trace/src/quic_trace", 171 ], 172 apex_available: [ 173 "com.android.tethering", 174 ], 175} 176