Chromium Code Reviews| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| 8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
| 9 import("//third_party/WebKit/Source/platform/platform.gni") | 9 import("//third_party/WebKit/Source/platform/platform.gni") |
| 10 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 10 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 "//build/config/sanitizers:deps", | 181 "//build/config/sanitizers:deps", |
| 182 | 182 |
| 183 # Default manifest on Windows (a no-op elsewhere). | 183 # Default manifest on Windows (a no-op elsewhere). |
| 184 "//build/win:default_exe_manifest", | 184 "//build/win:default_exe_manifest", |
| 185 "//third_party/icu", | 185 "//third_party/icu", |
| 186 ] | 186 ] |
| 187 } | 187 } |
| 188 | 188 |
| 189 # Inspector protocol | 189 # Inspector protocol |
| 190 | 190 |
| 191 protocol_file = "../devtools/protocol.json" | |
| 192 | |
| 193 action("inspector_protocol_sources") { | 191 action("inspector_protocol_sources") { |
| 194 script = "inspector_protocol/CodeGenerator.py" | 192 script = "inspector_protocol/CodeGenerator.py" |
| 195 | 193 deps = [ |
| 194 ":inspector_protocol_version", | |
| 195 ] | |
| 196 sources = [ | 196 sources = [ |
| 197 "inspector_protocol/CodeGenerator.py", | 197 "inspector_protocol/CodeGenerator.py", |
| 198 "inspector_protocol/TypeBuilder_cpp.template", | |
| 199 "inspector_protocol/TypeBuilder_h.template", | |
| 198 ] | 200 ] |
| 199 inputs = [ | 201 inputs = [ |
| 200 protocol_file, | 202 "v8_inspector/js_protocol.json", |
| 201 "inspector_protocol/TypeBuilder_h.template", | |
| 202 "inspector_protocol/TypeBuilder_cpp.template", | |
| 203 ] | 203 ] |
| 204 outputs = [ | 204 outputs = [ |
| 205 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp", | 205 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp", |
| 206 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h", | 206 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h", |
| 207 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp", | 207 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp", |
| 208 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h", | 208 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h", |
| 209 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp", | 209 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp", |
| 210 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h", | 210 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h", |
| 211 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp", | 211 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp", |
| 212 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h", | 212 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h", |
| 213 ] | 213 ] |
| 214 | 214 |
| 215 args = [ | 215 args = [ |
| 216 rebase_path(protocol_file, root_build_dir), | 216 "--protocol", |
| 217 "--domains", | 217 rebase_path("v8_inspector/js_protocol.json", root_build_dir), |
| 218 "Debugger,HeapProfiler,Profiler,Runtime", | |
| 219 "--string_type", | 218 "--string_type", |
| 220 "String16", | 219 "String16", |
| 221 "--export_macro", | 220 "--export_macro", |
| 222 "PLATFORM_EXPORT", | 221 "PLATFORM_EXPORT", |
| 223 "--output_dir", | 222 "--output_dir", |
| 224 rebase_path(blink_platform_output_dir + "/v8_inspector/protocol", | 223 rebase_path(blink_platform_output_dir + "/v8_inspector/protocol", |
| 225 root_build_dir), | 224 root_build_dir), |
| 226 "--output_package", | 225 "--output_package", |
| 227 "platform/v8_inspector/protocol", | 226 "platform/v8_inspector/protocol", |
| 228 ] | 227 ] |
| 229 } | 228 } |
| 230 | 229 |
| 231 action("inspector_protocol_version") { | 230 action("inspector_protocol_version") { |
|
dgozman
2016/06/03 23:55:22
Let's rename to validate.
| |
| 232 script = "inspector_protocol/generate-inspector-protocol-version" | 231 script = "inspector_protocol/generate-inspector-protocol-version" |
| 233 | 232 |
| 234 inputs = [ | 233 inputs = [ |
| 235 protocol_file, | 234 "v8_inspector/js_protocol.json", |
| 236 ] | 235 ] |
| 237 output_file = | 236 output_file = |
| 238 "$blink_platform_output_dir/inspector_protocol/InspectorProtocolVersion.h" | 237 "$blink_platform_output_dir/v8_inspector/protocol/v8inspector.json" |
| 239 outputs = [ | 238 outputs = [ |
| 240 output_file, | 239 output_file, |
| 241 ] | 240 ] |
| 242 | 241 |
| 243 args = [ | 242 args = [ |
| 244 "-o", | 243 "--o", |
| 245 rebase_path(output_file, root_build_dir), | 244 rebase_path(output_file, root_build_dir), |
| 246 rebase_path(protocol_file, root_build_dir), | 245 rebase_path("v8_inspector/js_protocol.json", root_build_dir), |
| 247 ] | 246 ] |
| 248 } | 247 } |
| 249 | 248 |
| 250 action("inspector_injected_script") { | 249 action("inspector_injected_script") { |
| 251 script = "v8_inspector/build/xxd.py" | 250 script = "v8_inspector/build/xxd.py" |
| 252 inputs = [ | 251 inputs = [ |
| 253 "v8_inspector/InjectedScriptSource.js", | 252 "v8_inspector/InjectedScriptSource.js", |
| 254 ] | 253 ] |
| 255 outputs = [ | 254 outputs = [ |
| 256 "$blink_platform_output_dir/v8_inspector/InjectedScriptSource.h", | 255 "$blink_platform_output_dir/v8_inspector/InjectedScriptSource.h", |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 287 visibility = [ "//third_party/WebKit/Source/*" ] | 286 visibility = [ "//third_party/WebKit/Source/*" ] |
| 288 public_deps = [ | 287 public_deps = [ |
| 289 ":blink_common", | 288 ":blink_common", |
| 290 ":character_data", | 289 ":character_data", |
| 291 ":color_data", | 290 ":color_data", |
| 292 ":font_family_names", | 291 ":font_family_names", |
| 293 ":http_names", | 292 ":http_names", |
| 294 ":inspector_debugger_script", | 293 ":inspector_debugger_script", |
| 295 ":inspector_injected_script", | 294 ":inspector_injected_script", |
| 296 ":inspector_protocol_sources", | 295 ":inspector_protocol_sources", |
| 297 ":inspector_protocol_version", | |
| 298 ":runtime_enabled_features", | 296 ":runtime_enabled_features", |
| 299 ] | 297 ] |
| 300 } | 298 } |
| 301 | 299 |
| 302 # TODO(brettw) Objective C Renaming postbuild steps on Mac. | 300 # TODO(brettw) Objective C Renaming postbuild steps on Mac. |
| 303 # blink_platform target in blink_platform.gyp | 301 # blink_platform target in blink_platform.gyp |
| 304 component("platform") { | 302 component("platform") { |
| 305 visibility = [] # Allow re-assignment of list. | 303 visibility = [] # Allow re-assignment of list. |
| 306 visibility = [ | 304 visibility = [ |
| 307 "//third_party/WebKit/*", | 305 "//third_party/WebKit/*", |
| 308 "//url/mojo:url_mojom_origin_blink_cpp_sources", | 306 "//url/mojo:url_mojom_origin_blink_cpp_sources", |
| 309 "//url/mojo:url_mojom_gurl_blink_cpp_sources", | 307 "//url/mojo:url_mojom_gurl_blink_cpp_sources", |
| 310 ] | 308 ] |
| 311 output_name = "blink_platform" | 309 output_name = "blink_platform" |
| 312 | 310 |
| 313 sources = platform_files | 311 sources = platform_files |
| 314 sources -= blink_platform_neon_files | 312 sources -= blink_platform_neon_files |
| 315 sources -= blink_platform_sse_files | 313 sources -= blink_platform_sse_files |
| 316 | 314 |
| 317 # Add in the generated files. | 315 # Add in the generated files. |
| 318 sources += get_target_outputs(":character_data") + | 316 sources += get_target_outputs(":character_data") + |
| 319 get_target_outputs(":color_data") + | 317 get_target_outputs(":color_data") + |
| 320 get_target_outputs(":font_family_names") + | 318 get_target_outputs(":font_family_names") + |
| 321 get_target_outputs(":http_names") + | 319 get_target_outputs(":http_names") + |
| 322 get_target_outputs(":inspector_debugger_script") + | 320 get_target_outputs(":inspector_debugger_script") + |
| 323 get_target_outputs(":inspector_injected_script") + | 321 get_target_outputs(":inspector_injected_script") + |
| 324 get_target_outputs(":inspector_protocol_sources") + | 322 get_target_outputs(":inspector_protocol_sources") + |
| 325 get_target_outputs(":inspector_protocol_version") + | |
| 326 get_target_outputs(":runtime_enabled_features") | 323 get_target_outputs(":runtime_enabled_features") |
| 327 | 324 |
| 328 configs += [ | 325 configs += [ |
| 329 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 326 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 330 "//build/config/compiler:no_size_t_to_int_warning", | 327 "//build/config/compiler:no_size_t_to_int_warning", |
| 331 "//third_party/WebKit/Source:config", | 328 "//third_party/WebKit/Source:config", |
| 332 "//third_party/WebKit/Source:non_test_config", | 329 "//third_party/WebKit/Source:non_test_config", |
| 333 ] | 330 ] |
| 334 | 331 |
| 335 defines = [ | 332 defines = [ |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 625 } | 622 } |
| 626 | 623 |
| 627 if (current_cpu == "x86" || current_cpu == "x64") { | 624 if (current_cpu == "x86" || current_cpu == "x64") { |
| 628 source_set("blink_x86_sse") { | 625 source_set("blink_x86_sse") { |
| 629 sources = blink_platform_sse_files | 626 sources = blink_platform_sse_files |
| 630 deps = [ | 627 deps = [ |
| 631 ":blink_common", | 628 ":blink_common", |
| 632 ] | 629 ] |
| 633 } | 630 } |
| 634 } | 631 } |
| OLD | NEW |