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_ced_license", 21 ], 22} 23 24// GN: License-Artificial 25license { 26 name: "stable_cronet_third_party_ced_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/ced:ced__testing 39cc_library_static { 40 name: "stable_cronet_third_party_ced_ced__testing", 41 srcs: [ 42 "src/compact_enc_det/compact_enc_det.cc", 43 "src/compact_enc_det/compact_enc_det_hint_code.cc", 44 "src/util/encodings/encodings.cc", 45 "src/util/languages/languages.cc", 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 "-DCOMPILER_GCC", 55 "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"", 56 "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df", 57 "-DDYNAMIC_ANNOTATIONS_ENABLED=0", 58 "-DHAVE_SYS_UIO_H", 59 "-DHTML5_MODE", 60 "-DNDEBUG", 61 "-DNVALGRIND", 62 "-DOFFICIAL_BUILD", 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 "-fdata-sections", 71 "-ffunction-sections", 72 "-fstack-protector", 73 "-fvisibility-inlines-hidden", 74 "-fvisibility=hidden", 75 "-g1", 76 ], 77 include_dirs: [ 78 "external/cronet/stable/", 79 "external/cronet/stable/buildtools/third_party/libc++/", 80 "external/cronet/stable/third_party/ced/src/", 81 "external/cronet/stable/third_party/libc++/src/include", 82 "external/cronet/stable/third_party/libc++abi/src/include", 83 ], 84 cpp_std: "c++20", 85 ldflags: [ 86 "-Wl,--as-needed", 87 "-Wl,--gc-sections", 88 "-Wl,--icf=all", 89 ], 90 visibility: [ 91 "//external/cronet:__subpackages__", 92 ], 93 target: { 94 android_arm64: { 95 cflags: [ 96 "-D__ARM_NEON__=1", 97 "-O2", 98 "-mno-outline", 99 ], 100 }, 101 android_x86: { 102 cflags: [ 103 "-msse3", 104 ], 105 }, 106 android_x86_64: { 107 cflags: [ 108 "-O2", 109 "-msse3", 110 ], 111 }, 112 }, 113} 114