diff options
Diffstat (limited to 'chromium/chrome/installer/mini_installer_version.gyp')
-rw-r--r-- | chromium/chrome/installer/mini_installer_version.gyp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/chromium/chrome/installer/mini_installer_version.gyp b/chromium/chrome/installer/mini_installer_version.gyp new file mode 100644 index 00000000000..29b14f54343 --- /dev/null +++ b/chromium/chrome/installer/mini_installer_version.gyp @@ -0,0 +1,53 @@ +# Copyright (c) 2016 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. + +{ + 'variables': { + 'chromium_code': 1, + 'version_py': '<(DEPTH)/build/util/version.py', + 'version_path': '../../chrome/VERSION', + 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', + 'branding_dir': '../app/theme/<(branding_path_component)', + }, + 'conditions': [ + ['OS=="win"', { + 'targets': [ + { + 'target_name': 'mini_installer_version', + 'type': 'none', + 'sources': [ + 'mini_installer/mini_installer_exe_version.rc.version', + ], + 'rules': [ + { + 'rule_name': 'mini_installer_version', + 'extension': 'version', + 'variables': { + 'template_input_path': 'mini_installer/mini_installer_exe_version.rc.version', + }, + 'inputs': [ + '<(template_input_path)', + '<(version_path)', + '<(lastchange_path)', + '<(branding_dir)/BRANDING', + ], + 'outputs': [ + '<(PRODUCT_DIR)/mini_installer_exe_version.rc', + ], + 'action': [ + 'python', '<(version_py)', + '-f', '<(version_path)', + '-f', '<(lastchange_path)', + '-f', '<(branding_dir)/BRANDING', + '<(template_input_path)', + '<@(_outputs)', + ], + 'process_outputs_as_sources': 1, + 'message': 'Generating version information' + }, + ], + }], + }], + ], +} |