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
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
7 # In GYP: devtools_resources target.
10 ":devtools_resources",
14 # In GYP: devtools_resources action in the devtools_resources target.
15 grit("devtools_resources") {
16 source = "$root_gen_dir/devtools/devtools_resources.grd"
18 # TOOD(brettw) remove this so the output file goes into the target_gen_dir,
19 # but keep this for not for GYP compat.
20 output_dir = "$root_gen_dir/blink"
22 "grit/devtools_resources.h",
23 "devtools_resources.pak",
24 "grit/devtools_resources_map.cc",
25 "grit/devtools_resources_map.h",
29 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ]
32 # This is the action that generates out .grd input file.
33 "//third_party/WebKit/public:blink_generate_devtools_grd",
37 action("gen_devtools_protocol_handler") {
38 visibility = [ "//content/browser" ]
40 script = "//content/browser/devtools/protocol/" +
41 "devtools_protocol_handler_generator.py"
43 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
44 browser_protocol = "browser_protocol.json"
51 "$target_gen_dir/protocol/devtools_protocol_dispatcher.cc",
52 "$target_gen_dir/protocol/devtools_protocol_dispatcher.h",
56 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir)