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_quic_trace_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_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: "stable_cronet_third_party_quic_trace_quic_trace_proto__testing", 41 srcs: [ 42 ":stable_cronet_third_party_quic_trace_quic_trace_proto_gen__testing", 43 ], 44 shared_libs: [ 45 "liblog", 46 "libprotobuf-cpp-lite", 47 ], 48 host_cross_supported: false, 49 generated_headers: [ 50 "stable_cronet_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 51 ], 52 export_generated_headers: [ 53 "stable_cronet_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 54 ], 55 defaults: [ 56 "stable_cronet_cc_defaults", 57 ], 58 cflags: [ 59 "-DANDROID", 60 "-DANDROID_NDK_VERSION_ROLL=r27_1", 61 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 62 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 63 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 64 "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0", 65 "-DGOOGLE_PROTOBUF_NO_RTTI", 66 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", 67 "-DHAVE_PTHREAD", 68 "-DHAVE_SYS_UIO_H", 69 "-DNDEBUG", 70 "-DNVALGRIND", 71 "-DOFFICIAL_BUILD", 72 "-DTMP_REBUILD_HACK", 73 "-D_GNU_SOURCE", 74 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 75 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 76 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 77 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 78 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 79 "-D__STDC_CONSTANT_MACROS", 80 "-D__STDC_FORMAT_MACROS", 81 "-fdata-sections", 82 "-ffunction-sections", 83 "-fstack-protector", 84 "-fvisibility-inlines-hidden", 85 "-fvisibility=hidden", 86 "-g1", 87 ], 88 include_dirs: [ 89 "external/cronet/stable/", 90 "external/cronet/stable/buildtools/third_party/libc++/", 91 "external/cronet/stable/third_party/libc++/src/include", 92 "external/cronet/stable/third_party/libc++abi/src/include", 93 "external/cronet/stable/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 "-D__ARM_NEON__=1", 114 "-O2", 115 "-mno-outline", 116 ], 117 }, 118 android_x86: { 119 cflags: [ 120 "-D_FORTIFY_SOURCE=2", 121 "-msse3", 122 ], 123 }, 124 android_x86_64: { 125 cflags: [ 126 "-D_FORTIFY_SOURCE=2", 127 "-O2", 128 "-msse3", 129 ], 130 }, 131 }, 132} 133 134// GN: //third_party/quic_trace:quic_trace_proto_gen__testing 135cc_genrule { 136 name: "stable_cronet_third_party_quic_trace_quic_trace_proto_gen__testing", 137 srcs: [ 138 "src/quic_trace/quic_trace.proto", 139 ], 140 tools: [ 141 "stable_cronet_third_party_protobuf_protoc", 142 ], 143 cmd: "$(location stable_cronet_third_party_protobuf_protoc) --proto_path=external/cronet/stable/third_party/quic_trace/src/quic_trace --cpp_out=lite=true:$(genDir)/third_party/quic_trace/src/quic_trace/ $(in)", 144 host_cross_supported: false, 145 out: [ 146 "third_party/quic_trace/src/quic_trace/quic_trace.pb.cc", 147 ], 148 apex_available: [ 149 "com.android.tethering", 150 ], 151 visibility: [ 152 "//external/cronet:__subpackages__", 153 ], 154} 155 156// GN: //third_party/quic_trace:quic_trace_proto_gen__testing 157cc_genrule { 158 name: "stable_cronet_third_party_quic_trace_quic_trace_proto_gen__testing_headers", 159 srcs: [ 160 "src/quic_trace/quic_trace.proto", 161 ], 162 tools: [ 163 "stable_cronet_third_party_protobuf_protoc", 164 ], 165 cmd: "$(location stable_cronet_third_party_protobuf_protoc) --proto_path=external/cronet/stable/third_party/quic_trace/src/quic_trace --cpp_out=lite=true:$(genDir)/third_party/quic_trace/src/quic_trace/ $(in)", 166 out: [ 167 "third_party/quic_trace/src/quic_trace/quic_trace.pb.h", 168 ], 169 export_include_dirs: [ 170 ".", 171 "protos", 172 "third_party/quic_trace/src", 173 "third_party/quic_trace/src/quic_trace", 174 ], 175 apex_available: [ 176 "com.android.tethering", 177 ], 178} 179