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',
56 '<!@pymod_do_main(grit_info <@(grit_defines) '
57 '--inputs "<(grit_grd_file)" '
58 '-f "<(DEPTH)/tools/gritsettings/resource_ids")',
61 '<(PRODUCT_DIR)/policy_templates.zip',
68 '--basedir', '<(grit_out_dir)/app/policy',
69 # The list of files in the destination zip is derived from
70 # the list of output nodes in the following grd file.
71 # This whole trickery is necessary because we cannot pass
72 # the entire list of file names as command line arguments,
73 # because they would exceed the length limit on Windows.
76 '--grd_strip_path_prefix',
80 # Module to be used to process grd_input'.
82 '<(DEPTH)/tools/grit/grit_info.py',
85 'message': 'Packing generated templates into <(_outputs)',