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.
8 'target_name': 'pack_policy_templates',
11 ['OS=="win" or OS=="mac" or OS=="linux"', {
13 '../components/components.gyp:policy_templates',
18 'version_path': '<(grit_out_dir)/app/policy/VERSION',
22 'action_name': 'add_version',
37 # Add all the templates generated at the previous step into
39 'action_name': 'pack_templates',
41 'grit_grd_file': '../components/policy/resources/policy_templates.grd',
44 '<(DEPTH)/tools/grit/grit_info.py',
48 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grit_grd_file))',
50 'zip_script': '../components/policy/tools/make_policy_zip.py',
58 '<(PRODUCT_DIR)/policy_templates.zip',
65 '--basedir', '<(grit_out_dir)/app/policy',
66 # The list of files in the destination zip is derived from
67 # the list of output nodes in the following grd file.
68 # This whole trickery is necessary because we cannot pass
69 # the entire list of file names as command line arguments,
70 # because they would exceed the length limit on Windows.
73 '--grd_strip_path_prefix',
77 # Module to be used to process grd_input'.
79 '<(DEPTH)/tools/grit/grit_info.py',
82 'message': 'Packing generated templates into <(_outputs)',