| 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 | 6 |
| 7 # In GYP: devtools_resources target. | 7 # In GYP: devtools_resources target. |
| 8 group("resources") { | 8 group("resources") { |
| 9 deps = [ | 9 deps = [ |
| 10 ":devtools_resources", | 10 ":devtools_resources", |
| 11 ":devtools_protocol_constants", | 11 ":devtools_protocol_constants", |
| 12 ":devtools_protocol_handler", | 12 ":devtools_protocol_handler", |
| 13 ] | 13 ] |
| 14 } | 14 } |
| 15 | 15 |
| 16 # In GYP: devtools_resources action in the devtools_resources target. | 16 # In GYP: devtools_resources action in the devtools_resources target. |
| 17 grit("devtools_resources") { | 17 grit("devtools_resources") { |
| 18 source = "$root_gen_dir/devtools/devtools_resources.grd" | 18 source = "$root_gen_dir/devtools/devtools_resources.grd" |
| 19 | 19 |
| 20 # TOOD(brettw) remove this so the output file goes into the target_gen_dir, | 20 # TOOD(brettw) remove this so the output file goes into the target_gen_dir, |
| 21 # but keep this for not for GYP compat. | 21 # but keep this for not for GYP compat. |
| 22 output_dir = "$root_gen_dir/webkit" | 22 output_dir = "$root_gen_dir/webkit" |
| 23 outputs = [ | 23 outputs = [ |
| 24 "grit/devtools_resources.h", | 24 "grit/devtools_resources.h", |
| 25 "devtools_resources.pak", | 25 "devtools_resources.pak", |
| 26 "grit/devtools_resources_map.cc", | 26 "grit/devtools_resources_map.cc", |
| 27 "grit/devtools_resources_map.h", | 27 "grit/devtools_resources_map.h", |
| 28 ] | 28 ] |
| 29 | 29 |
| 30 defines = [ | 30 defines = |
| 31 "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir), | 31 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ] |
| 32 ] | |
| 33 | 32 |
| 34 deps = [ | 33 deps = [ |
| 35 # This is the action that generates out .grd input file. | 34 # This is the action that generates out .grd input file. |
| 36 "//third_party/WebKit/public:blink_generate_devtools_grd", | 35 "//third_party/WebKit/public:blink_generate_devtools_grd", |
| 37 ] | 36 ] |
| 38 } | 37 } |
| 39 | 38 |
| 40 action("gen_devtools_protocol_constants") { | 39 action("gen_devtools_protocol_constants") { |
| 41 visibility = [ ":devtools_protocol_constants" ] | 40 visibility = [ ":devtools_protocol_constants" ] |
| 42 | 41 |
| 43 script = "//content/public/browser/devtools_protocol_constants_generator.py" | 42 script = "//content/public/browser/devtools_protocol_constants_generator.py" |
| 44 | 43 |
| 45 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" | 44 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" |
| 46 browser_protocol = "browser_protocol.json" | 45 browser_protocol = "browser_protocol.json" |
| 47 inputs = [ blink_protocol, browser_protocol ] | 46 inputs = [ |
| 47 blink_protocol, |
| 48 browser_protocol, |
| 49 ] |
| 48 | 50 |
| 49 outputs = [ | 51 outputs = [ |
| 50 "$target_gen_dir/devtools_protocol_constants.cc", | 52 "$target_gen_dir/devtools_protocol_constants.cc", |
| 51 "$target_gen_dir/devtools_protocol_constants.h", | 53 "$target_gen_dir/devtools_protocol_constants.h", |
| 52 ] | 54 ] |
| 53 | 55 |
| 54 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [ | 56 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [ |
| 55 rebase_path(blink_protocol, root_build_dir), | 57 rebase_path(blink_protocol, root_build_dir), |
| 56 rebase_path(browser_protocol, root_build_dir), | 58 rebase_path(browser_protocol, root_build_dir), |
| 57 ] | 59 ] |
| 58 } | 60 } |
| 59 | 61 |
| 60 action("gen_devtools_protocol_handler") { | 62 action("gen_devtools_protocol_handler") { |
| 61 visibility = [ ":devtools_protocol_handler" ] | 63 visibility = [ ":devtools_protocol_handler" ] |
| 62 | 64 |
| 63 script = "//content/browser/devtools/protocol/" + | 65 script = "//content/browser/devtools/protocol/" + |
| 64 "devtools_protocol_handler_generator.py" | 66 "devtools_protocol_handler_generator.py" |
| 65 | 67 |
| 66 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" | 68 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" |
| 67 browser_protocol = "browser_protocol.json" | 69 browser_protocol = "browser_protocol.json" |
| 68 inputs = [ blink_protocol, browser_protocol ] | 70 inputs = [ |
| 71 blink_protocol, |
| 72 browser_protocol, |
| 73 ] |
| 69 | 74 |
| 70 outputs = [ | 75 outputs = [ |
| 71 "$target_gen_dir/protocol/devtools_protocol_handler_impl.cc", | 76 "$target_gen_dir/protocol/devtools_protocol_handler_impl.cc", |
| 72 "$target_gen_dir/protocol/devtools_protocol_handler_impl.h", | 77 "$target_gen_dir/protocol/devtools_protocol_handler_impl.h", |
| 73 ] | 78 ] |
| 74 | 79 |
| 75 args = rebase_path(inputs, root_build_dir) + | 80 args = |
| 76 rebase_path(outputs, root_build_dir) | 81 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) |
| 77 } | 82 } |
| 78 | 83 |
| 79 source_set("devtools_protocol_constants") { | 84 source_set("devtools_protocol_constants") { |
| 80 visibility = [ ":resources" ] | 85 visibility = [ ":resources" ] |
| 81 sources = get_target_outputs(":gen_devtools_protocol_constants") | 86 sources = get_target_outputs(":gen_devtools_protocol_constants") |
| 82 } | 87 } |
| 83 | 88 |
| 84 source_set("devtools_protocol_handler") { | 89 source_set("devtools_protocol_handler") { |
| 85 visibility = [ ":resources" ] | 90 visibility = [ ":resources" ] |
| 86 sources = get_target_outputs(":gen_devtools_protocol_handler") | 91 sources = get_target_outputs(":gen_devtools_protocol_handler") |
| 87 } | 92 } |
| OLD | NEW |