OLD | NEW |
| (Empty) |
1 # Copyright (c) 2016 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. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 'version_py': '<(DEPTH)/build/util/version.py', | |
9 'version_path': '../../chrome/VERSION', | |
10 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', | |
11 'branding_dir': '../app/theme/<(branding_path_component)', | |
12 }, | |
13 'conditions': [ | |
14 ['OS=="win"', { | |
15 'targets': [ | |
16 { | |
17 'target_name': 'mini_installer_version', | |
18 'type': 'none', | |
19 'sources': [ | |
20 'mini_installer/mini_installer_exe_version.rc.version', | |
21 ], | |
22 'rules': [ | |
23 { | |
24 'rule_name': 'mini_installer_version', | |
25 'extension': 'version', | |
26 'variables': { | |
27 'template_input_path': 'mini_installer/mini_installer_exe_version.
rc.version', | |
28 }, | |
29 'inputs': [ | |
30 '<(template_input_path)', | |
31 '<(version_path)', | |
32 '<(lastchange_path)', | |
33 '<(branding_dir)/BRANDING', | |
34 ], | |
35 'outputs': [ | |
36 '<(PRODUCT_DIR)/mini_installer_exe_version.rc', | |
37 ], | |
38 'action': [ | |
39 'python', '<(version_py)', | |
40 '-f', '<(version_path)', | |
41 '-f', '<(lastchange_path)', | |
42 '-f', '<(branding_dir)/BRANDING', | |
43 '<(template_input_path)', | |
44 '<@(_outputs)', | |
45 ], | |
46 'process_outputs_as_sources': 1, | |
47 'message': 'Generating version information' | |
48 }, | |
49 ], | |
50 }], | |
51 }], | |
52 ], | |
53 } | |
OLD | NEW |