3 'version_py': '../../chrome/tools/build/version.py',
4 'version_path': '../../chrome/VERSION',
5 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
6 # 'branding_dir' is set in the 'conditions' section at the bottom.
7 'msvs_use_common_release': 0,
8 'msvs_use_common_linker_extras': 0,
9 'mini_installer_internal_deps%': 0,
10 'mini_installer_official_deps%': 0,
13 '../../build/win_precompile.gypi',
19 'target_name': 'mini_installer',
23 '../chrome.gyp:chrome',
24 '../chrome.gyp:chrome_nacl_win64',
25 '../chrome.gyp:chrome_dll',
26 '../chrome.gyp:default_extensions',
27 '../chrome.gyp:setup',
31 '<(INTERMEDIATE_DIR)',
32 '<(SHARED_INTERMEDIATE_DIR)/chrome',
35 'mini_installer/appid.h',
36 'mini_installer/chrome.release',
37 'mini_installer/chrome_appid.cc',
38 'mini_installer/configuration.cc',
39 'mini_installer/configuration.h',
40 'mini_installer/decompress.cc',
41 'mini_installer/decompress.h',
42 'mini_installer/mini_installer.cc',
43 'mini_installer/mini_installer.h',
44 'mini_installer/mini_installer.ico',
45 'mini_installer/mini_installer.rc',
46 'mini_installer/mini_installer_exe_version.rc.version',
47 'mini_installer/mini_installer_resource.h',
48 'mini_installer/mini_string.cc',
49 'mini_installer/mini_string.h',
50 'mini_installer/pe_resource.cc',
51 'mini_installer/pe_resource.h',
52 '<(INTERMEDIATE_DIR)/packed_files.rc',
56 'EnableIntrinsicFunctions': 'true',
57 'BufferSecurityCheck': 'false',
58 'BasicRuntimeChecks': '0',
59 'ExceptionHandling': '0',
62 'RandomizedBaseAddress': '1',
63 'DataExecutionPrevention': '0',
64 'AdditionalLibraryDirectories': [
68 'EntryPointSymbol': 'MainEntryPoint',
69 'IgnoreAllDefaultLibraries': 'true',
70 'OptimizeForWindows98': '1',
71 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
72 'AdditionalDependencies': [
78 'AdditionalManifestFiles': [
79 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest',
87 'BasicRuntimeChecks': '0',
88 'BufferSecurityCheck': 'false',
89 'ExceptionHandling': '0',
92 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
93 'AdditionalOptions': [
104 'includes': ['../../build/internal/release_defaults.gypi'],
106 'VCCLCompilerTool': {
107 'EnableIntrinsicFunctions': 'true',
108 'BasicRuntimeChecks': '0',
109 'BufferSecurityCheck': 'false',
110 'ExceptionHandling': '0',
113 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
114 'Profile': 'false', # Conflicts with /FIXED
115 'AdditionalOptions': [
126 # Disable precompiled headers for this project, to avoid
127 # linker errors when building with VS 2008.
128 'msvs_precompiled_header': '',
129 'msvs_precompiled_source': '',
131 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
132 'msvs_disabled_warnings': [ 4267, ],
135 # Opt out the common compatibility manifest to work around
137 # TODO(yukawa): Enable the common compatibility manifest again.
138 'win_exe_compatibility_manifest': '',
142 'rule_name': 'mini_installer_version',
143 'extension': 'version',
145 'template_input_path': 'mini_installer/mini_installer_exe_version.rc.version',
148 '<(template_input_path)',
150 '<(lastchange_path)',
151 '<(branding_dir)/BRANDING',
154 '<(PRODUCT_DIR)/mini_installer_exe_version.rc',
157 'python', '<(version_py)',
158 '-f', '<(version_path)',
159 '-f', '<(lastchange_path)',
160 '-f', '<(branding_dir)/BRANDING',
161 '<(template_input_path)',
164 'process_outputs_as_sources': 1,
165 'message': 'Generating version information'
168 'rule_name': 'installer_archive',
169 'extension': 'release',
171 'create_installer_archive_py_path':
172 '../tools/build/win/create_installer_archive.py',
175 ['enable_hidpi == 1', {
177 'enable_hidpi_flag': '--enable_hidpi=1',
181 'enable_hidpi_flag': '',
184 ['enable_touch_ui == 1', {
186 'enable_touch_ui_flag': '--enable_touch_ui=1',
190 'enable_touch_ui_flag': '',
193 ['component == "shared_library"', {
195 'component_build_flag': '--component_build=1',
199 'component_build_flag': '',
202 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z',
205 ['disable_nacl==1', {
207 '<(PRODUCT_DIR)/nacl64.exe',
208 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.dll',
209 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
210 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
213 ['target_arch=="x64"', {
215 '<(PRODUCT_DIR)/nacl64.exe',
216 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
219 'target_arch_flag': '--target_arch=x64',
223 'target_arch_flag': '--target_arch=x86',
228 '<(create_installer_archive_py_path)',
229 '<(PRODUCT_DIR)/chrome.exe',
230 '<(PRODUCT_DIR)/chrome.dll',
231 '<(PRODUCT_DIR)/nacl64.exe',
232 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.dll',
233 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
234 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
235 '<(PRODUCT_DIR)/locales/en-US.pak',
236 '<(PRODUCT_DIR)/icudt.dll',
239 # Also note that chrome.packed.7z is defined as an output in a
242 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z',
243 '<(PRODUCT_DIR)/setup.ex_',
244 '<(INTERMEDIATE_DIR)/packed_files.rc',
248 '<(create_installer_archive_py_path)',
249 '--build_dir', '<(PRODUCT_DIR)',
250 '--staging_dir', '<(INTERMEDIATE_DIR)',
251 '--input_file', '<(RULE_INPUT_PATH)',
252 '--resource_file_path', '<(INTERMEDIATE_DIR)/packed_files.rc',
253 '<(enable_hidpi_flag)',
254 '<(enable_touch_ui_flag)',
255 '<(component_build_flag)',
256 '<(target_arch_flag)',
257 # TODO(sgk): may just use environment variables
258 #'--distribution=$(CHROMIUM_BUILD)',
259 '--distribution=_google_chrome',
260 # Optional arguments to generate diff installer
261 #'--last_chrome_installer=C:/Temp/base',
262 #'--setup_exe_format=DIFF',
263 #'--diff_algorithm=COURGETTE',
265 'message': 'Create installer archive',
266 'msvs_cygwin_shell': 1,
269 # TODO(mark): <(branding_dir) should be defined by the
270 # global condition block at the bottom of the file, but
271 # this doesn't work due to the following issue:
273 # http://code.google.com/p/gyp/issues/detail?id=22
275 # Remove this block once the above issue is fixed.
277 [ 'branding == "Chrome"', {
279 'branding_dir': '../app/theme/google_chrome',
281 }, { # else branding!="Chrome"
283 'branding_dir': '../app/theme/chromium',
290 ['test_isolation_mode != "noop"', {
293 'target_name': 'mini_installer_tests_run',
299 '../../build/isolate.gypi',
300 'mini_installer_tests.isolate',
303 'mini_installer_tests.isolate',
310 [ 'branding == "Chrome"', {
312 'branding_dir': '../app/theme/google_chrome',
314 }, { # else branding!="Chrome"
316 'branding_dir': '../app/theme/chromium',