Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 1 | # Copyright (C) 2017 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 | |
Florian Mayer | a2fae26 | 2018-08-31 12:10:01 -0700 | [diff] [blame] | 15 | import("../gn/perfetto.gni") |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 16 | import("../gn/standalone/libc++/libc++.gni") |
Florian Mayer | 0bea797 | 2019-09-02 15:28:13 +0100 | [diff] [blame] | 17 | import("../gn/standalone/sanitizers/vars.gni") |
Primiano Tucci | 02c1176 | 2019-08-30 00:57:59 +0200 | [diff] [blame] | 18 | |
| 19 | # We should never get here in embedder builds. |
| 20 | assert(perfetto_build_standalone || is_perfetto_build_generator) |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 21 | |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 22 | # This is to make sure that we don't add accidental dependencies from build |
| 23 | # files in src/ or include/ to buildtools. All deps (outside of /gn/*) should |
| 24 | # go via the groups defined in gn/BUILD.gn, not directly into buildtools. This |
| 25 | # is to allow embedders to re-route targets to their third_party directories. |
| 26 | _buildtools_visibility = [ |
| 27 | "./*", |
| 28 | "../gn:*", |
| 29 | "../gn/standalone:*", |
| 30 | ] |
| 31 | |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 32 | # Used to suppress warnings coming from googletest macros expansions. |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 33 | # These suppressions apply both to gtest/gmock haders and to perfetto's |
| 34 | # test translation units. See test/gtest_and_gmock.h for the subset of |
| 35 | # suppressions that apply only to the gmock/gtest headers. |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 36 | config("test_warning_suppressions") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 37 | visibility = _buildtools_visibility |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 38 | if (is_clang) { |
| 39 | cflags = [ |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 40 | "-Wno-covered-switch-default", |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 41 | "-Wno-deprecated-copy-dtor", |
| 42 | "-Wno-global-constructors", |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 43 | "-Wno-inconsistent-missing-override", |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 44 | "-Wno-language-extension-token", |
Primiano Tucci | f68444a | 2020-08-05 11:53:39 +0200 | [diff] [blame] | 45 | "-Wno-suggest-destructor-override", |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 46 | "-Wno-suggest-override", |
| 47 | "-Wno-undef", |
| 48 | "-Wno-unknown-warning-option", |
| 49 | "-Wno-unused-member-function", |
| 50 | "-Wno-used-but-marked-unused", |
| 51 | "-Wno-weak-vtables", |
| 52 | "-Wno-zero-as-null-pointer-constant", |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 53 | ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 54 | } else if (!is_win) { |
Matthew Clarkson | 83987d2 | 2019-10-03 17:30:53 +0100 | [diff] [blame] | 55 | cflags = [ |
| 56 | "-Wno-unknown-warning-option", |
| 57 | "-Wno-deprecated-copy", |
| 58 | ] |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 59 | } |
Primiano Tucci | 2a29ac7 | 2017-10-24 17:47:19 +0100 | [diff] [blame] | 60 | } |
| 61 | |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 62 | config("libunwindstack_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 63 | visibility = _buildtools_visibility |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 64 | cflags = [ |
| 65 | # Using -isystem instead of include_dirs (-I), so we don't need to suppress |
Florian Mayer | f833566 | 2018-08-08 11:30:32 +0100 | [diff] [blame] | 66 | # warnings coming from libunwindstack headers. Doing so would mask warnings |
| 67 | # in our own code. |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 68 | perfetto_isystem_cflag, |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 69 | rebase_path("android-unwinding/libunwindstack/include", root_build_dir), |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 70 | perfetto_isystem_cflag, |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 71 | rebase_path("android-libprocinfo/include", root_build_dir), |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 72 | perfetto_isystem_cflag, |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 73 | rebase_path("android-libbase/include", root_build_dir), |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 74 | perfetto_isystem_cflag, |
Florian Mayer | 6140f32 | 2019-01-21 15:10:17 +0000 | [diff] [blame] | 75 | rebase_path("android-core/demangle/include", root_build_dir), |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 76 | ] |
Florian Mayer | b64d6b1 | 2018-08-30 10:46:30 -0700 | [diff] [blame] | 77 | if (is_android) { |
| 78 | cflags += [ |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 79 | perfetto_isystem_cflag, |
Florian Mayer | b64d6b1 | 2018-08-30 10:46:30 -0700 | [diff] [blame] | 80 | rebase_path("bionic/libc/include", root_build_dir), |
| 81 | ] |
| 82 | } |
Florian Mayer | 12adafd | 2019-03-14 21:58:00 -0700 | [diff] [blame] | 83 | defines = [ "NO_LIBDEXFILE_SUPPORT" ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 84 | } |
| 85 | |
Primiano Tucci | 2a29ac7 | 2017-10-24 17:47:19 +0100 | [diff] [blame] | 86 | # Config to include gtest.h in test targets. |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 87 | config("googletest_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 88 | visibility = _buildtools_visibility |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 89 | defines = [ "GTEST_LANG_CXX11=1" ] |
Primiano Tucci | 919ca1e | 2019-08-21 20:26:58 +0200 | [diff] [blame] | 90 | include_dirs = [ |
| 91 | "googletest/googletest/include", |
| 92 | "googletest/googlemock/include", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 93 | ] |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 94 | configs = [ ":test_warning_suppressions" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 95 | } |
| 96 | |
| 97 | source_set("gtest") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 98 | visibility = _buildtools_visibility |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 99 | testonly = true |
| 100 | include_dirs = [ "googletest/googletest" ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 101 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 102 | public_configs = [ ":googletest_config" ] |
| 103 | all_dependent_configs = [ ":googletest_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 104 | sources = [ "googletest/googletest/src/gtest-all.cc" ] |
| 105 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | source_set("gtest_main") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 109 | visibility = _buildtools_visibility |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 110 | testonly = true |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 111 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 112 | configs += [ ":googletest_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 113 | sources = [ "googletest/googletest/src/gtest_main.cc" ] |
| 114 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 115 | } |
| 116 | |
| 117 | source_set("gmock") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 118 | visibility = _buildtools_visibility |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 119 | testonly = true |
| 120 | include_dirs = [ "googletest/googlemock" ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 121 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 122 | public_configs = [ ":googletest_config" ] |
| 123 | all_dependent_configs = [ ":googletest_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 124 | sources = [ "googletest/googlemock/src/gmock-all.cc" ] |
| 125 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 126 | } |
| 127 | |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 128 | # Configuration used to build libprotobuf_* and the protoc compiler. |
| 129 | config("protobuf_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 130 | visibility = _buildtools_visibility |
| 131 | |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 132 | # Apply the lighter supressions and macro definitions from above. |
Joel Fernandes | 80fc3cd | 2020-04-01 18:02:57 -0400 | [diff] [blame] | 133 | configs = [ "//gn:protobuf_gen_config" ] |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 134 | |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 135 | defines = [ "HAVE_PTHREAD=1" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 136 | cflags = [] |
Hector Dearman | edb3beb | 2017-10-09 17:53:36 +0100 | [diff] [blame] | 137 | if (is_clang) { |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 138 | # We do NOT build libprotobuf with -Wextra or -Weverything. But still it |
| 139 | # hits some warnings that we need to suppress. |
| 140 | cflags += [ |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 141 | "-Wno-unknown-warning-option", |
Primiano Tucci | b60d4b0 | 2017-11-10 11:03:00 +0000 | [diff] [blame] | 142 | "-Wno-enum-compare-switch", |
Primiano Tucci | b60d4b0 | 2017-11-10 11:03:00 +0000 | [diff] [blame] | 143 | "-Wno-user-defined-warnings", |
Florian Mayer | aa5316b | 2018-08-20 17:45:12 -0700 | [diff] [blame] | 144 | "-Wno-tautological-constant-compare", |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 145 | "-Wno-inconsistent-missing-override", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 146 | ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 147 | } else if (!is_win) { # implies gcc |
| 148 | cflags += [ "-Wno-return-type" ] |
| 149 | } |
| 150 | if (is_win) { |
| 151 | cflags += [ "/W0" ] |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | # Configuration propagated to targets depending on protobuf_full. |
| 156 | config("protobuf_full_public_config") { |
| 157 | visibility = _buildtools_visibility |
| 158 | cflags = [] |
| 159 | if (is_clang) { |
| 160 | cflags += [ "-Wno-switch-enum" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 161 | } |
| 162 | } |
| 163 | |
| 164 | source_set("protobuf_lite") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 165 | visibility = _buildtools_visibility |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 166 | sources = [ |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 167 | "protobuf/src/google/protobuf/any_lite.cc", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 168 | "protobuf/src/google/protobuf/arena.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 169 | "protobuf/src/google/protobuf/arena.h", |
| 170 | "protobuf/src/google/protobuf/arena_impl.h", |
| 171 | "protobuf/src/google/protobuf/arenastring.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 172 | "protobuf/src/google/protobuf/extension_set.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 173 | "protobuf/src/google/protobuf/extension_set.h", |
| 174 | "protobuf/src/google/protobuf/generated_enum_util.cc", |
| 175 | "protobuf/src/google/protobuf/generated_enum_util.h", |
| 176 | "protobuf/src/google/protobuf/generated_message_table_driven_lite.cc", |
| 177 | "protobuf/src/google/protobuf/generated_message_table_driven_lite.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 178 | "protobuf/src/google/protobuf/generated_message_util.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 179 | "protobuf/src/google/protobuf/generated_message_util.h", |
| 180 | "protobuf/src/google/protobuf/has_bits.h", |
| 181 | "protobuf/src/google/protobuf/implicit_weak_message.cc", |
| 182 | "protobuf/src/google/protobuf/implicit_weak_message.h", |
| 183 | "protobuf/src/google/protobuf/inlined_string_field.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 184 | "protobuf/src/google/protobuf/io/coded_stream.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 185 | "protobuf/src/google/protobuf/io/coded_stream.h", |
| 186 | "protobuf/src/google/protobuf/io/coded_stream_inl.h", |
| 187 | "protobuf/src/google/protobuf/io/io_win32.cc", |
| 188 | "protobuf/src/google/protobuf/io/io_win32.h", |
| 189 | "protobuf/src/google/protobuf/io/strtod.cc", |
| 190 | "protobuf/src/google/protobuf/io/strtod.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 191 | "protobuf/src/google/protobuf/io/zero_copy_stream.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 192 | "protobuf/src/google/protobuf/io/zero_copy_stream.h", |
| 193 | "protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc", |
| 194 | "protobuf/src/google/protobuf/io/zero_copy_stream_impl.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 195 | "protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 196 | "protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h", |
| 197 | "protobuf/src/google/protobuf/map.h", |
| 198 | "protobuf/src/google/protobuf/map_entry_lite.h", |
| 199 | "protobuf/src/google/protobuf/map_field_lite.h", |
| 200 | "protobuf/src/google/protobuf/map_type_handler.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 201 | "protobuf/src/google/protobuf/message_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 202 | "protobuf/src/google/protobuf/message_lite.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 203 | "protobuf/src/google/protobuf/repeated_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 204 | "protobuf/src/google/protobuf/repeated_field.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 205 | "protobuf/src/google/protobuf/stubs/bytestream.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 206 | "protobuf/src/google/protobuf/stubs/bytestream.h", |
| 207 | "protobuf/src/google/protobuf/stubs/callback.h", |
| 208 | "protobuf/src/google/protobuf/stubs/casts.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 209 | "protobuf/src/google/protobuf/stubs/common.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 210 | "protobuf/src/google/protobuf/stubs/common.h", |
| 211 | "protobuf/src/google/protobuf/stubs/fastmem.h", |
| 212 | "protobuf/src/google/protobuf/stubs/hash.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 213 | "protobuf/src/google/protobuf/stubs/int128.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 214 | "protobuf/src/google/protobuf/stubs/int128.h", |
| 215 | "protobuf/src/google/protobuf/stubs/logging.h", |
| 216 | "protobuf/src/google/protobuf/stubs/macros.h", |
| 217 | "protobuf/src/google/protobuf/stubs/map_util.h", |
| 218 | "protobuf/src/google/protobuf/stubs/mutex.h", |
| 219 | "protobuf/src/google/protobuf/stubs/once.h", |
| 220 | "protobuf/src/google/protobuf/stubs/platform_macros.h", |
| 221 | "protobuf/src/google/protobuf/stubs/port.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 222 | "protobuf/src/google/protobuf/stubs/status.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 223 | "protobuf/src/google/protobuf/stubs/status.h", |
| 224 | "protobuf/src/google/protobuf/stubs/status_macros.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 225 | "protobuf/src/google/protobuf/stubs/statusor.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 226 | "protobuf/src/google/protobuf/stubs/statusor.h", |
| 227 | "protobuf/src/google/protobuf/stubs/stl_util.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 228 | "protobuf/src/google/protobuf/stubs/stringpiece.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 229 | "protobuf/src/google/protobuf/stubs/stringpiece.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 230 | "protobuf/src/google/protobuf/stubs/stringprintf.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 231 | "protobuf/src/google/protobuf/stubs/stringprintf.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 232 | "protobuf/src/google/protobuf/stubs/structurally_valid.cc", |
| 233 | "protobuf/src/google/protobuf/stubs/strutil.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 234 | "protobuf/src/google/protobuf/stubs/strutil.h", |
| 235 | "protobuf/src/google/protobuf/stubs/template_util.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 236 | "protobuf/src/google/protobuf/stubs/time.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 237 | "protobuf/src/google/protobuf/stubs/time.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 238 | "protobuf/src/google/protobuf/wire_format_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 239 | "protobuf/src/google/protobuf/wire_format_lite.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 240 | ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 241 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 242 | if (is_win) { |
| 243 | # Protobuf has its own #define WIN32_LEAN_AND_MEAN. |
| 244 | configs -= [ "//gn/standalone:win32_lean_and_mean" ] |
| 245 | } |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 246 | configs += [ ":protobuf_config" ] |
Joel Fernandes | 80fc3cd | 2020-04-01 18:02:57 -0400 | [diff] [blame] | 247 | public_configs = [ "//gn:protobuf_gen_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 248 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 249 | } |
| 250 | |
| 251 | source_set("protobuf_full") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 252 | visibility = _buildtools_visibility |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame] | 253 | deps = [ |
| 254 | ":protobuf_lite", |
Florian Mayer | a85b8fa | 2019-07-11 11:00:48 +0100 | [diff] [blame] | 255 | "//gn:default_deps", |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame] | 256 | ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 257 | sources = [ |
| 258 | "protobuf/src/google/protobuf/any.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 259 | "protobuf/src/google/protobuf/any.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 260 | "protobuf/src/google/protobuf/any.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 261 | "protobuf/src/google/protobuf/any.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 262 | "protobuf/src/google/protobuf/api.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 263 | "protobuf/src/google/protobuf/api.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 264 | "protobuf/src/google/protobuf/compiler/importer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 265 | "protobuf/src/google/protobuf/compiler/importer.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 266 | "protobuf/src/google/protobuf/compiler/parser.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 267 | "protobuf/src/google/protobuf/compiler/parser.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 268 | "protobuf/src/google/protobuf/descriptor.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 269 | "protobuf/src/google/protobuf/descriptor.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 270 | "protobuf/src/google/protobuf/descriptor.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 271 | "protobuf/src/google/protobuf/descriptor.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 272 | "protobuf/src/google/protobuf/descriptor_database.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 273 | "protobuf/src/google/protobuf/descriptor_database.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 274 | "protobuf/src/google/protobuf/duration.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 275 | "protobuf/src/google/protobuf/duration.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 276 | "protobuf/src/google/protobuf/dynamic_message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 277 | "protobuf/src/google/protobuf/dynamic_message.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 278 | "protobuf/src/google/protobuf/empty.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 279 | "protobuf/src/google/protobuf/empty.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 280 | "protobuf/src/google/protobuf/extension_set_heavy.cc", |
| 281 | "protobuf/src/google/protobuf/field_mask.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 282 | "protobuf/src/google/protobuf/field_mask.pb.h", |
| 283 | "protobuf/src/google/protobuf/generated_enum_reflection.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 284 | "protobuf/src/google/protobuf/generated_message_reflection.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 285 | "protobuf/src/google/protobuf/generated_message_reflection.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 286 | "protobuf/src/google/protobuf/io/gzip_stream.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 287 | "protobuf/src/google/protobuf/io/gzip_stream.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 288 | "protobuf/src/google/protobuf/io/printer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 289 | "protobuf/src/google/protobuf/io/printer.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 290 | "protobuf/src/google/protobuf/io/tokenizer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 291 | "protobuf/src/google/protobuf/io/tokenizer.h", |
| 292 | "protobuf/src/google/protobuf/map_entry.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 293 | "protobuf/src/google/protobuf/map_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 294 | "protobuf/src/google/protobuf/map_field.h", |
| 295 | "protobuf/src/google/protobuf/map_field_inl.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 296 | "protobuf/src/google/protobuf/message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 297 | "protobuf/src/google/protobuf/message.h", |
| 298 | "protobuf/src/google/protobuf/metadata.h", |
| 299 | "protobuf/src/google/protobuf/reflection.h", |
| 300 | "protobuf/src/google/protobuf/reflection_internal.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 301 | "protobuf/src/google/protobuf/reflection_ops.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 302 | "protobuf/src/google/protobuf/reflection_ops.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 303 | "protobuf/src/google/protobuf/service.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 304 | "protobuf/src/google/protobuf/service.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 305 | "protobuf/src/google/protobuf/source_context.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 306 | "protobuf/src/google/protobuf/source_context.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 307 | "protobuf/src/google/protobuf/struct.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 308 | "protobuf/src/google/protobuf/struct.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 309 | "protobuf/src/google/protobuf/stubs/mathlimits.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 310 | "protobuf/src/google/protobuf/stubs/mathlimits.h", |
| 311 | "protobuf/src/google/protobuf/stubs/mathutil.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 312 | "protobuf/src/google/protobuf/stubs/substitute.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 313 | "protobuf/src/google/protobuf/stubs/substitute.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 314 | "protobuf/src/google/protobuf/text_format.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 315 | "protobuf/src/google/protobuf/text_format.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 316 | "protobuf/src/google/protobuf/timestamp.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 317 | "protobuf/src/google/protobuf/timestamp.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 318 | "protobuf/src/google/protobuf/type.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 319 | "protobuf/src/google/protobuf/type.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 320 | "protobuf/src/google/protobuf/unknown_field_set.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 321 | "protobuf/src/google/protobuf/unknown_field_set.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 322 | "protobuf/src/google/protobuf/util/field_comparator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 323 | "protobuf/src/google/protobuf/util/field_comparator.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 324 | "protobuf/src/google/protobuf/util/field_mask_util.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 325 | "protobuf/src/google/protobuf/util/field_mask_util.h", |
| 326 | "protobuf/src/google/protobuf/util/internal/constants.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 327 | "protobuf/src/google/protobuf/util/internal/datapiece.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 328 | "protobuf/src/google/protobuf/util/internal/datapiece.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 329 | "protobuf/src/google/protobuf/util/internal/default_value_objectwriter.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 330 | "protobuf/src/google/protobuf/util/internal/default_value_objectwriter.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 331 | "protobuf/src/google/protobuf/util/internal/error_listener.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 332 | "protobuf/src/google/protobuf/util/internal/error_listener.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 333 | "protobuf/src/google/protobuf/util/internal/field_mask_utility.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 334 | "protobuf/src/google/protobuf/util/internal/field_mask_utility.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 335 | "protobuf/src/google/protobuf/util/internal/json_escaping.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 336 | "protobuf/src/google/protobuf/util/internal/json_escaping.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 337 | "protobuf/src/google/protobuf/util/internal/json_objectwriter.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 338 | "protobuf/src/google/protobuf/util/internal/json_objectwriter.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 339 | "protobuf/src/google/protobuf/util/internal/json_stream_parser.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 340 | "protobuf/src/google/protobuf/util/internal/json_stream_parser.h", |
| 341 | "protobuf/src/google/protobuf/util/internal/location_tracker.h", |
| 342 | "protobuf/src/google/protobuf/util/internal/object_location_tracker.h", |
| 343 | "protobuf/src/google/protobuf/util/internal/object_source.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 344 | "protobuf/src/google/protobuf/util/internal/object_writer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 345 | "protobuf/src/google/protobuf/util/internal/object_writer.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 346 | "protobuf/src/google/protobuf/util/internal/proto_writer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 347 | "protobuf/src/google/protobuf/util/internal/proto_writer.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 348 | "protobuf/src/google/protobuf/util/internal/protostream_objectsource.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 349 | "protobuf/src/google/protobuf/util/internal/protostream_objectsource.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 350 | "protobuf/src/google/protobuf/util/internal/protostream_objectwriter.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 351 | "protobuf/src/google/protobuf/util/internal/protostream_objectwriter.h", |
| 352 | "protobuf/src/google/protobuf/util/internal/structured_objectwriter.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 353 | "protobuf/src/google/protobuf/util/internal/type_info.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 354 | "protobuf/src/google/protobuf/util/internal/type_info.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 355 | "protobuf/src/google/protobuf/util/internal/type_info_test_helper.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 356 | "protobuf/src/google/protobuf/util/internal/type_info_test_helper.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 357 | "protobuf/src/google/protobuf/util/internal/utility.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 358 | "protobuf/src/google/protobuf/util/internal/utility.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 359 | "protobuf/src/google/protobuf/util/json_util.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 360 | "protobuf/src/google/protobuf/util/json_util.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 361 | "protobuf/src/google/protobuf/util/message_differencer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 362 | "protobuf/src/google/protobuf/util/message_differencer.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 363 | "protobuf/src/google/protobuf/util/time_util.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 364 | "protobuf/src/google/protobuf/util/time_util.h", |
| 365 | "protobuf/src/google/protobuf/util/type_resolver.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 366 | "protobuf/src/google/protobuf/util/type_resolver_util.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 367 | "protobuf/src/google/protobuf/util/type_resolver_util.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 368 | "protobuf/src/google/protobuf/wire_format.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 369 | "protobuf/src/google/protobuf/wire_format.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 370 | "protobuf/src/google/protobuf/wrappers.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 371 | "protobuf/src/google/protobuf/wrappers.pb.h", |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 372 | ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 373 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 374 | if (is_win) { |
| 375 | # Protobuf has its own #define WIN32_LEAN_AND_MEAN. |
| 376 | configs -= [ "//gn/standalone:win32_lean_and_mean" ] |
| 377 | } |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 378 | configs += [ ":protobuf_config" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 379 | public_configs = [ |
| 380 | "//gn:protobuf_gen_config", |
| 381 | ":protobuf_full_public_config", |
| 382 | ] |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 383 | } |
| 384 | |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 385 | source_set("protoc_lib") { |
| 386 | visibility = _buildtools_visibility |
| 387 | deps = [ |
| 388 | ":protobuf_full", |
| 389 | "//gn:default_deps", |
| 390 | ] |
| 391 | sources = [ |
| 392 | "protobuf/src/google/protobuf/compiler/code_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 393 | "protobuf/src/google/protobuf/compiler/code_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 394 | "protobuf/src/google/protobuf/compiler/command_line_interface.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 395 | "protobuf/src/google/protobuf/compiler/command_line_interface.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 396 | "protobuf/src/google/protobuf/compiler/cpp/cpp_enum.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 397 | "protobuf/src/google/protobuf/compiler/cpp/cpp_enum.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 398 | "protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 399 | "protobuf/src/google/protobuf/compiler/cpp/cpp_enum_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 400 | "protobuf/src/google/protobuf/compiler/cpp/cpp_extension.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 401 | "protobuf/src/google/protobuf/compiler/cpp/cpp_extension.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 402 | "protobuf/src/google/protobuf/compiler/cpp/cpp_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 403 | "protobuf/src/google/protobuf/compiler/cpp/cpp_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 404 | "protobuf/src/google/protobuf/compiler/cpp/cpp_file.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 405 | "protobuf/src/google/protobuf/compiler/cpp/cpp_file.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 406 | "protobuf/src/google/protobuf/compiler/cpp/cpp_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 407 | "protobuf/src/google/protobuf/compiler/cpp/cpp_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 408 | "protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 409 | "protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 410 | "protobuf/src/google/protobuf/compiler/cpp/cpp_map_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 411 | "protobuf/src/google/protobuf/compiler/cpp/cpp_map_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 412 | "protobuf/src/google/protobuf/compiler/cpp/cpp_message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 413 | "protobuf/src/google/protobuf/compiler/cpp/cpp_message.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 414 | "protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 415 | "protobuf/src/google/protobuf/compiler/cpp/cpp_message_field.h", |
| 416 | "protobuf/src/google/protobuf/compiler/cpp/cpp_message_layout_helper.h", |
| 417 | "protobuf/src/google/protobuf/compiler/cpp/cpp_options.h", |
| 418 | "protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc", |
| 419 | "protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 420 | "protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 421 | "protobuf/src/google/protobuf/compiler/cpp/cpp_primitive_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 422 | "protobuf/src/google/protobuf/compiler/cpp/cpp_service.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 423 | "protobuf/src/google/protobuf/compiler/cpp/cpp_service.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 424 | "protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 425 | "protobuf/src/google/protobuf/compiler/cpp/cpp_string_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 426 | "protobuf/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 427 | "protobuf/src/google/protobuf/compiler/csharp/csharp_doc_comment.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 428 | "protobuf/src/google/protobuf/compiler/csharp/csharp_enum.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 429 | "protobuf/src/google/protobuf/compiler/csharp/csharp_enum.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 430 | "protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 431 | "protobuf/src/google/protobuf/compiler/csharp/csharp_enum_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 432 | "protobuf/src/google/protobuf/compiler/csharp/csharp_field_base.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 433 | "protobuf/src/google/protobuf/compiler/csharp/csharp_field_base.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 434 | "protobuf/src/google/protobuf/compiler/csharp/csharp_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 435 | "protobuf/src/google/protobuf/compiler/csharp/csharp_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 436 | "protobuf/src/google/protobuf/compiler/csharp/csharp_helpers.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 437 | "protobuf/src/google/protobuf/compiler/csharp/csharp_helpers.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 438 | "protobuf/src/google/protobuf/compiler/csharp/csharp_map_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 439 | "protobuf/src/google/protobuf/compiler/csharp/csharp_map_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 440 | "protobuf/src/google/protobuf/compiler/csharp/csharp_message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 441 | "protobuf/src/google/protobuf/compiler/csharp/csharp_message.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 442 | "protobuf/src/google/protobuf/compiler/csharp/csharp_message_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 443 | "protobuf/src/google/protobuf/compiler/csharp/csharp_message_field.h", |
| 444 | "protobuf/src/google/protobuf/compiler/csharp/csharp_options.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 445 | "protobuf/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 446 | "protobuf/src/google/protobuf/compiler/csharp/csharp_primitive_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 447 | "protobuf/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 448 | "protobuf/src/google/protobuf/compiler/csharp/csharp_reflection_class.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 449 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 450 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 451 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 452 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 453 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 454 | "protobuf/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 455 | "protobuf/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 456 | "protobuf/src/google/protobuf/compiler/csharp/csharp_source_generator_base.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 457 | "protobuf/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 458 | "protobuf/src/google/protobuf/compiler/csharp/csharp_wrapper_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 459 | "protobuf/src/google/protobuf/compiler/java/java_context.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 460 | "protobuf/src/google/protobuf/compiler/java/java_context.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 461 | "protobuf/src/google/protobuf/compiler/java/java_doc_comment.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 462 | "protobuf/src/google/protobuf/compiler/java/java_doc_comment.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 463 | "protobuf/src/google/protobuf/compiler/java/java_enum.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 464 | "protobuf/src/google/protobuf/compiler/java/java_enum.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 465 | "protobuf/src/google/protobuf/compiler/java/java_enum_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 466 | "protobuf/src/google/protobuf/compiler/java/java_enum_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 467 | "protobuf/src/google/protobuf/compiler/java/java_enum_field_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 468 | "protobuf/src/google/protobuf/compiler/java/java_enum_field_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 469 | "protobuf/src/google/protobuf/compiler/java/java_enum_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 470 | "protobuf/src/google/protobuf/compiler/java/java_enum_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 471 | "protobuf/src/google/protobuf/compiler/java/java_extension.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 472 | "protobuf/src/google/protobuf/compiler/java/java_extension.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 473 | "protobuf/src/google/protobuf/compiler/java/java_extension_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 474 | "protobuf/src/google/protobuf/compiler/java/java_extension_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 475 | "protobuf/src/google/protobuf/compiler/java/java_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 476 | "protobuf/src/google/protobuf/compiler/java/java_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 477 | "protobuf/src/google/protobuf/compiler/java/java_file.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 478 | "protobuf/src/google/protobuf/compiler/java/java_file.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 479 | "protobuf/src/google/protobuf/compiler/java/java_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 480 | "protobuf/src/google/protobuf/compiler/java/java_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 481 | "protobuf/src/google/protobuf/compiler/java/java_generator_factory.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 482 | "protobuf/src/google/protobuf/compiler/java/java_generator_factory.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 483 | "protobuf/src/google/protobuf/compiler/java/java_helpers.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 484 | "protobuf/src/google/protobuf/compiler/java/java_helpers.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 485 | "protobuf/src/google/protobuf/compiler/java/java_map_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 486 | "protobuf/src/google/protobuf/compiler/java/java_map_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 487 | "protobuf/src/google/protobuf/compiler/java/java_map_field_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 488 | "protobuf/src/google/protobuf/compiler/java/java_map_field_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 489 | "protobuf/src/google/protobuf/compiler/java/java_message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 490 | "protobuf/src/google/protobuf/compiler/java/java_message.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 491 | "protobuf/src/google/protobuf/compiler/java/java_message_builder.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 492 | "protobuf/src/google/protobuf/compiler/java/java_message_builder.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 493 | "protobuf/src/google/protobuf/compiler/java/java_message_builder_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 494 | "protobuf/src/google/protobuf/compiler/java/java_message_builder_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 495 | "protobuf/src/google/protobuf/compiler/java/java_message_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 496 | "protobuf/src/google/protobuf/compiler/java/java_message_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 497 | "protobuf/src/google/protobuf/compiler/java/java_message_field_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 498 | "protobuf/src/google/protobuf/compiler/java/java_message_field_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 499 | "protobuf/src/google/protobuf/compiler/java/java_message_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 500 | "protobuf/src/google/protobuf/compiler/java/java_message_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 501 | "protobuf/src/google/protobuf/compiler/java/java_name_resolver.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 502 | "protobuf/src/google/protobuf/compiler/java/java_name_resolver.h", |
| 503 | "protobuf/src/google/protobuf/compiler/java/java_options.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 504 | "protobuf/src/google/protobuf/compiler/java/java_primitive_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 505 | "protobuf/src/google/protobuf/compiler/java/java_primitive_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 506 | "protobuf/src/google/protobuf/compiler/java/java_primitive_field_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 507 | "protobuf/src/google/protobuf/compiler/java/java_primitive_field_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 508 | "protobuf/src/google/protobuf/compiler/java/java_service.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 509 | "protobuf/src/google/protobuf/compiler/java/java_service.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 510 | "protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 511 | "protobuf/src/google/protobuf/compiler/java/java_shared_code_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 512 | "protobuf/src/google/protobuf/compiler/java/java_string_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 513 | "protobuf/src/google/protobuf/compiler/java/java_string_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 514 | "protobuf/src/google/protobuf/compiler/java/java_string_field_lite.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 515 | "protobuf/src/google/protobuf/compiler/java/java_string_field_lite.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 516 | "protobuf/src/google/protobuf/compiler/js/js_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 517 | "protobuf/src/google/protobuf/compiler/js/js_generator.h", |
| 518 | "protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc", |
| 519 | "protobuf/src/google/protobuf/compiler/js/well_known_types_embed.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 520 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 521 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 522 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 523 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_enum_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 524 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_extension.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 525 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_extension.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 526 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 527 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 528 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_file.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 529 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_file.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 530 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 531 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 532 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 533 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 534 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 535 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_map_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 536 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 537 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_message.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 538 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 539 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_message_field.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 540 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 541 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_oneof.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 542 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 543 | "protobuf/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.h", |
| 544 | "protobuf/src/google/protobuf/compiler/php/php_generator.cc", |
| 545 | "protobuf/src/google/protobuf/compiler/php/php_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 546 | "protobuf/src/google/protobuf/compiler/plugin.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 547 | "protobuf/src/google/protobuf/compiler/plugin.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 548 | "protobuf/src/google/protobuf/compiler/plugin.pb.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 549 | "protobuf/src/google/protobuf/compiler/plugin.pb.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 550 | "protobuf/src/google/protobuf/compiler/python/python_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 551 | "protobuf/src/google/protobuf/compiler/python/python_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 552 | "protobuf/src/google/protobuf/compiler/ruby/ruby_generator.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 553 | "protobuf/src/google/protobuf/compiler/ruby/ruby_generator.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 554 | "protobuf/src/google/protobuf/compiler/subprocess.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 555 | "protobuf/src/google/protobuf/compiler/subprocess.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 556 | "protobuf/src/google/protobuf/compiler/zip_writer.cc", |
Primiano Tucci | f550b25 | 2019-12-03 11:06:02 +0000 | [diff] [blame] | 557 | "protobuf/src/google/protobuf/compiler/zip_writer.h", |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 558 | ] |
| 559 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 560 | if (is_win) { |
| 561 | # Protobuf does has its own #define WIN32_LEAN_AND_MEAN. |
| 562 | configs -= [ "//gn/standalone:win32_lean_and_mean" ] |
| 563 | } |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 564 | configs += [ ":protobuf_config" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 565 | public_configs = [ |
| 566 | "//gn:protobuf_gen_config", |
| 567 | ":protobuf_full_public_config", |
| 568 | ] |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 569 | } |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 570 | |
Primiano Tucci | d0001c3 | 2019-09-08 22:45:58 -0700 | [diff] [blame] | 571 | if (current_toolchain == host_toolchain) { |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 572 | executable("protoc") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 573 | visibility = _buildtools_visibility |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame] | 574 | deps = [ |
| 575 | ":protoc_lib", |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 576 | "//gn:default_deps", |
Oystein Eftevaag | dd727e4 | 2017-12-05 08:49:55 -0800 | [diff] [blame] | 577 | ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 578 | sources = [ "protobuf/src/google/protobuf/compiler/main.cc" ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 579 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 580 | if (is_win) { |
| 581 | # Protobuf does has its own #define WIN32_LEAN_AND_MEAN. |
| 582 | configs -= [ "//gn/standalone:win32_lean_and_mean" ] |
| 583 | } |
Primiano Tucci | fd48423 | 2017-10-25 00:15:39 +0100 | [diff] [blame] | 584 | } |
Primiano Tucci | ae2879e | 2017-09-27 11:02:09 +0900 | [diff] [blame] | 585 | } # host_toolchain |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 586 | |
| 587 | if (use_custom_libcxx) { |
| 588 | # Config applied to both libc++ and libc++abi targets below. |
| 589 | config("libc++config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 590 | visibility = _buildtools_visibility |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 591 | defines = [ |
| 592 | "LIBCXX_BUILDING_LIBCXXABI", |
| 593 | "_LIBCXXABI_NO_EXCEPTIONS", |
| 594 | "_LIBCPP_OVERRIDABLE_FUNC_VIS=__attribute__((__visibility__(\"default\")))", |
| 595 | ] |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 596 | cflags = [ "-fstrict-aliasing" ] |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 597 | } |
| 598 | |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 599 | source_set("libunwind") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 600 | visibility = _buildtools_visibility |
Primiano Tucci | 4e8d6c9 | 2020-09-23 14:40:33 +0200 | [diff] [blame] | 601 | cflags = [ |
| 602 | # libunwind expects to be compiled with unwind tables so it can |
| 603 | # unwind its own frames. |
| 604 | "-funwind-tables", |
| 605 | "-fstrict-aliasing", |
| 606 | ] |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 607 | sources = [ |
| 608 | "libunwind/src/Unwind-EHABI.cpp", |
| 609 | "libunwind/src/Unwind-sjlj.c", |
| 610 | "libunwind/src/UnwindLevel1-gcc-ext.c", |
| 611 | "libunwind/src/UnwindLevel1.c", |
| 612 | "libunwind/src/UnwindRegistersRestore.S", |
| 613 | "libunwind/src/UnwindRegistersSave.S", |
| 614 | "libunwind/src/libunwind.cpp", |
| 615 | ] |
| 616 | include_dirs = [ "libunwind/include" ] |
| 617 | configs -= [ |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 618 | "//gn/standalone:extra_warnings", |
| 619 | "//gn/standalone:no_exceptions", |
| 620 | "//gn/standalone:no_rtti", |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 621 | |
| 622 | # When building with msan, libunwind itself triggers memory violations |
| 623 | # that causes msan to get stuck into an infinite loop. Just don't |
| 624 | # instrument libunwind itself. |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 625 | "//gn/standalone/sanitizers:sanitizers_cflags", |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 626 | ] |
| 627 | configs += [ |
| 628 | ":libc++config", |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 629 | "//gn/standalone/sanitizers:sanitizer_options_link_helper", |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 630 | ] |
| 631 | } |
| 632 | |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 633 | source_set("libc++abi") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 634 | visibility = _buildtools_visibility |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 635 | sources = [ |
| 636 | "libcxxabi/src/abort_message.cpp", |
| 637 | "libcxxabi/src/cxa_aux_runtime.cpp", |
| 638 | "libcxxabi/src/cxa_default_handlers.cpp", |
| 639 | "libcxxabi/src/cxa_demangle.cpp", |
| 640 | "libcxxabi/src/cxa_exception.cpp", |
| 641 | "libcxxabi/src/cxa_exception_storage.cpp", |
| 642 | "libcxxabi/src/cxa_guard.cpp", |
| 643 | "libcxxabi/src/cxa_handlers.cpp", |
| 644 | "libcxxabi/src/cxa_personality.cpp", |
| 645 | "libcxxabi/src/cxa_unexpected.cpp", |
| 646 | "libcxxabi/src/cxa_vector.cpp", |
| 647 | "libcxxabi/src/cxa_virtual.cpp", |
| 648 | "libcxxabi/src/fallback_malloc.cpp", |
| 649 | "libcxxabi/src/private_typeinfo.cpp", |
| 650 | "libcxxabi/src/stdlib_exception.cpp", |
| 651 | "libcxxabi/src/stdlib_stdexcept.cpp", |
| 652 | "libcxxabi/src/stdlib_typeinfo.cpp", |
| 653 | ] |
| 654 | |
| 655 | # On linux this seems to introduce an unwanted glibc 2.18 dependency. |
| 656 | if (is_android) { |
| 657 | sources += [ "libcxxabi/src/cxa_thread_atexit.cpp" ] |
| 658 | } |
| 659 | configs -= [ |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 660 | "//gn/standalone:extra_warnings", |
| 661 | "//gn/standalone:no_exceptions", |
| 662 | "//gn/standalone:no_rtti", |
Primiano Tucci | 5aab758 | 2017-12-07 12:22:03 +0000 | [diff] [blame] | 663 | "//gn/standalone:visibility_hidden", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 664 | ] |
| 665 | configs += [ |
| 666 | ":libc++config", |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 667 | "//gn/standalone/sanitizers:sanitizer_options_link_helper", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 668 | ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 669 | deps = [ ":libunwind" ] |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 670 | } |
| 671 | |
Primiano Tucci | 7278dea | 2017-10-31 11:50:32 +0000 | [diff] [blame] | 672 | if (custom_libcxx_is_static) { |
| 673 | libcxx_target_type = "source_set" |
| 674 | } else { |
| 675 | libcxx_target_type = "shared_library" |
| 676 | } |
| 677 | |
| 678 | target(libcxx_target_type, "libc++") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 679 | visibility = _buildtools_visibility |
| 680 | visibility += [ "../gn/standalone/libc++:*" ] |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 681 | sources = [ |
| 682 | "libcxx/src/algorithm.cpp", |
| 683 | "libcxx/src/any.cpp", |
| 684 | "libcxx/src/bind.cpp", |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 685 | "libcxx/src/charconv.cpp", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 686 | "libcxx/src/chrono.cpp", |
| 687 | "libcxx/src/condition_variable.cpp", |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 688 | "libcxx/src/condition_variable_destructor.cpp", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 689 | "libcxx/src/debug.cpp", |
| 690 | "libcxx/src/exception.cpp", |
| 691 | "libcxx/src/functional.cpp", |
| 692 | "libcxx/src/future.cpp", |
| 693 | "libcxx/src/hash.cpp", |
| 694 | "libcxx/src/ios.cpp", |
| 695 | "libcxx/src/iostream.cpp", |
| 696 | "libcxx/src/locale.cpp", |
| 697 | "libcxx/src/memory.cpp", |
| 698 | "libcxx/src/mutex.cpp", |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 699 | "libcxx/src/mutex_destructor.cpp", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 700 | "libcxx/src/new.cpp", |
| 701 | "libcxx/src/optional.cpp", |
| 702 | "libcxx/src/random.cpp", |
| 703 | "libcxx/src/regex.cpp", |
| 704 | "libcxx/src/shared_mutex.cpp", |
| 705 | "libcxx/src/stdexcept.cpp", |
| 706 | "libcxx/src/string.cpp", |
| 707 | "libcxx/src/strstream.cpp", |
| 708 | "libcxx/src/system_error.cpp", |
| 709 | "libcxx/src/thread.cpp", |
| 710 | "libcxx/src/typeinfo.cpp", |
| 711 | "libcxx/src/utility.cpp", |
| 712 | "libcxx/src/valarray.cpp", |
| 713 | "libcxx/src/variant.cpp", |
Primiano Tucci | c2eb510 | 2018-05-15 10:40:01 +0100 | [diff] [blame] | 714 | "libcxx/src/vector.cpp", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 715 | ] |
| 716 | configs -= [ |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 717 | "//gn/standalone:extra_warnings", |
| 718 | "//gn/standalone:no_exceptions", |
| 719 | "//gn/standalone:no_rtti", |
Primiano Tucci | 5aab758 | 2017-12-07 12:22:03 +0000 | [diff] [blame] | 720 | "//gn/standalone:visibility_hidden", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 721 | ] |
| 722 | configs += [ |
| 723 | ":libc++config", |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 724 | "//gn/standalone/sanitizers:sanitizer_options_link_helper", |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 725 | ] |
| 726 | defines = [ "_LIBCPP_BUILDING_LIBRARY" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 727 | if ((is_linux || is_android) && (is_asan || is_tsan || is_msan)) { |
| 728 | # In {a,t,m}san configurations, operator new and operator delete will be |
| 729 | # provided by the sanitizer runtime library. Since libc++ defines these |
| 730 | # symbols with weak linkage, and the *san runtime uses strong linkage, it |
| 731 | # should technically be OK to omit this, but it's added to be explicit. |
| 732 | defines += [ "_LIBCPP_DISABLE_NEW_DELETE_DEFINITIONS" ] |
| 733 | } |
| 734 | deps = [ ":libc++abi" ] |
Primiano Tucci | 0825bc8 | 2017-09-28 18:50:23 +0100 | [diff] [blame] | 735 | } |
| 736 | } # if (use_custom_libcxx) |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 737 | |
| 738 | config("benchmark_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 739 | visibility = _buildtools_visibility |
Primiano Tucci | 2a29ac7 | 2017-10-24 17:47:19 +0100 | [diff] [blame] | 740 | include_dirs = [ "benchmark/include" ] |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 741 | configs = [ ":test_warning_suppressions" ] |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 742 | } |
| 743 | |
| 744 | source_set("benchmark") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 745 | visibility = _buildtools_visibility |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 746 | testonly = true |
| 747 | sources = [ |
| 748 | "benchmark/include/benchmark/benchmark.h", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 749 | "benchmark/src/arraysize.h", |
| 750 | "benchmark/src/benchmark.cc", |
Primiano Tucci | 5acece0 | 2020-06-04 10:39:53 +0100 | [diff] [blame] | 751 | "benchmark/src/benchmark_api_internal.cc", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 752 | "benchmark/src/benchmark_api_internal.h", |
Primiano Tucci | 5acece0 | 2020-06-04 10:39:53 +0100 | [diff] [blame] | 753 | "benchmark/src/benchmark_name.cc", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 754 | "benchmark/src/benchmark_register.cc", |
Primiano Tucci | 5acece0 | 2020-06-04 10:39:53 +0100 | [diff] [blame] | 755 | "benchmark/src/benchmark_register.h", |
| 756 | "benchmark/src/benchmark_runner.cc", |
| 757 | "benchmark/src/benchmark_runner.h", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 758 | "benchmark/src/check.h", |
| 759 | "benchmark/src/colorprint.cc", |
| 760 | "benchmark/src/colorprint.h", |
| 761 | "benchmark/src/commandlineflags.cc", |
| 762 | "benchmark/src/commandlineflags.h", |
| 763 | "benchmark/src/complexity.cc", |
| 764 | "benchmark/src/complexity.h", |
| 765 | "benchmark/src/console_reporter.cc", |
| 766 | "benchmark/src/counter.cc", |
| 767 | "benchmark/src/counter.h", |
| 768 | "benchmark/src/csv_reporter.cc", |
| 769 | "benchmark/src/cycleclock.h", |
| 770 | "benchmark/src/internal_macros.h", |
| 771 | "benchmark/src/json_reporter.cc", |
| 772 | "benchmark/src/log.h", |
| 773 | "benchmark/src/mutex.h", |
| 774 | "benchmark/src/re.h", |
| 775 | "benchmark/src/reporter.cc", |
| 776 | "benchmark/src/sleep.cc", |
| 777 | "benchmark/src/sleep.h", |
Lalit Maganti | c99d93c | 2018-03-22 15:09:30 +0000 | [diff] [blame] | 778 | "benchmark/src/statistics.cc", |
| 779 | "benchmark/src/statistics.h", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 780 | "benchmark/src/string_util.cc", |
| 781 | "benchmark/src/string_util.h", |
| 782 | "benchmark/src/sysinfo.cc", |
Primiano Tucci | 5acece0 | 2020-06-04 10:39:53 +0100 | [diff] [blame] | 783 | "benchmark/src/thread_manager.h", |
| 784 | "benchmark/src/thread_timer.h", |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 785 | "benchmark/src/timers.cc", |
| 786 | "benchmark/src/timers.h", |
| 787 | ] |
| 788 | defines = [ "HAVE_POSIX_REGEX" ] |
| 789 | public_configs = [ ":benchmark_config" ] |
| 790 | all_dependent_configs = [ ":benchmark_config" ] |
Primiano Tucci | 5acece0 | 2020-06-04 10:39:53 +0100 | [diff] [blame] | 791 | cflags = [ "-Wno-deprecated-declarations" ] |
Primiano Tucci | 7a40e4d | 2017-12-06 09:51:09 +0000 | [diff] [blame] | 792 | configs -= [ "//gn/standalone:extra_warnings" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 793 | deps = [ "//gn:default_deps" ] |
Hector Dearman | 88a1011 | 2017-10-12 11:07:10 +0100 | [diff] [blame] | 794 | } |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 795 | |
| 796 | # On Linux/Android use libbacktrace in debug builds for better stacktraces. |
| 797 | if (is_linux || is_android) { |
| 798 | config("libbacktrace_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 799 | visibility = _buildtools_visibility |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 800 | include_dirs = [ |
| 801 | "libbacktrace_config", |
| 802 | "libbacktrace", |
| 803 | ] |
| 804 | cflags = [ |
Primiano Tucci | 3cbb10a | 2018-04-10 17:52:40 +0100 | [diff] [blame] | 805 | # We force include this config file because "config.h" is too generic as a |
| 806 | # file name and on some platforms #include "config.h" ends up colliding |
| 807 | # importing some other project's config.h. |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 808 | "-include", |
| 809 | rebase_path("libbacktrace_config/config.h", root_build_dir), |
| 810 | ] |
| 811 | } |
| 812 | |
| 813 | source_set("libbacktrace") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 814 | visibility = _buildtools_visibility |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 815 | sources = [ |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 816 | "libbacktrace/dwarf.c", |
| 817 | "libbacktrace/elf.c", |
| 818 | "libbacktrace/fileline.c", |
| 819 | "libbacktrace/mmap.c", |
| 820 | "libbacktrace/mmapio.c", |
| 821 | "libbacktrace/posix.c", |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 822 | "libbacktrace/sort.c", |
| 823 | "libbacktrace/state.c", |
| 824 | ] |
| 825 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 826 | public_configs = [ ":libbacktrace_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 827 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | 38faa6f | 2018-04-01 20:12:08 +0200 | [diff] [blame] | 828 | } |
| 829 | } |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 830 | |
| 831 | config("sqlite_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 832 | visibility = _buildtools_visibility |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 833 | include_dirs = [ "sqlite" ] |
| 834 | cflags = [ |
| 835 | "-DSQLITE_THREADSAFE=0", |
Hector Dearman | 732e788 | 2020-08-24 20:11:57 +0100 | [diff] [blame] | 836 | "-DSQLITE_DEFAULT_MEMSTATUS=0", |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 837 | "-DSQLITE_LIKE_DOESNT_MATCH_BLOBS", |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 838 | "-DSQLITE_OMIT_DEPRECATED", |
| 839 | "-DSQLITE_OMIT_SHARED_CACHE", |
| 840 | "-DHAVE_USLEEP", |
| 841 | "-DHAVE_UTIME", |
| 842 | "-DSQLITE_BYTEORDER=1234", |
| 843 | "-DSQLITE_DEFAULT_AUTOVACUUM=0", |
| 844 | "-DSQLITE_DEFAULT_MMAP_SIZE=0", |
| 845 | "-DSQLITE_CORE", |
Lalit Maganti | 8d31c73 | 2018-06-21 14:23:04 +0100 | [diff] [blame] | 846 | "-DSQLITE_TEMP_STORE=3", |
Lalit Maganti | c6347f0 | 2018-06-25 14:03:46 +0100 | [diff] [blame] | 847 | "-DSQLITE_OMIT_LOAD_EXTENSION", |
Hector Dearman | 7af3357 | 2018-09-19 17:42:25 +0100 | [diff] [blame] | 848 | "-DSQLITE_OMIT_RANDOMNESS", |
Lalit Maganti | 1e5630e | 2020-01-29 12:34:14 +0000 | [diff] [blame] | 849 | "-DSQLITE_OMIT_AUTOINIT", |
Lalit Maganti | e1fdf55 | 2020-02-06 17:20:16 +0000 | [diff] [blame] | 850 | "-DSQLITE_ENABLE_JSON1", |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 851 | ] |
| 852 | } |
| 853 | |
| 854 | source_set("sqlite") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 855 | visibility = _buildtools_visibility |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 856 | sources = [ |
| 857 | "sqlite/sqlite3.c", |
| 858 | "sqlite/sqlite3.h", |
| 859 | "sqlite/sqlite3ext.h", |
Ioannis Ilkos | 178535e | 2018-11-05 17:32:45 +0000 | [diff] [blame] | 860 | "sqlite_src/ext/misc/percentile.c", |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 861 | ] |
| 862 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 863 | public_configs = [ ":sqlite_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 864 | deps = [ "//gn:default_deps" ] |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 865 | } |
| 866 | |
| 867 | source_set("sqlite_shell") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 868 | visibility = _buildtools_visibility |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 869 | testonly = true |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 870 | sources = [ "sqlite/shell.c" ] |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 871 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 872 | deps = [ |
| 873 | ":sqlite", |
Florian Mayer | a85b8fa | 2019-07-11 11:00:48 +0100 | [diff] [blame] | 874 | "//gn:default_deps", |
Lalit Maganti | b123f26 | 2018-05-22 14:05:03 +0100 | [diff] [blame] | 875 | ] |
| 876 | } |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 877 | |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 878 | source_set("lzma") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 879 | visibility = _buildtools_visibility |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 880 | defines = [ "_7ZIP_ST" ] |
| 881 | sources = [ |
| 882 | "lzma/C/7zAlloc.c", |
| 883 | "lzma/C/7zArcIn.c", |
| 884 | "lzma/C/7zBuf.c", |
| 885 | "lzma/C/7zBuf2.c", |
| 886 | "lzma/C/7zCrc.c", |
| 887 | "lzma/C/7zCrcOpt.c", |
| 888 | "lzma/C/7zDec.c", |
| 889 | "lzma/C/7zFile.c", |
| 890 | "lzma/C/7zStream.c", |
| 891 | "lzma/C/Aes.c", |
| 892 | "lzma/C/AesOpt.c", |
| 893 | "lzma/C/Alloc.c", |
| 894 | "lzma/C/Bcj2.c", |
| 895 | "lzma/C/Bra.c", |
| 896 | "lzma/C/Bra86.c", |
| 897 | "lzma/C/BraIA64.c", |
| 898 | "lzma/C/CpuArch.c", |
| 899 | "lzma/C/Delta.c", |
| 900 | "lzma/C/LzFind.c", |
| 901 | "lzma/C/Lzma2Dec.c", |
| 902 | "lzma/C/Lzma2Enc.c", |
| 903 | "lzma/C/Lzma86Dec.c", |
| 904 | "lzma/C/Lzma86Enc.c", |
| 905 | "lzma/C/LzmaDec.c", |
| 906 | "lzma/C/LzmaEnc.c", |
| 907 | "lzma/C/LzmaLib.c", |
| 908 | "lzma/C/Ppmd7.c", |
| 909 | "lzma/C/Ppmd7Dec.c", |
| 910 | "lzma/C/Ppmd7Enc.c", |
| 911 | "lzma/C/Sha256.c", |
| 912 | "lzma/C/Sort.c", |
| 913 | "lzma/C/Xz.c", |
| 914 | "lzma/C/XzCrc64.c", |
| 915 | "lzma/C/XzCrc64Opt.c", |
| 916 | "lzma/C/XzDec.c", |
| 917 | "lzma/C/XzEnc.c", |
| 918 | "lzma/C/XzIn.c", |
| 919 | ] |
| 920 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 921 | cflags = [ |
| 922 | "-Wno-empty-body", |
| 923 | "-Wno-enum-conversion", |
| 924 | ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 925 | deps = [ "//gn:default_deps" ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 926 | } |
Florian Mayer | a2fae26 | 2018-08-31 12:10:01 -0700 | [diff] [blame] | 927 | |
Hector Dearman | e0b993f | 2019-05-24 18:48:16 +0100 | [diff] [blame] | 928 | source_set("zlib") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 929 | visibility = _buildtools_visibility |
Hector Dearman | e0b993f | 2019-05-24 18:48:16 +0100 | [diff] [blame] | 930 | sources = [ |
Primiano Tucci | a44b693 | 2020-12-01 12:46:19 +0100 | [diff] [blame] | 931 | "zlib/adler32.c", |
| 932 | "zlib/compress.c", |
| 933 | "zlib/cpu_features.c", |
| 934 | "zlib/crc32.c", |
| 935 | "zlib/deflate.c", |
| 936 | "zlib/gzclose.c", |
| 937 | "zlib/gzlib.c", |
| 938 | "zlib/gzread.c", |
| 939 | "zlib/gzwrite.c", |
| 940 | "zlib/infback.c", |
| 941 | "zlib/inffast.c", |
| 942 | "zlib/inflate.c", |
| 943 | "zlib/inftrees.c", |
| 944 | "zlib/trees.c", |
| 945 | "zlib/uncompr.c", |
| 946 | "zlib/zutil.c", |
Hector Dearman | e0b993f | 2019-05-24 18:48:16 +0100 | [diff] [blame] | 947 | ] |
| 948 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 949 | cflags = [] |
| 950 | public_configs = [ ":zlib_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 951 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | a44b693 | 2020-12-01 12:46:19 +0100 | [diff] [blame] | 952 | |
| 953 | # TODO(primiano): look into ADLER32_SIMD_SSSE3 and other SIMD optimizations |
| 954 | # (from chromium's third_party/zlib/BUILD.gn). |
| 955 | if (is_win) { |
| 956 | defines = [ "X86_WINDOWS" ] |
| 957 | } |
Hector Dearman | e0b993f | 2019-05-24 18:48:16 +0100 | [diff] [blame] | 958 | } |
| 959 | |
| 960 | config("zlib_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 961 | visibility = _buildtools_visibility |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 962 | if (!is_win) { |
| 963 | defines = [ "HAVE_HIDDEN" ] |
| 964 | } |
Hector Dearman | 554627f | 2019-06-04 17:58:22 +0100 | [diff] [blame] | 965 | cflags = [ |
| 966 | # Using -isystem instead of include_dirs (-I), so we don't need to suppress |
| 967 | # warnings coming from third-party headers. Doing so would mask warnings in |
| 968 | # our own code. |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 969 | perfetto_isystem_cflag, |
Primiano Tucci | a44b693 | 2020-12-01 12:46:19 +0100 | [diff] [blame] | 970 | rebase_path("zlib", root_build_dir), |
Hector Dearman | 554627f | 2019-06-04 17:58:22 +0100 | [diff] [blame] | 971 | ] |
Hector Dearman | e0b993f | 2019-05-24 18:48:16 +0100 | [diff] [blame] | 972 | } |
| 973 | |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 974 | source_set("libunwindstack") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 975 | visibility = _buildtools_visibility |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 976 | include_dirs = [ |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 977 | "android-unwinding/libunwindstack/include", |
| 978 | "android-unwinding/libunwindstack", |
| 979 | "android-libbase/include", |
| 980 | "android-logging/liblog/include", |
| 981 | "android-libprocinfo/include", |
Florian Mayer | f833566 | 2018-08-08 11:30:32 +0100 | [diff] [blame] | 982 | "android-core/include", |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 983 | "android-core/libcutils/include", |
Florian Mayer | ddc8ae2 | 2021-02-18 17:20:09 +0000 | [diff] [blame] | 984 | "bionic/libc/async_safe/include", |
| 985 | "bionic/libc/platform/", |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 986 | "lzma/C", |
| 987 | ] |
| 988 | deps = [ |
| 989 | ":lzma", |
Florian Mayer | a85b8fa | 2019-07-11 11:00:48 +0100 | [diff] [blame] | 990 | "//gn:default_deps", |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 991 | ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 992 | sources = [ |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 993 | "android-libbase/file.cpp", |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 994 | "android-libbase/stringprintf.cpp", |
| 995 | "android-libbase/strings.cpp", |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 996 | "android-unwinding/libunwindstack/ArmExidx.cpp", |
| 997 | "android-unwinding/libunwindstack/DwarfCfa.cpp", |
| 998 | "android-unwinding/libunwindstack/DwarfEhFrameWithHdr.cpp", |
| 999 | "android-unwinding/libunwindstack/DwarfMemory.cpp", |
| 1000 | "android-unwinding/libunwindstack/DwarfOp.cpp", |
| 1001 | "android-unwinding/libunwindstack/DwarfSection.cpp", |
| 1002 | "android-unwinding/libunwindstack/Elf.cpp", |
| 1003 | "android-unwinding/libunwindstack/ElfInterface.cpp", |
| 1004 | "android-unwinding/libunwindstack/ElfInterfaceArm.cpp", |
| 1005 | "android-unwinding/libunwindstack/Global.cpp", |
| 1006 | "android-unwinding/libunwindstack/JitDebug.cpp", |
| 1007 | "android-unwinding/libunwindstack/LocalUnwinder.cpp", |
| 1008 | "android-unwinding/libunwindstack/Log.cpp", |
| 1009 | "android-unwinding/libunwindstack/MapInfo.cpp", |
| 1010 | "android-unwinding/libunwindstack/Maps.cpp", |
| 1011 | "android-unwinding/libunwindstack/Memory.cpp", |
| 1012 | "android-unwinding/libunwindstack/Regs.cpp", |
| 1013 | "android-unwinding/libunwindstack/RegsArm.cpp", |
| 1014 | "android-unwinding/libunwindstack/RegsArm64.cpp", |
| 1015 | "android-unwinding/libunwindstack/RegsMips.cpp", |
| 1016 | "android-unwinding/libunwindstack/RegsMips64.cpp", |
| 1017 | "android-unwinding/libunwindstack/RegsX86.cpp", |
| 1018 | "android-unwinding/libunwindstack/RegsX86_64.cpp", |
| 1019 | "android-unwinding/libunwindstack/Symbols.cpp", |
| 1020 | "android-unwinding/libunwindstack/Unwinder.cpp", |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1021 | ] |
Florian Mayer | ddc8ae2 | 2021-02-18 17:20:09 +0000 | [diff] [blame] | 1022 | if (!is_android) { |
| 1023 | sources += [ |
Florian Mayer | dbeef81 | 2021-02-18 19:01:57 +0000 | [diff] [blame] | 1024 | "android-libbase/liblog_symbols.cpp", |
| 1025 | "android-libbase/logging.cpp", |
| 1026 | "android-libbase/threads.cpp", |
Florian Mayer | ddc8ae2 | 2021-02-18 17:20:09 +0000 | [diff] [blame] | 1027 | "android-logging/liblog/logger_write.cpp", |
| 1028 | "android-logging/liblog/properties.cpp", |
| 1029 | "android-unwinding/libunwindstack/MemoryMte.cpp", |
| 1030 | ] |
| 1031 | } |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1032 | if (current_cpu == "x86") { |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 1033 | sources += [ "android-unwinding/libunwindstack/AsmGetRegsX86.S" ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1034 | } else if (current_cpu == "x64") { |
Florian Mayer | e02b272 | 2020-11-12 10:50:43 +0000 | [diff] [blame] | 1035 | sources += [ "android-unwinding/libunwindstack/AsmGetRegsX86_64.S" ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1036 | } |
| 1037 | configs -= [ |
| 1038 | "//gn/standalone:extra_warnings", |
| 1039 | "//gn/standalone:c++11", |
Florian Mayer | a2fae26 | 2018-08-31 12:10:01 -0700 | [diff] [blame] | 1040 | "//gn/standalone:visibility_hidden", |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1041 | ] |
Florian Mayer | ce11bea | 2020-01-23 19:47:58 +0000 | [diff] [blame] | 1042 | cflags = [ "-DFAKE_LOG_DEVICE=1" ] |
Florian Mayer | 3943f06 | 2021-04-12 15:37:05 +0100 | [diff] [blame^] | 1043 | public_configs = [ |
| 1044 | ":libunwindstack_config", |
| 1045 | "//gn/standalone:c++17", |
| 1046 | ] |
Florian Mayer | 475bd7e | 2018-08-07 20:04:03 +0100 | [diff] [blame] | 1047 | } |
| 1048 | |
Ryan Savitski | 56bc0c6 | 2020-01-27 13:50:02 +0000 | [diff] [blame] | 1049 | config("bionic_kernel_uapi_headers") { |
| 1050 | visibility = _buildtools_visibility |
| 1051 | cflags = [ |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 1052 | perfetto_isystem_cflag, |
Ryan Savitski | 56bc0c6 | 2020-01-27 13:50:02 +0000 | [diff] [blame] | 1053 | rebase_path("bionic/libc/kernel", root_build_dir), |
| 1054 | ] |
| 1055 | } |
| 1056 | |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1057 | config("jsoncpp_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 1058 | visibility = _buildtools_visibility |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1059 | cflags = [ |
| 1060 | "-DJSON_USE_EXCEPTION=0", |
| 1061 | |
| 1062 | # Using -isystem instead of include_dirs (-I), so we don't need to suppress |
Florian Mayer | bda0c44 | 2018-09-07 10:53:55 +0100 | [diff] [blame] | 1063 | # warnings coming from third-party headers. Doing so would mask warnings in |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1064 | # our own code. |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 1065 | perfetto_isystem_cflag, |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1066 | rebase_path("jsoncpp/include", root_build_dir), |
| 1067 | ] |
| 1068 | } |
| 1069 | |
| 1070 | source_set("jsoncpp") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 1071 | visibility = _buildtools_visibility |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1072 | sources = [ |
| 1073 | "jsoncpp/src/lib_json/json_reader.cpp", |
| 1074 | "jsoncpp/src/lib_json/json_value.cpp", |
| 1075 | "jsoncpp/src/lib_json/json_writer.cpp", |
| 1076 | ] |
| 1077 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 1078 | public_configs = [ ":jsoncpp_config" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 1079 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 1080 | } |
Hector Dearman | e44ad45 | 2018-09-21 11:51:57 +0100 | [diff] [blame] | 1081 | |
| 1082 | config("linenoise_config") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 1083 | visibility = _buildtools_visibility |
Hector Dearman | e44ad45 | 2018-09-21 11:51:57 +0100 | [diff] [blame] | 1084 | cflags = [ |
| 1085 | # Using -isystem instead of include_dirs (-I), so we don't need to suppress |
| 1086 | # warnings coming from third-party headers. Doing so would mask warnings in |
| 1087 | # our own code. |
Primiano Tucci | 2f81155 | 2020-12-07 16:48:22 +0100 | [diff] [blame] | 1088 | perfetto_isystem_cflag, |
Hector Dearman | e44ad45 | 2018-09-21 11:51:57 +0100 | [diff] [blame] | 1089 | rebase_path("linenoise", root_build_dir), |
| 1090 | ] |
| 1091 | } |
| 1092 | |
| 1093 | source_set("linenoise") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 1094 | visibility = _buildtools_visibility |
Hector Dearman | e44ad45 | 2018-09-21 11:51:57 +0100 | [diff] [blame] | 1095 | sources = [ |
| 1096 | "linenoise/linenoise.c", |
| 1097 | "linenoise/linenoise.h", |
| 1098 | ] |
| 1099 | configs -= [ "//gn/standalone:extra_warnings" ] |
| 1100 | public_configs = [ ":linenoise_config" ] |
Lalit Maganti | edace41 | 2019-06-18 13:28:28 +0100 | [diff] [blame] | 1101 | cflags = [ "-Wno-tautological-unsigned-zero-compare" ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 1102 | deps = [ "//gn:default_deps" ] |
Hector Dearman | e44ad45 | 2018-09-21 11:51:57 +0100 | [diff] [blame] | 1103 | } |
Primiano Tucci | a65497e | 2018-09-26 19:53:58 +0100 | [diff] [blame] | 1104 | |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1105 | if (use_libfuzzer) { |
| 1106 | source_set("libfuzzer") { |
Primiano Tucci | 13ae72f | 2019-06-06 10:53:02 +0100 | [diff] [blame] | 1107 | visibility = _buildtools_visibility |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1108 | configs -= [ |
| 1109 | "//gn/standalone:extra_warnings", |
| 1110 | "//gn/standalone/sanitizers:sanitizers_cflags", |
| 1111 | ] |
| 1112 | sources = [ |
| 1113 | "libfuzzer/FuzzerCrossOver.cpp", |
| 1114 | "libfuzzer/FuzzerDataFlowTrace.cpp", |
| 1115 | "libfuzzer/FuzzerDriver.cpp", |
| 1116 | "libfuzzer/FuzzerExtFunctionsDlsym.cpp", |
| 1117 | "libfuzzer/FuzzerExtFunctionsWeak.cpp", |
Florian Mayer | a85b8fa | 2019-07-11 11:00:48 +0100 | [diff] [blame] | 1118 | "libfuzzer/FuzzerExtFunctionsWindows.cpp", |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1119 | "libfuzzer/FuzzerExtraCounters.cpp", |
Florian Mayer | a85b8fa | 2019-07-11 11:00:48 +0100 | [diff] [blame] | 1120 | "libfuzzer/FuzzerFork.cpp", |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1121 | "libfuzzer/FuzzerIO.cpp", |
| 1122 | "libfuzzer/FuzzerIOPosix.cpp", |
| 1123 | "libfuzzer/FuzzerIOWindows.cpp", |
| 1124 | "libfuzzer/FuzzerLoop.cpp", |
| 1125 | "libfuzzer/FuzzerMain.cpp", |
| 1126 | "libfuzzer/FuzzerMerge.cpp", |
| 1127 | "libfuzzer/FuzzerMutate.cpp", |
| 1128 | "libfuzzer/FuzzerSHA1.cpp", |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1129 | "libfuzzer/FuzzerTracePC.cpp", |
| 1130 | "libfuzzer/FuzzerUtil.cpp", |
| 1131 | "libfuzzer/FuzzerUtilDarwin.cpp", |
| 1132 | "libfuzzer/FuzzerUtilFuchsia.cpp", |
| 1133 | "libfuzzer/FuzzerUtilLinux.cpp", |
| 1134 | "libfuzzer/FuzzerUtilPosix.cpp", |
| 1135 | "libfuzzer/FuzzerUtilWindows.cpp", |
| 1136 | ] |
Primiano Tucci | 5e2dbac | 2020-01-27 10:35:27 +0000 | [diff] [blame] | 1137 | deps = [ "//gn:default_deps" ] |
Primiano Tucci | 780deea | 2018-10-11 09:28:05 +0100 | [diff] [blame] | 1138 | } |
Primiano Tucci | a65497e | 2018-09-26 19:53:58 +0100 | [diff] [blame] | 1139 | } |