xref: /aosp_15_r20/external/cronet/third_party/ced/Android.bp (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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_ced_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "external_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: "cronet_aml_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    defaults: [
48        "cronet_aml_cc_defaults",
49    ],
50    cflags: [
51        "-DANDROID",
52        "-DANDROID_NDK_VERSION_ROLL=r26b_1",
53        "-DCOMPILER_GCC",
54        "-DCR_CLANG_REVISION=\"llvmorg-19-init-8091-gab037c4f-22\"",
55        "-DCR_LIBCXX_REVISION=e3b94d0e5b86883fd77696bf10dc33ba250ba99b",
56        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
57        "-DHAVE_SYS_UIO_H",
58        "-DHTML5_MODE",
59        "-DNDEBUG",
60        "-DNO_UNWIND_TABLES",
61        "-DNVALGRIND",
62        "-DOFFICIAL_BUILD",
63        "-D_GNU_SOURCE",
64        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
65        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
66        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
67        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
68        "-fdata-sections",
69        "-ffunction-sections",
70        "-fno-asynchronous-unwind-tables",
71        "-fno-unwind-tables",
72        "-fstack-protector",
73        "-fvisibility-inlines-hidden",
74        "-fvisibility=hidden",
75        "-g1",
76    ],
77    include_dirs: [
78        "external/cronet/",
79        "external/cronet/buildtools/third_party/libc++/",
80        "external/cronet/third_party/ced/src/",
81        "external/cronet/third_party/libc++/src/include",
82        "external/cronet/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                "-O2",
97                "-mno-outline",
98            ],
99        },
100        android_x86: {
101            cflags: [
102                "-msse3",
103            ],
104        },
105        android_x86_64: {
106            cflags: [
107                "-msse3",
108            ],
109        },
110    },
111}
112