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 '<(INTERMEDIATE_DIR)/packed_files.rc',
19 'mini_installer/appid.h',
20 'mini_installer/chrome.release',
21 'mini_installer/chrome_appid.cc',
22 'mini_installer/configuration.cc',
23 'mini_installer/configuration.h',
24 'mini_installer/decompress.cc',
25 'mini_installer/decompress.h',
26 'mini_installer/exit_code.h',
27 'mini_installer/mini_installer.cc',
28 'mini_installer/mini_installer.ico',
29 'mini_installer/mini_installer.rc',
30 'mini_installer/mini_installer_constants.cc',
31 'mini_installer/mini_installer_constants.h',
32 'mini_installer/mini_installer_exe_version.rc.version',
33 'mini_installer/mini_installer_resource.h',
34 'mini_installer/mini_string.cc',
35 'mini_installer/mini_string.h',
36 'mini_installer/pe_resource.cc',
37 'mini_installer/pe_resource.h',
39 # Disable precompiled headers for this project, to avoid
40 # linker errors when building with VS 2008.
41 'msvs_precompiled_header': '',
42 'msvs_precompiled_source': '',
45 'EnableIntrinsicFunctions': 'true',
46 'BufferSecurityCheck': 'false',
47 'BasicRuntimeChecks': '0',
48 'ExceptionHandling': '0',
51 'OutputFile': '<(output_dir)/mini_installer.exe',
52 'RandomizedBaseAddress': '1',
53 'DataExecutionPrevention': '0',
54 'AdditionalLibraryDirectories': [
58 'EntryPointSymbol': 'MainEntryPoint',
59 'IgnoreAllDefaultLibraries': 'true',
60 'OptimizeForWindows98': '1',
61 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
62 'AdditionalDependencies': [
68 'AdditionalManifestFiles': [
69 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest',
77 'BasicRuntimeChecks': '0',
78 'BufferSecurityCheck': 'false',
79 'ExceptionHandling': '0',
82 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
83 'AdditionalOptions': [
94 'includes': ['../../build/internal/release_defaults.gypi'],
97 'EnableIntrinsicFunctions': 'true',
98 'BasicRuntimeChecks': '0',
99 'BufferSecurityCheck': 'false',
100 'ExceptionHandling': '0',
103 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
104 'Profile': 'false', # Conflicts with /FIXED
105 'AdditionalOptions': [
117 'rule_name': 'mini_installer_version',
118 'extension': 'version',
120 'template_input_path':
121 'mini_installer/mini_installer_exe_version.rc.version',
124 '<(template_input_path)',
126 '<(lastchange_path)',
127 '<(branding_dir)/BRANDING',
130 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc',
133 'python', '<(version_py)',
134 '-f', '<(version_path)',
135 '-f', '<(lastchange_path)',
136 '-f', '<(branding_dir)/BRANDING',
137 '<(template_input_path)',
140 'process_outputs_as_sources': 1,
141 'message': 'Generating version information'
144 'rule_name': 'installer_archive',
145 'extension': 'release',
147 'create_installer_archive_py_path':
148 '../tools/build/win/create_installer_archive.py',
151 ['enable_hidpi == 1', {
153 'enable_hidpi_flag': '--enable_hidpi=1',
157 'enable_hidpi_flag': '',
160 ['target_arch=="x64"', {
162 '<(PRODUCT_DIR)/nacl64.exe',
163 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
166 'target_arch_flag': '--target_arch=x64',
170 'target_arch_flag': '--target_arch=x86',
173 ['icu_use_data_file_flag == 0', {
175 '<(PRODUCT_DIR)/icudt.dll',
177 }, { # else icu_use_data_file_flag != 0
179 '<(PRODUCT_DIR)/icudtl.dat',
182 ['v8_use_external_startup_data == 1', {
184 '<(PRODUCT_DIR)/natives_blob.bin',
185 '<(PRODUCT_DIR)/snapshot_blob.bin',
190 '<(create_installer_archive_py_path)',
191 '<(PRODUCT_DIR)/chrome.exe',
192 '<@(chrome_dll_path)',
193 '<(PRODUCT_DIR)/nacl64.exe',
194 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
195 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
196 '<(PRODUCT_DIR)/locales/en-US.pak',
200 '<(output_dir)/<(RULE_INPUT_NAME).7z',
201 '<(output_dir)/<(RULE_INPUT_NAME).packed.7z',
202 '<(output_dir)/setup.ex_',
203 '<(INTERMEDIATE_DIR)/packed_files.rc',
207 '<(create_installer_archive_py_path)',
208 '--build_dir=<(PRODUCT_DIR)',
209 '--output_dir=<(output_dir)',
210 '--staging_dir=<(INTERMEDIATE_DIR)',
211 '--input_file=<(RULE_INPUT_PATH)',
212 '--resource_file_path=<(INTERMEDIATE_DIR)/packed_files.rc',
213 '<(enable_hidpi_flag)',
214 '<(target_arch_flag)',
215 # TODO(sgk): may just use environment variables
216 #'--distribution=$(CHROMIUM_BUILD)',
217 '--distribution=_google_chrome',
218 # Optional arguments to generate diff installer
219 #'--last_chrome_installer=C:/Temp/base',
220 #'--setup_exe_format=DIFF',
221 #'--diff_algorithm=COURGETTE',
223 '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.
234 ['branding == "Chrome"', {
236 'branding_dir': '../app/theme/google_chrome',
238 }, { # else branding!="Chrome"
240 'branding_dir': '../app/theme/chromium',
243 ['OS=="win" and buildtype=="Official"', {
244 # Optimize for size when doing an official build.