| 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 import("//third_party/inspector_protocol/inspector_protocol.gni") |
| 6 | 7 |
| 7 group("resources") { | 8 group("resources") { |
| 8 public_deps = [ | 9 public_deps = [ |
| 9 ":devtools_resources", | 10 ":devtools_resources", |
| 10 ] | 11 ] |
| 11 } | 12 } |
| 12 | 13 |
| 13 grit("devtools_resources") { | 14 grit("devtools_resources") { |
| 14 source = "$root_gen_dir/devtools/devtools_resources.grd" | 15 source = "$root_gen_dir/devtools/devtools_resources.grd" |
| 15 source_is_generated = true | 16 source_is_generated = true |
| (...skipping 10 matching lines...) Expand all Loading... |
| 26 | 27 |
| 27 defines = | 28 defines = |
| 28 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ] | 29 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ] |
| 29 | 30 |
| 30 deps = [ | 31 deps = [ |
| 31 # This is the action that generates out .grd input file. | 32 # This is the action that generates out .grd input file. |
| 32 "//third_party/WebKit/public:blink_generate_devtools_grd", | 33 "//third_party/WebKit/public:blink_generate_devtools_grd", |
| 33 ] | 34 ] |
| 34 } | 35 } |
| 35 | 36 |
| 37 inspector_protocol_generate("protocol_sources") { |
| 38 visibility = [ "//content/browser" ] |
| 39 deps = [ |
| 40 "//third_party/WebKit/Source/core/inspector:protocol_version", |
| 41 ] |
| 42 _blink_protocol_path = |
| 43 rebase_path("$root_gen_dir/blink/core/inspector/protocol.json", |
| 44 root_build_dir) |
| 45 |
| 46 inspector_protocol_dir = "//third_party/inspector_protocol" |
| 47 out_dir = target_gen_dir |
| 48 config_file = "protocol_config.json" |
| 49 config_values = [ "protocol.path=$_blink_protocol_path" ] |
| 50 |
| 51 inputs = [ |
| 52 "$root_gen_dir/blink/core/inspector/protocol.json", |
| 53 config_file, |
| 54 ] |
| 55 |
| 56 # These are relative to $target_gen_dir. |
| 57 outputs = [ |
| 58 "protocol/io.cc", |
| 59 "protocol/io.h", |
| 60 "protocol/forward.h", |
| 61 "protocol/protocol.cc", |
| 62 "protocol/protocol.h", |
| 63 "protocol/tracing.cc", |
| 64 "protocol/tracing.h", |
| 65 ] |
| 66 } |
| 67 |
| 36 action("gen_devtools_protocol_handler") { | 68 action("gen_devtools_protocol_handler") { |
| 37 visibility = [ "//content/browser" ] | 69 visibility = [ "//content/browser" ] |
| 38 deps = [ | 70 deps = [ |
| 39 "//third_party/WebKit/Source/core/inspector:protocol_version", | 71 "//third_party/WebKit/Source/core/inspector:protocol_version", |
| 40 ] | 72 ] |
| 41 script = "//content/browser/devtools/protocol/" + | 73 script = "//content/browser/devtools/protocol/" + |
| 42 "devtools_protocol_handler_generator.py" | 74 "devtools_protocol_handler_generator.py" |
| 43 | 75 |
| 44 blink_protocol = "$root_gen_dir/blink/core/inspector/protocol.json" | 76 blink_protocol = "$root_gen_dir/blink/core/inspector/protocol.json" |
| 45 inputs = [ | 77 inputs = [ |
| 46 blink_protocol, | 78 blink_protocol, |
| 47 ] | 79 ] |
| 48 | 80 |
| 49 outputs = [ | 81 outputs = [ |
| 50 "$target_gen_dir/protocol/devtools_protocol_dispatcher.cc", | 82 "$target_gen_dir/protocol/devtools_protocol_dispatcher.cc", |
| 51 "$target_gen_dir/protocol/devtools_protocol_dispatcher.h", | 83 "$target_gen_dir/protocol/devtools_protocol_dispatcher.h", |
| 52 ] | 84 ] |
| 53 | 85 |
| 54 args = | 86 args = |
| 55 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | 87 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) |
| 56 } | 88 } |
| OLD | NEW |