# Copyright (c) 2011 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. { 'conditions': [ ['OS=="win" or OS=="mac" or OS=="linux"', { 'targets': [ { # policy_templates has different inputs and outputs, so it can't use # the rules of chrome_strings 'target_name': 'policy_templates', 'type': 'none', 'variables': { 'grit_grd_file': 'policy_templates.grd', 'grit_info_cmd': ['python', '<(DEPTH)/tools/grit/grit_info.py', '<@(grit_defines)'], }, 'includes': [ '../../../build/grit_target.gypi' ], 'actions': [ { 'action_name': 'policy_templates', 'includes': [ '../../../build/grit_action.gypi' ], }, ], 'conditions': [ ['OS=="win"', { 'variables': { 'version_path': '<(grit_out_dir)/app/policy/VERSION', 'template_files': [ '!@(<(apply_locales_cmd) -d \'<(input_path)/ZZLOCALE.lproj/Localizable.strings\' <(available_locales))', ], 'outputs': [ # TODO: remove this helper when we have loops in GYP '>!@(<(apply_locales_cmd) -d \'<(output_path)/ZZLOCALE.lproj/Localizable.strings\' <(available_locales))', ], 'action': [ 'cp', '-R', '<(input_path)/', '<(output_path)', ], 'message': 'Copy the Localizable.strings files to the manifest bundle', 'process_outputs_as_mac_bundle_resources': 1, }, ], }, ] }] ], # 'conditions' }