• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "external_cronet_license",
21    ],
22}
23
24// GN: //testing/libfuzzer:fuzztest_init_support__testing
25cc_library_static {
26    name: "tot_cronet_testing_libfuzzer_fuzztest_init_support__testing",
27    srcs: [
28        "fuzztest_init_helper.cc",
29    ],
30    host_cross_supported: false,
31    defaults: [
32        "tot_cronet_cc_defaults",
33    ],
34    cflags: [
35        "-DANDROID",
36        "-DANDROID_NDK_VERSION_ROLL=r27_1",
37        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
38        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
39        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
40        "-DHAVE_SYS_UIO_H",
41        "-DNDEBUG",
42        "-DNVALGRIND",
43        "-DOFFICIAL_BUILD",
44        "-DTMP_REBUILD_HACK",
45        "-D_GNU_SOURCE",
46        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
47        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
48        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
49        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
50        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
51        "-D__STDC_CONSTANT_MACROS",
52        "-D__STDC_FORMAT_MACROS",
53        "-fdata-sections",
54        "-ffunction-sections",
55        "-fstack-protector",
56        "-fvisibility-inlines-hidden",
57        "-fvisibility=hidden",
58        "-g1",
59    ],
60    include_dirs: [
61        "external/cronet/tot/",
62        "external/cronet/tot/buildtools/third_party/libc++/",
63        "external/cronet/tot/third_party/libc++/src/include",
64        "external/cronet/tot/third_party/libc++abi/src/include",
65    ],
66    cpp_std: "c++20",
67    ldflags: [
68        "-Wl,--as-needed",
69        "-Wl,--gc-sections",
70        "-Wl,--icf=all",
71    ],
72    visibility: [
73        "//external/cronet:__subpackages__",
74    ],
75    target: {
76        android_arm: {
77            cflags: [
78                "-D_FORTIFY_SOURCE=2",
79            ],
80        },
81        android_arm64: {
82            cflags: [
83                "-D_FORTIFY_SOURCE=2",
84                "-D__ARM_NEON__=1",
85                "-O2",
86                "-mno-outline",
87            ],
88        },
89        android_x86: {
90            cflags: [
91                "-D_FORTIFY_SOURCE=2",
92                "-msse3",
93            ],
94        },
95        android_x86_64: {
96            cflags: [
97                "-D_FORTIFY_SOURCE=2",
98                "-O2",
99                "-msse3",
100            ],
101        },
102    },
103}
104