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

Unified Diff: chrome/policy_templates.gypi

Issue 108513011: Move chrome/app/policy into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/policy.gypi ('k') | chrome/tools/build/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/policy_templates.gypi
diff --git a/chrome/policy_templates.gypi b/chrome/policy_templates.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..adf33de03bfde90796134c1fa77f38937e2a58e1
--- /dev/null
+++ b/chrome/policy_templates.gypi
@@ -0,0 +1,90 @@
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'pack_policy_templates',
+ 'type': 'none',
+ 'conditions': [
+ ['OS=="win" or OS=="mac" or OS=="linux"', {
+ 'dependencies': [
+ '../components/components.gyp:policy_templates',
+ ],
+ }],
+ ['OS=="win"', {
+ 'variables': {
+ 'version_path': '<(grit_out_dir)/app/policy/VERSION',
+ },
+ 'actions': [
+ {
+ 'action_name': 'add_version',
+ 'inputs': [
+ 'VERSION',
+ ],
+ 'outputs': [
+ '<(version_path)',
+ ],
+ 'action': [
+ 'cp',
+ '<@(_inputs)',
+ '<@(_outputs)',
+ ],
+ 'msvs_cygwin_shell': 1,
+ },
+ {
+ # Add all the templates generated at the previous step into
+ # a zip archive.
+ 'action_name': 'pack_templates',
+ 'variables': {
+ 'grit_grd_file': '../components/policy/resources/policy_templates.grd',
+ 'grit_info_cmd': [
+ 'python',
+ '<(DEPTH)/tools/grit/grit_info.py',
+ '<@(grit_defines)',
+ ],
+ 'template_files': [
+ '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grit_grd_file))',
+ ],
+ 'zip_script': '../components/policy/tools/make_policy_zip.py',
+ },
+ 'inputs': [
+ '<(version_path)',
+ '<@(template_files)',
+ '<(zip_script)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/policy_templates.zip',
+ ],
+ 'action': [
+ 'python',
+ '<(zip_script)',
+ '--output',
+ '<@(_outputs)',
+ '--basedir', '<(grit_out_dir)/app/policy',
+ # The list of files in the destination zip is derived from
+ # the list of output nodes in the following grd file.
+ # This whole trickery is necessary because we cannot pass
+ # the entire list of file names as command line arguments,
+ # because they would exceed the length limit on Windows.
+ '--grd_input',
+ '<(grit_grd_file)',
+ '--grd_strip_path_prefix',
+ 'app/policy',
+ '--extra_input',
+ 'VERSION',
+ # Module to be used to process grd_input'.
+ '--grit_info',
+ '<(DEPTH)/tools/grit/grit_info.py',
+ '<@(grit_defines)',
+ ],
+ 'message': 'Packing generated templates into <(_outputs)',
+ 'msvs_cygwin_shell': 1,
+ },
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « chrome/policy.gypi ('k') | chrome/tools/build/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698