# 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': [ 'python', '../build/cp.py', '<@(_inputs)', '<@(_outputs)', ], }, { # 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': [ '