Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Side by Side Diff: content/browser/devtools/BUILD.gn

Issue 1104973002: Fix //content/test:test_support under component builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_handler",
12 ] 11 ]
13 } 12 }
14 13
15 # In GYP: devtools_resources action in the devtools_resources target. 14 # In GYP: devtools_resources action in the devtools_resources target.
16 grit("devtools_resources") { 15 grit("devtools_resources") {
17 source = "$root_gen_dir/devtools/devtools_resources.grd" 16 source = "$root_gen_dir/devtools/devtools_resources.grd"
18 17
19 # TOOD(brettw) remove this so the output file goes into the target_gen_dir, 18 # TOOD(brettw) remove this so the output file goes into the target_gen_dir,
20 # but keep this for not for GYP compat. 19 # but keep this for not for GYP compat.
21 output_dir = "$root_gen_dir/blink" 20 output_dir = "$root_gen_dir/blink"
22 outputs = [ 21 outputs = [
23 "grit/devtools_resources.h", 22 "grit/devtools_resources.h",
24 "devtools_resources.pak", 23 "devtools_resources.pak",
25 "grit/devtools_resources_map.cc", 24 "grit/devtools_resources_map.cc",
26 "grit/devtools_resources_map.h", 25 "grit/devtools_resources_map.h",
27 ] 26 ]
28 27
29 defines = 28 defines =
30 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ] 29 [ "SHARED_INTERMEDIATE_DIR=" + rebase_path(root_gen_dir, root_build_dir) ]
31 30
32 deps = [ 31 deps = [
33 # This is the action that generates out .grd input file. 32 # This is the action that generates out .grd input file.
34 "//third_party/WebKit/public:blink_generate_devtools_grd", 33 "//third_party/WebKit/public:blink_generate_devtools_grd",
35 ] 34 ]
36 } 35 }
37 36
38 action("gen_devtools_protocol_handler") { 37 action("gen_devtools_protocol_handler") {
39 visibility = [ ":devtools_protocol_handler" ] 38 visibility = [ "//content/browser" ]
40 39
41 script = "//content/browser/devtools/protocol/" + 40 script = "//content/browser/devtools/protocol/" +
42 "devtools_protocol_handler_generator.py" 41 "devtools_protocol_handler_generator.py"
43 42
44 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" 43 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
45 browser_protocol = "browser_protocol.json" 44 browser_protocol = "browser_protocol.json"
46 inputs = [ 45 inputs = [
47 blink_protocol, 46 blink_protocol,
48 browser_protocol, 47 browser_protocol,
49 ] 48 ]
50 49
51 outputs = [ 50 outputs = [
52 "$target_gen_dir/protocol/devtools_protocol_dispatcher.cc", 51 "$target_gen_dir/protocol/devtools_protocol_dispatcher.cc",
53 "$target_gen_dir/protocol/devtools_protocol_dispatcher.h", 52 "$target_gen_dir/protocol/devtools_protocol_dispatcher.h",
54 ] 53 ]
55 54
56 args = 55 args =
57 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) 56 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir)
58 } 57 }
59
60 source_set("devtools_protocol_handler") {
61 visibility = [ ":resources" ]
62 sources = get_target_outputs(":gen_devtools_protocol_handler")
63 }
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698