• 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        "stable_cronet_third_party_google_benchmark_license",
21    ],
22}
23
24// GN: License-Artificial
25license {
26    name: "stable_cronet_third_party_google_benchmark_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/google_benchmark:google_benchmark__testing
39cc_library_static {
40    name: "stable_cronet_third_party_google_benchmark_google_benchmark__testing",
41    srcs: [
42        "src/src/benchmark.cc",
43        "src/src/benchmark_api_internal.cc",
44        "src/src/benchmark_name.cc",
45        "src/src/benchmark_register.cc",
46        "src/src/benchmark_runner.cc",
47        "src/src/check.cc",
48        "src/src/colorprint.cc",
49        "src/src/commandlineflags.cc",
50        "src/src/complexity.cc",
51        "src/src/console_reporter.cc",
52        "src/src/counter.cc",
53        "src/src/csv_reporter.cc",
54        "src/src/json_reporter.cc",
55        "src/src/perf_counters.cc",
56        "src/src/reporter.cc",
57        "src/src/statistics.cc",
58        "src/src/string_util.cc",
59        "src/src/sysinfo.cc",
60        "src/src/timers.cc",
61    ],
62    host_cross_supported: false,
63    defaults: [
64        "stable_cronet_cc_defaults",
65    ],
66    cflags: [
67        "-DANDROID",
68        "-DANDROID_NDK_VERSION_ROLL=r27_1",
69        "-DBENCHMARK_STATIC_DEFINE",
70        "-DBENCHMARK_VERSION=\"1.9.0\"",
71        "-DCR_CLANG_REVISION=\"llvmorg-20-init-13894-g8cb44859-1\"",
72        "-DCR_LIBCXX_REVISION=6a91009985a46122b061d36bb27f2c94f99126df",
73        "-DDYNAMIC_ANNOTATIONS_ENABLED=0",
74        "-DHAVE_STD_REGEX=1",
75        "-DHAVE_SYS_UIO_H",
76        "-DNDEBUG",
77        "-DNVALGRIND",
78        "-DOFFICIAL_BUILD",
79        "-DTMP_REBUILD_HACK",
80        "-D_GNU_SOURCE",
81        "-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS",
82        "-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE",
83        "-D_LIBCPP_INSTRUMENTED_WITH_ASAN=0",
84        "-D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS",
85        "-D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__",
86        "-Dbenchmark_EXPORTS=1",
87        "-fdata-sections",
88        "-ffunction-sections",
89        "-fstack-protector",
90        "-fvisibility-inlines-hidden",
91        "-fvisibility=hidden",
92        "-g1",
93    ],
94    include_dirs: [
95        "external/cronet/stable/",
96        "external/cronet/stable/buildtools/third_party/libc++/",
97        "external/cronet/stable/third_party/google_benchmark/src/include/",
98        "external/cronet/stable/third_party/libc++/src/include",
99        "external/cronet/stable/third_party/libc++abi/src/include",
100    ],
101    cpp_std: "c++20",
102    ldflags: [
103        "-Wl,--as-needed",
104        "-Wl,--gc-sections",
105        "-Wl,--icf=all",
106    ],
107    visibility: [
108        "//external/cronet:__subpackages__",
109    ],
110    target: {
111        android_arm64: {
112            cflags: [
113                "-D__ARM_NEON__=1",
114                "-O2",
115                "-mno-outline",
116            ],
117        },
118        android_x86: {
119            cflags: [
120                "-msse3",
121            ],
122        },
123        android_x86_64: {
124            cflags: [
125                "-O2",
126                "-msse3",
127            ],
128        },
129    },
130}
131