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
3 # found in the LICENSE file.
6 '<@(chrome_dll_project)',
7 '../chrome.gyp:chrome',
8 '../chrome.gyp:chrome_nacl_win64',
9 '../chrome.gyp:default_extensions',
10 '../chrome.gyp:setup',
14 '<(INTERMEDIATE_DIR)',
15 '<(SHARED_INTERMEDIATE_DIR)/chrome',
18 'mini_installer/appid.h',
19 'mini_installer/chrome.release',
20 'mini_installer/chrome_appid.cc',
21 'mini_installer/configuration.cc',
22 'mini_installer/configuration.h',
23 'mini_installer/decompress.cc',
24 'mini_installer/decompress.h',
25 'mini_installer/mini_installer.cc',
26 'mini_installer/mini_installer.h',
27 'mini_installer/mini_installer.ico',
28 'mini_installer/mini_installer.rc',
29 'mini_installer/mini_installer_exe_version.rc.version',
30 'mini_installer/mini_installer_resource.h',
31 'mini_installer/mini_string.cc',
32 'mini_installer/mini_string.h',
33 'mini_installer/pe_resource.cc',
34 'mini_installer/pe_resource.h',
35 '<(INTERMEDIATE_DIR)/packed_files.rc',
37 # Disable precompiled headers for this project, to avoid
38 # linker errors when building with VS 2008.
39 'msvs_precompiled_header': '',
40 'msvs_precompiled_source': '',
43 'EnableIntrinsicFunctions': 'true',
44 'BufferSecurityCheck': 'false',
45 'BasicRuntimeChecks': '0',
46 'ExceptionHandling': '0',
49 'OutputFile': '<(output_dir)/mini_installer.exe',
50 'RandomizedBaseAddress': '1',
51 'DataExecutionPrevention': '0',
52 'AdditionalLibraryDirectories': [
56 'EntryPointSymbol': 'MainEntryPoint',
57 'IgnoreAllDefaultLibraries': 'true',
58 'OptimizeForWindows98': '1',
59 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
60 'AdditionalDependencies': [
65 ['MSVS_VERSION=="2005e"', {
66 'AdditionalDependencies': [ # Must explicitly link in VC2005E
74 'AdditionalManifestFiles': [
75 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest',
83 'BasicRuntimeChecks': '0',
84 'BufferSecurityCheck': 'false',
85 'ExceptionHandling': '0',
88 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
89 'AdditionalOptions': [
100 'includes': ['../../build/internal/release_defaults.gypi'],
102 'VCCLCompilerTool': {
103 'EnableIntrinsicFunctions': 'true',
104 'BasicRuntimeChecks': '0',
105 'BufferSecurityCheck': 'false',
106 'ExceptionHandling': '0',
109 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
110 'Profile': 'false', # Conflicts with /FIXED
111 'AdditionalOptions': [
123 'rule_name': 'mini_installer_version',
124 'extension': 'version',
126 'template_input_path':
127 'mini_installer/mini_installer_exe_version.rc.version',
130 '<(template_input_path)',
132 '<(lastchange_path)',
133 '<(branding_dir)/BRANDING',
136 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc',
139 'python', '<(version_py)',
140 '-f', '<(version_path)',
141 '-f', '<(lastchange_path)',
142 '-f', '<(branding_dir)/BRANDING',
143 '<(template_input_path)',
146 'process_outputs_as_sources': 1,
147 'message': 'Generating version information'
150 'rule_name': 'installer_archive',
151 'extension': 'release',
153 'create_installer_archive_py_path':
154 '../tools/build/win/create_installer_archive.py',
157 ['enable_hidpi == 1', {
159 'enable_hidpi_flag': '--enable_hidpi=1',
163 'enable_hidpi_flag': '',
166 ['target_arch=="x64"', {
168 '<(PRODUCT_DIR)/nacl64.exe',
169 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
172 'target_arch_flag': '--target_arch=x64',
176 'target_arch_flag': '--target_arch=x86',
179 ['icu_use_data_file_flag == 0', {
181 '<(PRODUCT_DIR)/icudt.dll',
183 }, { # else icu_use_data_file_flag != 0
185 '<(PRODUCT_DIR)/icudtl.dat',
190 '<(create_installer_archive_py_path)',
191 '<(PRODUCT_DIR)/chrome.exe',
192 '<@(chrome_dll_path)',
193 '<(PRODUCT_DIR)/nacl64.exe',
194 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.dll',
195 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
196 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
197 '<(PRODUCT_DIR)/locales/en-US.pak',
201 '<(output_dir)/<(RULE_INPUT_NAME).7z',
202 '<(output_dir)/<(RULE_INPUT_NAME).packed.7z',
203 '<(output_dir)/setup.ex_',
204 '<(INTERMEDIATE_DIR)/packed_files.rc',
208 '<(create_installer_archive_py_path)',
209 '--build_dir=<(PRODUCT_DIR)',
210 '--output_dir=<(output_dir)',
211 '--staging_dir=<(INTERMEDIATE_DIR)',
212 '--input_file=<(RULE_INPUT_PATH)',
213 '--resource_file_path=<(INTERMEDIATE_DIR)/packed_files.rc',
214 '<(enable_hidpi_flag)',
215 '<(target_arch_flag)',
216 # TODO(sgk): may just use environment variables
217 #'--distribution=$(CHROMIUM_BUILD)',
218 '--distribution=_google_chrome',
219 # Optional arguments to generate diff installer
220 #'--last_chrome_installer=C:/Temp/base',
221 #'--setup_exe_format=DIFF',
222 #'--diff_algorithm=COURGETTE',
224 'message': 'Create installer archive',
227 # TODO(mark): <(branding_dir) should be defined by the
228 # global condition block at the bottom of the file, but
229 # this doesn't work due to the following issue:
231 # http://code.google.com/p/gyp/issues/detail?id=22
233 # Remove this block once the above issue is fixed.
235 [ 'branding == "Chrome"', {
237 'branding_dir': '../app/theme/google_chrome',
239 }, { # else branding!="Chrome"
241 'branding_dir': '../app/theme/chromium',