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

Side by Side Diff: content/browser/tracing/tracing_resources.gyp

Issue 2321743002: Inline content_[tests/browser/android].gypi into GN build. (Closed)
Patch Set: gen file fix Created 4 years, 3 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/speech/proto/speech_proto.gyp ('k') | content/content.gyp » ('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 2013 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 {
6 'variables': {
7 'trace_viewer_src_dir': '../../../third_party/catapult/tracing',
8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing',
9 },
10 'targets': [
11 {
12 # GN version: //content/browser/tracing:generate_tracing_grd
13 'target_name': 'generate_tracing_grd',
14 'type': 'none',
15 'hard_dependency': 1,
16 'dependencies': [
17 '<(trace_viewer_src_dir)/trace_viewer.gyp:generate_about_tracing',
18 ],
19 'actions': [
20 {
21 'action_name': 'generate_tracing_grd',
22 'script_name': 'generate_trace_viewer_grd.py',
23 'input_pages': [
24 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.ht ml',
25 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.js '
26 ],
27 'inputs': [
28 '<@(_script_name)',
29 '<@(_input_pages)'
30 ],
31 'outputs': [
32 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resource s.grd'
33 ],
34 'action': [
35 'python', '<@(_script_name)', '<@(_input_pages)', '--output', '<@(_o utputs)'
36 ]
37 }
38 ]
39 },
40
41 {
42 # GN version: //content/browser/tracing:resources
43 'target_name': 'tracing_resources',
44 'type': 'none',
45 'hard_dependency': 1,
46 'dependencies': [
47 '<(trace_viewer_src_dir)/trace_viewer.gyp:generate_about_tracing',
48 'generate_tracing_grd',
49 ],
50 'variables': {
51 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing',
52 },
53 'actions': [
54 {
55 'action_name': 'tracing_resources',
56 # This can't use build/grit_action.gypi because the grd file
57 # is generated at build time, so the trick of using grit_info to get
58 # the real inputs/outputs at GYP time isn't possible.
59 'variables': {
60 'grit_cmd': ['python', '../../../tools/grit/grit.py'],
61 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing /tracing_resources.grd',
62 'grit_rc_header_format%': '',
63
64 'conditions': [
65 # These scripts can skip writing generated files if they are
66 # identical to the already existing files, which avoids further
67 # build steps, like recompilation. However, a dependency (earlier
68 # build step) having a newer timestamp than an output (later
69 # build step) confuses some build systems, so only use this on
70 # ninja, which explicitly supports this use case (gyp turns all
71 # actions into ninja restat rules).
72 ['"<(GENERATOR)"=="ninja"', {
73 'write_only_new': '1',
74 }, {
75 'write_only_new': '0',
76 }],
77 ],
78 },
79 'inputs': [
80 '<(grit_grd_file)',
81 '<(DEPTH)/tools/gritsettings/resource_ids',
82 '<!@pymod_do_main(grit_info --inputs)',
83 ],
84 'outputs': [
85 '<(grit_out_dir)/grit/tracing_resources.h',
86 '<(grit_out_dir)/tracing_resources.pak',
87 ],
88 'action': ['<@(grit_cmd)',
89 '-i', '<(grit_grd_file)', 'build',
90 '-f', '<(DEPTH)/tools/gritsettings/resource_ids',
91 '-o', '<(grit_out_dir)',
92 '--write-only-new=<(write_only_new)',
93 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)',
94 '<@(grit_defines)',
95 '<@(grit_rc_header_format)'],
96 'message': 'Generating resources from <(grit_grd_file)',
97 }
98 ],
99 'includes': [ '../../../build/grit_target.gypi' ]
100 }
101 ]
102 }
OLDNEW
« no previous file with comments | « content/browser/speech/proto/speech_proto.gyp ('k') | content/content.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698