diff options
author | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 09:32:07 +0000 |
---|---|---|
committer | gfeher@chromium.org <gfeher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-07 09:32:07 +0000 |
commit | 2b0c07b00d99cbc626121095376ce1719d2eca85 (patch) | |
tree | d1e15c6da25b49646e292ceb15b465c67562f0ee /chrome/chrome.gyp | |
parent | 1fc6d8197182480b0efd952d4cdce0df6755a245 (diff) | |
download | chromium_src-2b0c07b00d99cbc626121095376ce1719d2eca85.zip chromium_src-2b0c07b00d99cbc626121095376ce1719d2eca85.tar.gz chromium_src-2b0c07b00d99cbc626121095376ce1719d2eca85.tar.bz2 |
Create a zip archive of generated policy templates on Windows
The plan is to generate this zip later on an official buildbot, and publish it with stage_build.py.
BUG=57805
TEST=none
Review URL: http://codereview.chromium.org/3564008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r-- | chrome/chrome.gyp | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index 9e3f173..fca575b 100644 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -1863,11 +1863,16 @@ # the rules of chrome_strings 'target_name': 'policy_templates', 'type': 'none', + 'variables': { + 'grd_path': 'app/policy/policy_templates.grd', + 'template_files': [ + '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grd_path))' + ] + }, 'actions': [ { 'action_name': 'policy_templates', 'variables': { - 'input_path': 'app/policy/policy_templates.grd', 'conditions': [ ['branding=="Chrome"', { # TODO(mmoss) The .grd files look for _google_chrome, but for @@ -1880,14 +1885,14 @@ ], }, 'inputs': [ - '<!@(<(grit_info_cmd) --inputs <(input_path))', + '<!@(<(grit_info_cmd) --inputs <(grd_path))', ], 'outputs': [ - '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', + '<@(template_files)' ], 'action': [ '<@(grit_cmd)', - '-i', '<(input_path)', 'build', + '-i', '<(grd_path)', 'build', '-o', '<(grit_out_dir)', '-D', '<(chrome_build)' ], @@ -1902,7 +1907,7 @@ 'action': ['-D', 'mac_bundle_id=<(mac_bundle_id)'], }], ], - 'message': 'Generating policy templates from <(input_path)', + 'message': 'Generating policy templates from <(grd_path)', }, ], 'direct_dependent_settings': { @@ -1912,6 +1917,34 @@ }, 'conditions': [ ['OS=="win"', { + 'actions': [ + { + # Add all the templates generated at the previous step into + # a zip archive. + 'action_name': 'pack_templates', + 'variables': { + 'zip_script': + 'tools/build/win/make_zip_with_relative_entries.py' + }, + 'inputs': [ + '<@(template_files)', + '<(zip_script)' + ], + 'outputs': [ + '<(PRODUCT_DIR)/policy_templates.zip' + ], + 'action': [ + 'python', + '<(zip_script)', + '<@(_outputs)', + '<(grit_out_dir)/app/policy', + '<@(template_files)' + ], + 'message': 'Packing generated templates into <(_outputs)', + } + ] + }], + ['OS=="win"', { 'dependencies': ['../build/win/system.gyp:cygwin'], }], ], |