OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 import("//third_party/WebKit/public/public_features.gni") | 9 import("//third_party/WebKit/public/public_features.gni") |
10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 generator = "./" + rebase_path( | 125 generator = "./" + rebase_path( |
126 get_label_info(":character_data_generator($host_toolchain)", | 126 get_label_info(":character_data_generator($host_toolchain)", |
127 "root_out_dir") + "/character_data_generator", | 127 "root_out_dir") + "/character_data_generator", |
128 root_build_dir) | 128 root_build_dir) |
129 args = [ | 129 args = [ |
130 generator, | 130 generator, |
131 rebase_path(output_file, root_build_dir), | 131 rebase_path(output_file, root_build_dir), |
132 ] | 132 ] |
133 } | 133 } |
134 | 134 |
| 135 action("instrumentation_probes") { |
| 136 script = "instrumentation/InstrumentingProbesCodeGenerator.py" |
| 137 |
| 138 input_file = "instrumentation/PlatformInstrumentation.idl" |
| 139 inputs = [ |
| 140 input_file, |
| 141 "instrumentation/InstrumentingProbesImpl_cpp.template", |
| 142 "instrumentation/InstrumentingProbesImpl_h.template", |
| 143 "instrumentation/InstrumentingAgents_h.template", |
| 144 ] |
| 145 |
| 146 outputs = [ |
| 147 "$blink_platform_output_dir/PlatformInstrumentationAgents.h", |
| 148 "$blink_platform_output_dir/PlatformInstrumentationInl.h", |
| 149 "$blink_platform_output_dir/PlatformInstrumentationImpl.cpp", |
| 150 ] |
| 151 |
| 152 args = [ |
| 153 rebase_path(inputs[0], root_build_dir), |
| 154 "--output_dir", |
| 155 rebase_path(blink_platform_output_dir, root_build_dir), |
| 156 ] |
| 157 } |
| 158 |
135 executable("character_data_generator") { | 159 executable("character_data_generator") { |
136 sources = [ | 160 sources = [ |
137 "text/CharacterPropertyDataGenerator.cpp", | 161 "text/CharacterPropertyDataGenerator.cpp", |
138 "text/CharacterPropertyDataGenerator.h", | 162 "text/CharacterPropertyDataGenerator.h", |
139 ] | 163 ] |
140 configs += [ "//third_party/WebKit/Source:config" ] | 164 configs += [ "//third_party/WebKit/Source:config" ] |
141 deps = [ | 165 deps = [ |
142 "//build/config/sanitizers:deps", | 166 "//build/config/sanitizers:deps", |
143 | 167 |
144 # Default manifest on Windows (a no-op elsewhere). | 168 # Default manifest on Windows (a no-op elsewhere). |
145 "//build/win:default_exe_manifest", | 169 "//build/win:default_exe_manifest", |
146 "//third_party/icu", | 170 "//third_party/icu", |
147 ] | 171 ] |
148 } | 172 } |
149 | 173 |
150 # This isn't strictly necessary since we can just add the deps to "platform", | 174 # This isn't strictly necessary since we can just add the deps to "platform", |
151 # but it helps to have the targets match the GYP build. | 175 # but it helps to have the targets match the GYP build. |
152 group("make_platform_generated") { | 176 group("make_platform_generated") { |
153 visibility = [] # Allow re-assignment of list. | 177 visibility = [] # Allow re-assignment of list. |
154 visibility = [ "//third_party/WebKit/Source/*" ] | 178 visibility = [ "//third_party/WebKit/Source/*" ] |
155 public_deps = [ | 179 public_deps = [ |
156 ":character_data", | 180 ":character_data", |
157 ":color_data", | 181 ":color_data", |
158 ":font_family_names", | 182 ":font_family_names", |
159 ":http_names", | 183 ":http_names", |
| 184 ":instrumentation_probes", |
160 ":runtime_enabled_features", | 185 ":runtime_enabled_features", |
161 ] | 186 ] |
162 } | 187 } |
163 | 188 |
164 import("//build/config/pch.gni") | 189 import("//build/config/pch.gni") |
165 | 190 |
166 config("blink_platform_pch") { | 191 config("blink_platform_pch") { |
167 if (enable_precompiled_headers) { | 192 if (enable_precompiled_headers) { |
168 if (is_win) { | 193 if (is_win) { |
169 # This is a string rather than a file GN knows about. It has to match | 194 # This is a string rather than a file GN knows about. It has to match |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 "MemoryCoordinator.cpp", | 281 "MemoryCoordinator.cpp", |
257 "MemoryCoordinator.h", | 282 "MemoryCoordinator.h", |
258 "PODArena.h", | 283 "PODArena.h", |
259 "PODFreeListArena.h", | 284 "PODFreeListArena.h", |
260 "PODInterval.h", | 285 "PODInterval.h", |
261 "PODIntervalTree.h", | 286 "PODIntervalTree.h", |
262 "PODRedBlackTree.h", | 287 "PODRedBlackTree.h", |
263 "PartitionAllocMemoryDumpProvider.cpp", | 288 "PartitionAllocMemoryDumpProvider.cpp", |
264 "PartitionAllocMemoryDumpProvider.h", | 289 "PartitionAllocMemoryDumpProvider.h", |
265 "PasteMode.h", | 290 "PasteMode.h", |
266 "PlatformInstrumentation.cpp", | |
267 "PlatformInstrumentation.h", | |
268 "PlatformResourceLoader.cpp", | 291 "PlatformResourceLoader.cpp", |
269 "PlatformResourceLoader.h", | 292 "PlatformResourceLoader.h", |
270 "PluginScriptForbiddenScope.cpp", | 293 "PluginScriptForbiddenScope.cpp", |
271 "PluginScriptForbiddenScope.h", | 294 "PluginScriptForbiddenScope.h", |
272 "PopupMenu.h", | 295 "PopupMenu.h", |
273 "Prerender.cpp", | 296 "Prerender.cpp", |
274 "Prerender.h", | 297 "Prerender.h", |
275 "PrerenderClient.h", | 298 "PrerenderClient.h", |
276 "ScopedOrientationChangeIndicator.cpp", | 299 "ScopedOrientationChangeIndicator.cpp", |
277 "ScopedOrientationChangeIndicator.h", | 300 "ScopedOrientationChangeIndicator.h", |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 "image-decoders/webp/WEBPImageDecoder.h", | 1067 "image-decoders/webp/WEBPImageDecoder.h", |
1045 "image-encoders/ImageEncoderUtils.cpp", | 1068 "image-encoders/ImageEncoderUtils.cpp", |
1046 "image-encoders/ImageEncoderUtils.h", | 1069 "image-encoders/ImageEncoderUtils.h", |
1047 "image-encoders/JPEGImageEncoder.cpp", | 1070 "image-encoders/JPEGImageEncoder.cpp", |
1048 "image-encoders/JPEGImageEncoder.h", | 1071 "image-encoders/JPEGImageEncoder.h", |
1049 "image-encoders/PNGImageEncoder.cpp", | 1072 "image-encoders/PNGImageEncoder.cpp", |
1050 "image-encoders/PNGImageEncoder.h", | 1073 "image-encoders/PNGImageEncoder.h", |
1051 "image-encoders/RGBAtoRGB.h", | 1074 "image-encoders/RGBAtoRGB.h", |
1052 "image-encoders/WEBPImageEncoder.cpp", | 1075 "image-encoders/WEBPImageEncoder.cpp", |
1053 "image-encoders/WEBPImageEncoder.h", | 1076 "image-encoders/WEBPImageEncoder.h", |
| 1077 "instrumentation/PlatformInstrumentation.cpp", |
| 1078 "instrumentation/PlatformInstrumentation.h", |
| 1079 "instrumentation/PlatformTraceEventsAgent.cpp", |
| 1080 "instrumentation/PlatformTraceEventsAgent.h", |
1054 "instrumentation/tracing/MemoryCacheDumpProvider.cpp", | 1081 "instrumentation/tracing/MemoryCacheDumpProvider.cpp", |
1055 "instrumentation/tracing/MemoryCacheDumpProvider.h", | 1082 "instrumentation/tracing/MemoryCacheDumpProvider.h", |
1056 "instrumentation/tracing/TraceEvent.h", | 1083 "instrumentation/tracing/TraceEvent.h", |
1057 "instrumentation/tracing/TracedValue.cpp", | 1084 "instrumentation/tracing/TracedValue.cpp", |
1058 "instrumentation/tracing/TracedValue.h", | 1085 "instrumentation/tracing/TracedValue.h", |
1059 "instrumentation/tracing/web_memory_allocator_dump.cc", | 1086 "instrumentation/tracing/web_memory_allocator_dump.cc", |
1060 "instrumentation/tracing/web_memory_allocator_dump.h", | 1087 "instrumentation/tracing/web_memory_allocator_dump.h", |
1061 "instrumentation/tracing/web_process_memory_dump.cc", | 1088 "instrumentation/tracing/web_process_memory_dump.cc", |
1062 "instrumentation/tracing/web_process_memory_dump.h", | 1089 "instrumentation/tracing/web_process_memory_dump.h", |
1063 "json/JSONParser.cpp", | 1090 "json/JSONParser.cpp", |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 | 1404 |
1378 sources -= blink_platform_neon_files | 1405 sources -= blink_platform_neon_files |
1379 sources -= blink_platform_msa_files | 1406 sources -= blink_platform_msa_files |
1380 sources -= blink_platform_sse_files | 1407 sources -= blink_platform_sse_files |
1381 | 1408 |
1382 # Add in the generated files. | 1409 # Add in the generated files. |
1383 sources += get_target_outputs(":character_data") + | 1410 sources += get_target_outputs(":character_data") + |
1384 get_target_outputs(":color_data") + | 1411 get_target_outputs(":color_data") + |
1385 get_target_outputs(":font_family_names") + | 1412 get_target_outputs(":font_family_names") + |
1386 get_target_outputs(":http_names") + | 1413 get_target_outputs(":http_names") + |
| 1414 get_target_outputs(":instrumentation_probes") + |
1387 get_target_outputs(":runtime_enabled_features") | 1415 get_target_outputs(":runtime_enabled_features") |
1388 | 1416 |
1389 configs += [ | 1417 configs += [ |
1390 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1418 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1391 "//build/config/compiler:no_size_t_to_int_warning", | 1419 "//build/config/compiler:no_size_t_to_int_warning", |
1392 ":blink_platform_pch", | 1420 ":blink_platform_pch", |
1393 "//third_party/WebKit/Source:config", | 1421 "//third_party/WebKit/Source:config", |
1394 "//third_party/WebKit/Source:non_test_config", | 1422 "//third_party/WebKit/Source:non_test_config", |
1395 ] | 1423 ] |
1396 | 1424 |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 "//third_party/WebKit/Source:config", | 2115 "//third_party/WebKit/Source:config", |
2088 "//third_party/WebKit/Source:inside_blink", | 2116 "//third_party/WebKit/Source:inside_blink", |
2089 ] | 2117 ] |
2090 | 2118 |
2091 deps = [ | 2119 deps = [ |
2092 ":test_support", | 2120 ":test_support", |
2093 "//testing/gmock", | 2121 "//testing/gmock", |
2094 "//testing/gtest", | 2122 "//testing/gtest", |
2095 ] | 2123 ] |
2096 } | 2124 } |
OLD | NEW |