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.
7 'trace_viewer_src_dir': '../../../third_party/trace-viewer',
8 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing',
12 'target_name': 'generate_tracing_grd',
15 '<(trace_viewer_src_dir)/trace_viewer.gyp:generate_about_tracing',
19 'action_name': 'generate_tracing_grd',
20 'script_name': 'generate_trace_viewer_grd.py',
22 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.html',
23 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/about_tracing.js'
30 '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.grd'
33 'python', '<@(_script_name)', '<@(_input_pages)', '--output', '<@(_outputs)'
40 'target_name': 'tracing_resources',
43 '<(trace_viewer_src_dir)/trace_viewer.gyp:generate_about_tracing',
44 'generate_tracing_grd',
47 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing',
51 'action_name': 'tracing_resources',
52 # This can't use build/grit_action.gypi because the grd file
53 # is generated at build time, so the trick of using grit_info to get
54 # the real inputs/outputs at GYP time isn't possible.
56 'grit_cmd': ['python', '../../../tools/grit/grit.py'],
57 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/content/browser/tracing/tracing_resources.grd',
61 '<!@pymod_do_main(grit_info --inputs)',
64 '<(grit_out_dir)/grit/tracing_resources.h',
65 '<(grit_out_dir)/tracing_resources.pak',
66 '<(grit_out_dir)/tracing_resources.rc',
68 'action': ['<@(grit_cmd)',
69 '-i', '<(grit_grd_file)', 'build',
70 '-f', 'GRIT_DIR/../gritsettings/resource_ids',
71 '-o', '<(grit_out_dir)',
72 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)',
74 'message': 'Generating resources from <(grit_grd_file)',
75 'msvs_cygwin_shell': 1,
78 'includes': [ '../../../build/grit_target.gypi' ]