OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 # | 4 # |
5 # this file is meant to be included within a target dict to generate the | 5 # this file is meant to be included within a target dict to generate the |
6 # mini_installer, the embedder must provide the following variables: | 6 # mini_installer, the embedder must provide the following variables: |
7 # - chrome_dll_project: The target generating the main chrome DLLs. | 7 # - chrome_dll_project: The target generating the main chrome DLLs. |
8 # - chrome_dll_path: The path to the version of chrome.dll to put in the | 8 # - chrome_dll_path: The path to the version of chrome.dll to put in the |
9 # mini_installer. | 9 # mini_installer. |
10 # - The output directory for mini_installer.exe. | 10 # - The output directory for mini_installer.exe. |
11 { | 11 { |
12 'type': 'executable', | 12 'type': 'executable', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '<@(chrome_dll_project)', | 14 '<@(chrome_dll_project)', |
15 '../chrome.gyp:chrome', | 15 '../chrome.gyp:chrome', |
16 '../chrome.gyp:chrome_nacl_win64', | 16 '../chrome.gyp:chrome_nacl_win64', |
17 '../chrome.gyp:default_extensions', | 17 '../chrome.gyp:default_extensions', |
18 '../chrome.gyp:setup', | 18 '../chrome.gyp:setup', |
19 'installer_tools.gyp:test_installer_sentinel', | 19 'installer_tools.gyp:test_installer_sentinel', |
| 20 'mini_installer_version.gyp:mini_installer_version', |
20 ], | 21 ], |
21 'include_dirs': [ | 22 'include_dirs': [ |
22 '../..', | 23 '../..', |
23 '<(INTERMEDIATE_DIR)', | 24 '<(INTERMEDIATE_DIR)', |
24 '<(SHARED_INTERMEDIATE_DIR)/chrome', | 25 '<(SHARED_INTERMEDIATE_DIR)/chrome', |
25 ], | 26 ], |
26 'sources': [ | 27 'sources': [ |
27 '<(INTERMEDIATE_DIR)/packed_files.rc', | 28 '<(INTERMEDIATE_DIR)/packed_files.rc', |
| 29 '<(PRODUCT_DIR)/mini_installer_exe_version.rc', |
28 'mini_installer/appid.h', | 30 'mini_installer/appid.h', |
29 'mini_installer/chrome.release', | 31 'mini_installer/chrome.release', |
30 'mini_installer/chrome_appid.cc', | 32 'mini_installer/chrome_appid.cc', |
31 'mini_installer/configuration.cc', | 33 'mini_installer/configuration.cc', |
32 'mini_installer/configuration.h', | 34 'mini_installer/configuration.h', |
33 'mini_installer/decompress.cc', | 35 'mini_installer/decompress.cc', |
34 'mini_installer/decompress.h', | 36 'mini_installer/decompress.h', |
35 'mini_installer/exit_code.h', | 37 'mini_installer/exit_code.h', |
36 'mini_installer/mini_installer.cc', | 38 'mini_installer/mini_installer.cc', |
37 'mini_installer/mini_installer.ico', | 39 'mini_installer/mini_installer.ico', |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 130 |
129 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 131 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
130 'msvs_disabled_warnings': [ 4267, ], | 132 'msvs_disabled_warnings': [ 4267, ], |
131 | 133 |
132 'variables': { | 134 'variables': { |
133 # Opt out the common compatibility manifest to work around | 135 # Opt out the common compatibility manifest to work around |
134 # crbug.com/272660. | 136 # crbug.com/272660. |
135 # TODO(yukawa): Enable the common compatibility manifest again. | 137 # TODO(yukawa): Enable the common compatibility manifest again. |
136 'win_exe_compatibility_manifest': '', | 138 'win_exe_compatibility_manifest': '', |
137 }, | 139 }, |
138 'rules': [ | |
139 { | |
140 'rule_name': 'mini_installer_version', | |
141 'extension': 'version', | |
142 'variables': { | |
143 'template_input_path': 'mini_installer/mini_installer_exe_version.rc.ver
sion', | |
144 }, | |
145 'inputs': [ | |
146 '<(template_input_path)', | |
147 '<(version_path)', | |
148 '<(lastchange_path)', | |
149 '<(branding_dir)/BRANDING', | |
150 ], | |
151 'outputs': [ | |
152 '<(PRODUCT_DIR)/mini_installer_exe_version.rc', | |
153 ], | |
154 'action': [ | |
155 'python', '<(version_py)', | |
156 '-f', '<(version_path)', | |
157 '-f', '<(lastchange_path)', | |
158 '-f', '<(branding_dir)/BRANDING', | |
159 '<(template_input_path)', | |
160 '<@(_outputs)', | |
161 ], | |
162 'process_outputs_as_sources': 1, | |
163 'message': 'Generating version information' | |
164 }, | |
165 ], | |
166 'actions': [ | 140 'actions': [ |
167 { | 141 { |
168 'action_name': 'installer_archive', | 142 'action_name': 'installer_archive', |
169 'variables': { | 143 'variables': { |
170 'create_installer_archive_py_path': | 144 'create_installer_archive_py_path': |
171 '../tools/build/win/create_installer_archive.py', | 145 '../tools/build/win/create_installer_archive.py', |
172 }, | 146 }, |
173 'conditions': [ | 147 'conditions': [ |
174 ['enable_hidpi == 1', { | 148 ['enable_hidpi == 1', { |
175 'variables': { | 149 'variables': { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 'message': 'Create installer archive', | 246 'message': 'Create installer archive', |
273 }, | 247 }, |
274 ], | 248 ], |
275 'conditions': [ | 249 'conditions': [ |
276 ['OS=="win" and buildtype=="Official"', { | 250 ['OS=="win" and buildtype=="Official"', { |
277 # Optimize for size when doing an official build. | 251 # Optimize for size when doing an official build. |
278 'optimize' :'size', | 252 'optimize' :'size', |
279 }], | 253 }], |
280 ], | 254 ], |
281 } | 255 } |
OLD | NEW |