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_cpu_features_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_cronet_third_party_cpu_features_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/cpu_features:cpuinfo 39cc_library_static { 40 name: "stable_cronet_third_party_cpu_features_cpuinfo", 41 srcs: [ 42 "src/src/filesystem.c", 43 "src/src/hwcaps.c", 44 "src/src/stack_line_reader.c", 45 "src/src/string_view.c", 46 ], 47 host_cross_supported: false, 48 defaults: [ 49 "stable_cronet_cc_defaults", 50 ], 51 cflags: [ 52 "-DANDROID", 53 "-DANDROID_NDK_VERSION_ROLL=r27_1", 54 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 55 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 56 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 57 "-DHAVE_STRONG_GETAUXVAL", 58 "-DHAVE_SYS_UIO_H", 59 "-DNDEBUG", 60 "-DNVALGRIND", 61 "-DOFFICIAL_BUILD", 62 "-DSTACK_LINE_READER_BUFFER_SIZE=1024", 63 "-DTMP_REBUILD_HACK", 64 "-D_GNU_SOURCE", 65 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 66 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 67 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 68 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 69 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 70 "-D__STDC_CONSTANT_MACROS", 71 "-D__STDC_FORMAT_MACROS", 72 "-fdata-sections", 73 "-ffunction-sections", 74 "-fstack-protector", 75 "-fvisibility-inlines-hidden", 76 "-fvisibility=hidden", 77 "-g1", 78 ], 79 include_dirs: [ 80 "external/cronet/stable/", 81 "external/cronet/stable/buildtools/third_party/libc++/", 82 "external/cronet/stable/third_party/cpu_features/src/include/", 83 "external/cronet/stable/third_party/libc++/src/include", 84 "external/cronet/stable/third_party/libc++abi/src/include", 85 ], 86 cpp_std: "c++20", 87 ldflags: [ 88 "-Wl,--as-needed", 89 "-Wl,--gc-sections", 90 "-Wl,--icf=all", 91 ], 92 visibility: [ 93 "//external/cronet:__subpackages__", 94 ], 95 target: { 96 android_arm: { 97 srcs: [ 98 "src/src/impl_arm_linux_or_android.c", 99 ], 100 cflags: [ 101 "-D_FORTIFY_SOURCE=2", 102 ], 103 }, 104 android_arm64: { 105 srcs: [ 106 "src/src/impl_aarch64_linux_or_android.c", 107 ], 108 cflags: [ 109 "-D_FORTIFY_SOURCE=2", 110 "-D__ARM_NEON__=1", 111 "-O2", 112 "-mno-outline", 113 ], 114 }, 115 android_riscv64: { 116 srcs: [ 117 "src/src/impl_riscv_linux.c", 118 ], 119 }, 120 android_x86: { 121 srcs: [ 122 "src/src/impl_x86_freebsd.c", 123 "src/src/impl_x86_linux_or_android.c", 124 "src/src/impl_x86_macos.c", 125 "src/src/impl_x86_windows.c", 126 ], 127 cflags: [ 128 "-D_FORTIFY_SOURCE=2", 129 "-msse3", 130 ], 131 }, 132 android_x86_64: { 133 srcs: [ 134 "src/src/impl_x86_freebsd.c", 135 "src/src/impl_x86_linux_or_android.c", 136 "src/src/impl_x86_macos.c", 137 "src/src/impl_x86_windows.c", 138 ], 139 cflags: [ 140 "-D_FORTIFY_SOURCE=2", 141 "-O2", 142 "-msse3", 143 ], 144 }, 145 }, 146} 147 148// GN: //third_party/cpu_features:cpuinfo__testing 149cc_library_static { 150 name: "stable_cronet_third_party_cpu_features_cpuinfo__testing", 151 srcs: [ 152 "src/src/filesystem.c", 153 "src/src/hwcaps.c", 154 "src/src/stack_line_reader.c", 155 "src/src/string_view.c", 156 ], 157 host_cross_supported: false, 158 defaults: [ 159 "stable_cronet_cc_defaults", 160 ], 161 cflags: [ 162 "-DANDROID", 163 "-DANDROID_NDK_VERSION_ROLL=r27_1", 164 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 165 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 166 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 167 "-DHAVE_STRONG_GETAUXVAL", 168 "-DHAVE_SYS_UIO_H", 169 "-DNDEBUG", 170 "-DNVALGRIND", 171 "-DOFFICIAL_BUILD", 172 "-DSTACK_LINE_READER_BUFFER_SIZE=1024", 173 "-DTMP_REBUILD_HACK", 174 "-D_GNU_SOURCE", 175 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 176 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 177 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 178 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 179 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 180 "-D__STDC_CONSTANT_MACROS", 181 "-D__STDC_FORMAT_MACROS", 182 "-fdata-sections", 183 "-ffunction-sections", 184 "-fstack-protector", 185 "-fvisibility-inlines-hidden", 186 "-fvisibility=hidden", 187 "-g1", 188 ], 189 include_dirs: [ 190 "external/cronet/stable/", 191 "external/cronet/stable/buildtools/third_party/libc++/", 192 "external/cronet/stable/third_party/cpu_features/src/include/", 193 "external/cronet/stable/third_party/libc++/src/include", 194 "external/cronet/stable/third_party/libc++abi/src/include", 195 ], 196 cpp_std: "c++20", 197 ldflags: [ 198 "-Wl,--as-needed", 199 "-Wl,--gc-sections", 200 "-Wl,--icf=all", 201 ], 202 visibility: [ 203 "//external/cronet:__subpackages__", 204 ], 205 target: { 206 android_arm: { 207 srcs: [ 208 "src/src/impl_arm_linux_or_android.c", 209 ], 210 cflags: [ 211 "-D_FORTIFY_SOURCE=2", 212 ], 213 }, 214 android_arm64: { 215 srcs: [ 216 "src/src/impl_aarch64_linux_or_android.c", 217 ], 218 cflags: [ 219 "-D_FORTIFY_SOURCE=2", 220 "-D__ARM_NEON__=1", 221 "-O2", 222 "-mno-outline", 223 ], 224 }, 225 android_riscv64: { 226 srcs: [ 227 "src/src/impl_riscv_linux.c", 228 ], 229 }, 230 android_x86: { 231 srcs: [ 232 "src/src/impl_x86_freebsd.c", 233 "src/src/impl_x86_linux_or_android.c", 234 "src/src/impl_x86_macos.c", 235 "src/src/impl_x86_windows.c", 236 ], 237 cflags: [ 238 "-D_FORTIFY_SOURCE=2", 239 "-msse3", 240 ], 241 }, 242 android_x86_64: { 243 srcs: [ 244 "src/src/impl_x86_freebsd.c", 245 "src/src/impl_x86_linux_or_android.c", 246 "src/src/impl_x86_macos.c", 247 "src/src/impl_x86_windows.c", 248 ], 249 cflags: [ 250 "-D_FORTIFY_SOURCE=2", 251 "-O2", 252 "-msse3", 253 ], 254 }, 255 }, 256} 257 258// GN: //third_party/cpu_features:ndk_compat 259cc_library_static { 260 name: "stable_cronet_third_party_cpu_features_ndk_compat", 261 srcs: [ 262 "src/ndk_compat/cpu-features.c", 263 ], 264 host_cross_supported: false, 265 defaults: [ 266 "stable_cronet_cc_defaults", 267 ], 268 cflags: [ 269 "-DANDROID", 270 "-DANDROID_NDK_VERSION_ROLL=r27_1", 271 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 272 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 273 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 274 "-DHAVE_STRONG_GETAUXVAL", 275 "-DHAVE_SYS_UIO_H", 276 "-DNDEBUG", 277 "-DNVALGRIND", 278 "-DOFFICIAL_BUILD", 279 "-DSTACK_LINE_READER_BUFFER_SIZE=1024", 280 "-DTMP_REBUILD_HACK", 281 "-D_GNU_SOURCE", 282 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 283 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 284 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 285 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 286 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 287 "-D__STDC_CONSTANT_MACROS", 288 "-D__STDC_FORMAT_MACROS", 289 "-fdata-sections", 290 "-ffunction-sections", 291 "-fstack-protector", 292 "-fvisibility-inlines-hidden", 293 "-fvisibility=hidden", 294 "-g1", 295 ], 296 include_dirs: [ 297 "external/cronet/stable/", 298 "external/cronet/stable/buildtools/third_party/libc++/", 299 "external/cronet/stable/third_party/cpu_features/src/include/", 300 "external/cronet/stable/third_party/cpu_features/src/ndk_compat/", 301 "external/cronet/stable/third_party/libc++/src/include", 302 "external/cronet/stable/third_party/libc++abi/src/include", 303 ], 304 cpp_std: "c++20", 305 ldflags: [ 306 "-Wl,--as-needed", 307 "-Wl,--gc-sections", 308 "-Wl,--icf=all", 309 ], 310 visibility: [ 311 "//external/cronet:__subpackages__", 312 ], 313 target: { 314 android_arm: { 315 cflags: [ 316 "-D_FORTIFY_SOURCE=2", 317 ], 318 }, 319 android_arm64: { 320 cflags: [ 321 "-D_FORTIFY_SOURCE=2", 322 "-D__ARM_NEON__=1", 323 "-O2", 324 "-mno-outline", 325 ], 326 }, 327 android_x86: { 328 cflags: [ 329 "-D_FORTIFY_SOURCE=2", 330 "-msse3", 331 ], 332 }, 333 android_x86_64: { 334 cflags: [ 335 "-D_FORTIFY_SOURCE=2", 336 "-O2", 337 "-msse3", 338 ], 339 }, 340 }, 341} 342 343// GN: //third_party/cpu_features:ndk_compat__testing 344cc_library_static { 345 name: "stable_cronet_third_party_cpu_features_ndk_compat__testing", 346 srcs: [ 347 "src/ndk_compat/cpu-features.c", 348 ], 349 host_cross_supported: false, 350 defaults: [ 351 "stable_cronet_cc_defaults", 352 ], 353 cflags: [ 354 "-DANDROID", 355 "-DANDROID_NDK_VERSION_ROLL=r27_1", 356 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 357 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 358 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 359 "-DHAVE_STRONG_GETAUXVAL", 360 "-DHAVE_SYS_UIO_H", 361 "-DNDEBUG", 362 "-DNVALGRIND", 363 "-DOFFICIAL_BUILD", 364 "-DSTACK_LINE_READER_BUFFER_SIZE=1024", 365 "-DTMP_REBUILD_HACK", 366 "-D_GNU_SOURCE", 367 "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS", 368 "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE", 369 "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0", 370 "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS", 371 "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__", 372 "-D__STDC_CONSTANT_MACROS", 373 "-D__STDC_FORMAT_MACROS", 374 "-fdata-sections", 375 "-ffunction-sections", 376 "-fstack-protector", 377 "-fvisibility-inlines-hidden", 378 "-fvisibility=hidden", 379 "-g1", 380 ], 381 include_dirs: [ 382 "external/cronet/stable/", 383 "external/cronet/stable/buildtools/third_party/libc++/", 384 "external/cronet/stable/third_party/cpu_features/src/include/", 385 "external/cronet/stable/third_party/cpu_features/src/ndk_compat/", 386 "external/cronet/stable/third_party/libc++/src/include", 387 "external/cronet/stable/third_party/libc++abi/src/include", 388 ], 389 cpp_std: "c++20", 390 ldflags: [ 391 "-Wl,--as-needed", 392 "-Wl,--gc-sections", 393 "-Wl,--icf=all", 394 ], 395 visibility: [ 396 "//external/cronet:__subpackages__", 397 ], 398 target: { 399 android_arm: { 400 cflags: [ 401 "-D_FORTIFY_SOURCE=2", 402 ], 403 }, 404 android_arm64: { 405 cflags: [ 406 "-D_FORTIFY_SOURCE=2", 407 "-D__ARM_NEON__=1", 408 "-O2", 409 "-mno-outline", 410 ], 411 }, 412 android_x86: { 413 cflags: [ 414 "-D_FORTIFY_SOURCE=2", 415 "-msse3", 416 ], 417 }, 418 android_x86_64: { 419 cflags: [ 420 "-D_FORTIFY_SOURCE=2", 421 "-O2", 422 "-msse3", 423 ], 424 }, 425 }, 426} 427