| 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', |
| 28 'mini_installer/appid.h', | 29 'mini_installer/appid.h', |
| 29 'mini_installer/chrome.release', | 30 'mini_installer/chrome.release', |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 129 |
| 129 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 130 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 130 'msvs_disabled_warnings': [ 4267, ], | 131 'msvs_disabled_warnings': [ 4267, ], |
| 131 | 132 |
| 132 'variables': { | 133 'variables': { |
| 133 # Opt out the common compatibility manifest to work around | 134 # Opt out the common compatibility manifest to work around |
| 134 # crbug.com/272660. | 135 # crbug.com/272660. |
| 135 # TODO(yukawa): Enable the common compatibility manifest again. | 136 # TODO(yukawa): Enable the common compatibility manifest again. |
| 136 'win_exe_compatibility_manifest': '', | 137 'win_exe_compatibility_manifest': '', |
| 137 }, | 138 }, |
| 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': [ | 139 'actions': [ |
| 167 { | 140 { |
| 168 'action_name': 'installer_archive', | 141 'action_name': 'installer_archive', |
| 169 'variables': { | 142 'variables': { |
| 170 'create_installer_archive_py_path': | 143 'create_installer_archive_py_path': |
| 171 '../tools/build/win/create_installer_archive.py', | 144 '../tools/build/win/create_installer_archive.py', |
| 172 }, | 145 }, |
| 173 'conditions': [ | 146 'conditions': [ |
| 174 ['enable_hidpi == 1', { | 147 ['enable_hidpi == 1', { |
| 175 'variables': { | 148 'variables': { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 'message': 'Create installer archive', | 245 'message': 'Create installer archive', |
| 273 }, | 246 }, |
| 274 ], | 247 ], |
| 275 'conditions': [ | 248 'conditions': [ |
| 276 ['OS=="win" and buildtype=="Official"', { | 249 ['OS=="win" and buildtype=="Official"', { |
| 277 # Optimize for size when doing an official build. | 250 # Optimize for size when doing an official build. |
| 278 'optimize' :'size', | 251 'optimize' :'size', |
| 279 }], | 252 }], |
| 280 ], | 253 ], |
| 281 } | 254 } |
| OLD | NEW |