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

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

Issue 304223009: Do more work on content/browser GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/public/browser/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
(Empty)
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.
4
5 # In GYP: devtools_resources target.
6 group("resources") {
7 deps = [
8 ":devtools_resources",
9 ":devtools_protocol_constants",
10 ]
11 }
12
13 # In GYP: devtools_resources action in the devtools_resources target.
14 action("devtools_resources") {
15 visibility = ":resources"
16
17 # This can't use grit_rule.gni because the grd file is generated at build
18 # time, so the trick of using grit_info to get the real inputs/outputs at GYP
19 # time isn't possible.
20 script = "//tools/grit/grit.py"
21
22 grdfile = "$root_gen_dir/devtools/devtools_resources.grd"
23
24 source_prereqs = [ grdfile ] +
25 rebase_path(exec_script("//tools/grit/grit_info.py", [ "--inputs" ],
26 "list lines"),
27 ".", "//")
28
29 out_dir = "$root_gen_dir/webkit"
30 outputs = [
31 "$out_dir/grit/devtools_resources.h",
32 "$out_dir/devtools_resources.pak",
33 "$out_dir/grit/devtools_resources_map.cc",
34 "$out_dir/grit/devtools_resources_map.h",
35 ]
36
37 args = [
38 "-i", rebase_path(grdfile, root_build_dir), "build",
39 "-f", rebase_path("//tools/gritsettings/resource_ids", root_build_dir),
40 "-o", rebase_path(out_dir, root_build_dir),
41 "-D", "SHARED_INTERMEDIATE_DIR=" +
42 rebase_path(root_gen_dir, root_build_dir),
43 # TODO(GYP) grit defines
44 ]
45
46 deps = [
47 # This is the action that generates out .grd input file.
48 "//third_party/WebKit/public:blink_generate_devtools_grd",
49 ]
50 }
51
52 action("devtools_protocol_constants") {
53 visibility = ":resources"
54
55 script = "//content/public/browser/devtools_protocol_constants_generator.py"
56
57 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
58 browser_protocol = "browser_protocol.json"
59 source_prereqs = [ blink_protocol, browser_protocol ]
60
61 outputs = [
62 "$target_gen_dir/devtools_protocol_constants.cc",
63 "$target_gen_dir/devtools_protocol_constants.h",
64 ]
65
66 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [
67 rebase_path(blink_protocol, root_build_dir),
68 rebase_path(browser_protocol, root_build_dir),
69 ]
70 }
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698