| OLD | NEW |
| 1 { | 1 { |
| 2 'variables': { | 2 'variables': { |
| 3 'version_py': '../../chrome/tools/build/version.py', | 3 'version_py': '../../chrome/tools/build/version.py', |
| 4 'version_path': '../../chrome/VERSION', | 4 'version_path': '../../chrome/VERSION', |
| 5 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', | 5 'lastchange_path': '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 6 # 'branding_dir' is set in the 'conditions' section at the bottom. | 6 # 'branding_dir' is set in the 'conditions' section at the bottom. |
| 7 'msvs_use_common_release': 0, | 7 'msvs_use_common_release': 0, |
| 8 'msvs_use_common_linker_extras': 0, | 8 'msvs_use_common_linker_extras': 0, |
| 9 }, | 9 }, |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 ['OS=="win"', { | 11 ['OS=="win"', { |
| 12 'target_defaults': { |
| 13 'dependencies': [ |
| 14 '../chrome.gyp:chrome', |
| 15 '../chrome.gyp:chrome_dll', |
| 16 '../chrome.gyp:default_extensions', |
| 17 'installer.gyp:setup', |
| 18 ], |
| 19 'include_dirs': [ |
| 20 '../..', |
| 21 '<(PRODUCT_DIR)', |
| 22 '<(INTERMEDIATE_DIR)', |
| 23 '<(SHARED_INTERMEDIATE_DIR)/chrome', |
| 24 ], |
| 25 'sources': [ |
| 26 'mini_installer/appid.h', |
| 27 'mini_installer/mini_installer.cc', |
| 28 'mini_installer/mini_installer.h', |
| 29 'mini_installer/mini_installer.ico', |
| 30 'mini_installer/mini_installer.rc', |
| 31 'mini_installer/mini_installer_exe_version.rc.version', |
| 32 'mini_installer/mini_installer_resource.h', |
| 33 'mini_installer/pe_resource.cc', |
| 34 'mini_installer/pe_resource.h', |
| 35 ], |
| 36 'msvs_settings': { |
| 37 'VCCLCompilerTool': { |
| 38 'EnableIntrinsicFunctions': 'true', |
| 39 'BufferSecurityCheck': 'false', |
| 40 'BasicRuntimeChecks': '0', |
| 41 }, |
| 42 'VCLinkerTool': { |
| 43 'RandomizedBaseAddress': '1', |
| 44 'DataExecutionPrevention': '0', |
| 45 'AdditionalLibraryDirectories': [ |
| 46 '<(DEPTH)/third_party/platformsdk_win7/files/Lib', |
| 47 '<(PRODUCT_DIR)/lib' |
| 48 ], |
| 49 'DelayLoadDLLs': [], |
| 50 'EntryPointSymbol': 'MainEntryPoint', |
| 51 'GenerateMapFile': 'true', |
| 52 'IgnoreAllDefaultLibraries': 'true', |
| 53 'OptimizeForWindows98': '1', |
| 54 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 55 'AdditionalDependencies': [ |
| 56 '"$(VCInstallDir)crt\\src\\intel\\mt_lib\\memset.obj"', |
| 57 '"$(VCInstallDir)crt\\src\\intel\\mt_lib\\P4_memset.obj"', |
| 58 'shlwapi.lib', |
| 59 ], |
| 60 }, |
| 61 'VCManifestTool': { |
| 62 'AdditionalManifestFiles': [ |
| 63 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest', |
| 64 ], |
| 65 }, |
| 66 }, |
| 67 'configurations': { |
| 68 'Debug_Base': { |
| 69 'msvs_settings': { |
| 70 'VCCLCompilerTool': { |
| 71 'BasicRuntimeChecks': '0', |
| 72 'BufferSecurityCheck': 'false', |
| 73 }, |
| 74 'VCLinkerTool': { |
| 75 'AdditionalOptions': [ |
| 76 '/safeseh:no', |
| 77 '/dynamicbase:no', |
| 78 '/ignore:4199', |
| 79 '/ignore:4221', |
| 80 '/nxcompat', |
| 81 ], |
| 82 }, |
| 83 }, |
| 84 }, |
| 85 'Release_Base': { |
| 86 'includes': ['../../build/internal/release_defaults.gypi'], |
| 87 'msvs_settings': { |
| 88 'VCCLCompilerTool': { |
| 89 'EnableIntrinsicFunctions': 'true', |
| 90 'BasicRuntimeChecks': '0', |
| 91 'BufferSecurityCheck': 'false', |
| 92 }, |
| 93 'VCLinkerTool': { |
| 94 'AdditionalOptions': [ |
| 95 '/SAFESEH:NO', |
| 96 '/NXCOMPAT', |
| 97 '/DYNAMICBASE:NO', |
| 98 '/FIXED', |
| 99 ], |
| 100 }, |
| 101 }, |
| 102 }, |
| 103 }, |
| 104 'rules': [ |
| 105 { |
| 106 'rule_name': 'mini_installer_version', |
| 107 'extension': 'version', |
| 108 'variables': { |
| 109 'template_input_path': 'mini_installer/mini_installer_exe_version.
rc.version', |
| 110 }, |
| 111 'inputs': [ |
| 112 '<(template_input_path)', |
| 113 '<(version_path)', |
| 114 '<(lastchange_path)', |
| 115 '<(branding_dir)/BRANDING', |
| 116 ], |
| 117 'outputs': [ |
| 118 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc', |
| 119 ], |
| 120 'action': [ |
| 121 'python', '<(version_py)', |
| 122 '-f', '<(version_path)', |
| 123 '-f', '<(lastchange_path)', |
| 124 '-f', '<(branding_dir)/BRANDING', |
| 125 '<(template_input_path)', |
| 126 '<@(_outputs)', |
| 127 ], |
| 128 'process_outputs_as_sources': 1, |
| 129 'message': 'Generating version information' |
| 130 }, |
| 131 ], |
| 132 # TODO(mark): <(branding_dir) should be defined by the |
| 133 # global condition block at the bottom of the file, but |
| 134 # this doesn't work due to the following issue: |
| 135 # |
| 136 # http://code.google.com/p/gyp/issues/detail?id=22 |
| 137 # |
| 138 # Remove this block once the above issue is fixed. |
| 139 'conditions': [ |
| 140 [ 'branding == "Chrome"', { |
| 141 'variables': { |
| 142 'branding_dir': '../app/theme/google_chrome', |
| 143 }, |
| 144 }, { # else branding!="Chrome" |
| 145 'variables': { |
| 146 'branding_dir': '../app/theme/chromium', |
| 147 }, |
| 148 }], |
| 149 ], |
| 150 }, |
| 12 'targets': [ | 151 'targets': [ |
| 13 { | 152 { |
| 14 'target_name': 'mini_installer', | 153 'target_name': 'mini_installer', |
| 15 'type': 'executable', | 154 'type': 'executable', |
| 16 'msvs_guid': '24A5AC7C-280B-4899-9153-6BA570A081E7', | 155 'msvs_guid': '24A5AC7C-280B-4899-9153-6BA570A081E7', |
| 17 'dependencies': [ | |
| 18 '../../app/app.gyp:app_id', | |
| 19 '../chrome.gyp:chrome', | |
| 20 '../chrome.gyp:chrome_dll', | |
| 21 '../chrome.gyp:default_extensions', | |
| 22 'installer.gyp:setup', | |
| 23 ], | |
| 24 'include_dirs': [ | |
| 25 '../..', | |
| 26 '<(PRODUCT_DIR)', | |
| 27 '<(INTERMEDIATE_DIR)', | |
| 28 '<(SHARED_INTERMEDIATE_DIR)/chrome', | |
| 29 ], | |
| 30 'sources': [ | 156 'sources': [ |
| 31 'mini_installer/chrome.release', | 157 'mini_installer/chrome.release', |
| 32 'mini_installer/mini_installer.cc', | 158 'mini_installer/chrome_appid.cc', |
| 33 'mini_installer/mini_installer.h', | 159 ], |
| 34 'mini_installer/mini_installer.ico', | |
| 35 'mini_installer/mini_installer.rc', | |
| 36 'mini_installer/mini_installer_exe_version.rc.version', | |
| 37 'mini_installer/mini_installer_resource.h', | |
| 38 'mini_installer/pe_resource.cc', | |
| 39 'mini_installer/pe_resource.h', | |
| 40 ], | |
| 41 'msvs_settings': { | |
| 42 'VCCLCompilerTool': { | |
| 43 'EnableIntrinsicFunctions': 'true', | |
| 44 'BufferSecurityCheck': 'false', | |
| 45 'BasicRuntimeChecks': '0', | |
| 46 }, | |
| 47 'VCLinkerTool': { | |
| 48 'RandomizedBaseAddress': '1', | |
| 49 'DataExecutionPrevention': '0', | |
| 50 'AdditionalLibraryDirectories': [ | |
| 51 '<(DEPTH)/third_party/platformsdk_win7/files/Lib', | |
| 52 '<(PRODUCT_DIR)/lib' | |
| 53 ], | |
| 54 'DelayLoadDLLs': [], | |
| 55 'EntryPointSymbol': 'MainEntryPoint', | |
| 56 'GenerateMapFile': 'true', | |
| 57 'IgnoreAllDefaultLibraries': 'true', | |
| 58 'OptimizeForWindows98': '1', | |
| 59 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
| 60 'AdditionalDependencies': [ | |
| 61 '"$(VCInstallDir)crt\\src\\intel\\mt_lib\\memset.obj"', | |
| 62 '"$(VCInstallDir)crt\\src\\intel\\mt_lib\\P4_memset.obj"', | |
| 63 'shlwapi.lib', | |
| 64 ], | |
| 65 }, | |
| 66 'VCManifestTool': { | |
| 67 'AdditionalManifestFiles': [ | |
| 68 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest', | |
| 69 ], | |
| 70 }, | |
| 71 }, | |
| 72 'configurations': { | |
| 73 'Debug_Base': { | |
| 74 'msvs_settings': { | |
| 75 'VCCLCompilerTool': { | |
| 76 'BasicRuntimeChecks': '0', | |
| 77 }, | |
| 78 'VCLinkerTool': { | |
| 79 'AdditionalOptions': [ | |
| 80 '/safeseh:no', | |
| 81 '/dynamicbase:no', | |
| 82 '/ignore:4199', | |
| 83 '/ignore:4221', | |
| 84 '/nxcompat', | |
| 85 ], | |
| 86 }, | |
| 87 }, | |
| 88 }, | |
| 89 'Release_Base': { | |
| 90 'includes': ['../../build/internal/release_defaults.gypi'], | |
| 91 'msvs_settings': { | |
| 92 'VCCLCompilerTool': { | |
| 93 'EnableIntrinsicFunctions': 'true', | |
| 94 'BasicRuntimeChecks': '0', | |
| 95 'BufferSecurityCheck': 'false', | |
| 96 }, | |
| 97 'VCLinkerTool': { | |
| 98 'AdditionalOptions': [ | |
| 99 '/SAFESEH:NO', | |
| 100 '/NXCOMPAT', | |
| 101 '/DYNAMICBASE:NO', | |
| 102 '/FIXED', | |
| 103 ], | |
| 104 }, | |
| 105 }, | |
| 106 }, | |
| 107 }, | |
| 108 'rules': [ | 160 'rules': [ |
| 109 { | 161 { |
| 110 'rule_name': 'mini_installer_version', | |
| 111 'extension': 'version', | |
| 112 'variables': { | |
| 113 'template_input_path': 'mini_installer/mini_installer_exe_versio
n.rc.version', | |
| 114 }, | |
| 115 'inputs': [ | |
| 116 '<(template_input_path)', | |
| 117 '<(version_path)', | |
| 118 '<(lastchange_path)', | |
| 119 '<(branding_dir)/BRANDING', | |
| 120 ], | |
| 121 'outputs': [ | |
| 122 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc', | |
| 123 ], | |
| 124 'action': [ | |
| 125 'python', '<(version_py)', | |
| 126 '-f', '<(version_path)', | |
| 127 '-f', '<(lastchange_path)', | |
| 128 '-f', '<(branding_dir)/BRANDING', | |
| 129 '<(template_input_path)', | |
| 130 '<@(_outputs)', | |
| 131 ], | |
| 132 'process_outputs_as_sources': 1, | |
| 133 'message': 'Generating version information' | |
| 134 }, | |
| 135 { | |
| 136 'rule_name': 'installer_archive', | 162 'rule_name': 'installer_archive', |
| 137 'extension': 'release', | 163 'extension': 'release', |
| 164 'variables': { |
| 165 'create_installer_archive_py_path': |
| 166 '../tools/build/win/create_installer_archive.py', |
| 167 }, |
| 168 'inputs': [ |
| 169 '<(create_installer_archive_py_path)', |
| 170 '<(PRODUCT_DIR)/chrome.exe', |
| 171 '<(PRODUCT_DIR)/chrome.dll', |
| 172 '<(PRODUCT_DIR)/locales/en-US.dll', |
| 173 '<(PRODUCT_DIR)/icudt42.dll', |
| 174 ], |
| 175 'outputs': [ |
| 176 'xxx.out', |
| 177 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z', |
| 178 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z', |
| 179 '<(PRODUCT_DIR)/setup.ex_', |
| 180 '<(PRODUCT_DIR)/packed_files.txt', |
| 181 ], |
| 182 'action': [ |
| 183 'python', |
| 184 '<(create_installer_archive_py_path)', |
| 185 '--output_dir=<(PRODUCT_DIR)', |
| 186 '--input_file=<(RULE_INPUT_PATH)', |
| 187 # TODO(sgk): may just use environment variables |
| 188 #'--distribution=$(CHROMIUM_BUILD)', |
| 189 '--distribution=_google_chrome', |
| 190 # Optional arguments to generate diff installer |
| 191 #'--last_chrome_installer=C:/Temp/base', |
| 192 #'--setup_exe_format=DIFF', |
| 193 #'--diff_algorithm=COURGETTE', |
| 194 ], |
| 195 'message': 'Create installer archive' |
| 196 }, |
| 197 ], |
| 198 }, |
| 199 { |
| 200 'target_name': 'chrome_frame_mini_installer', |
| 201 'type': 'executable', |
| 202 'msvs_guid': '2F3651F5-4662-4565-A4F6-AD15B0E893AA', |
| 203 'sources': [ |
| 204 'mini_installer/chrome_frame.release', |
| 205 'mini_installer/chrome_frame_appid.cc', |
| 206 ], |
| 207 'dependencies': [ |
| 208 # Artificially make this depend on the other to avoid |
| 209 # problems with parallel packaging scripts being run. |
| 210 'mini_installer', |
| 211 ], |
| 212 'rules': [ |
| 213 { |
| 214 'rule_name': 'installer_archive', |
| 215 'extension': 'release', |
| 138 'variables': { | 216 'variables': { |
| 139 'create_installer_archive_py_path': | 217 'create_installer_archive_py_path': |
| 140 '../tools/build/win/create_installer_archive.py', | 218 '../tools/build/win/create_installer_archive.py', |
| 141 }, | 219 }, |
| 142 'inputs': [ | 220 'inputs': [ |
| 143 '<(create_installer_archive_py_path)', | 221 '<(create_installer_archive_py_path)', |
| 144 '<(PRODUCT_DIR)/chrome.exe', | 222 '<(PRODUCT_DIR)/chrome.exe', |
| 145 '<(PRODUCT_DIR)/chrome.dll', | 223 '<(PRODUCT_DIR)/chrome.dll', |
| 146 '<(PRODUCT_DIR)/locales/en-US.dll', | 224 '<(PRODUCT_DIR)/locales/en-US.dll', |
| 147 '<(PRODUCT_DIR)/icudt42.dll', | 225 '<(PRODUCT_DIR)/icudt42.dll', |
| 148 ], | 226 ], |
| 149 'outputs': [ | 227 'outputs': [ |
| 150 'xxx.out', | 228 'xxx.out', |
| 151 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z', | 229 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).7z', |
| 152 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z', | 230 '<(PRODUCT_DIR)/<(RULE_INPUT_NAME).packed.7z', |
| 153 '<(PRODUCT_DIR)/setup.ex_', | 231 '<(PRODUCT_DIR)/setup.ex_', |
| 154 '<(PRODUCT_DIR)/packed_files.txt', | 232 '<(PRODUCT_DIR)/packed_files.txt', |
| 155 ], | 233 ], |
| 156 'action': [ | 234 'action': [ |
| 157 'python', | 235 'python', |
| 158 '<(create_installer_archive_py_path)', | 236 '<(create_installer_archive_py_path)', |
| 159 '--output_dir=<(PRODUCT_DIR)', | 237 '--output_dir=<(PRODUCT_DIR)', |
| 160 '--input_file=<(RULE_INPUT_PATH)', | 238 '--input_file=<(RULE_INPUT_PATH)', |
| 161 # TODO(sgk): may just use environment variables | 239 # TODO(sgk): may just use environment variables |
| 162 #'--distribution=$(CHROMIUM_BUILD)', | 240 #'--distribution=$(CHROMIUM_BUILD)', |
| 163 '--distribution=_google_chrome', | 241 '--distribution=_google_chrome', |
| 164 » » # Optional arguments to generate diff installer | 242 '--archive_prefix=cf', |
| 243 # Optional arguments to generate diff installer |
| 165 #'--last_chrome_installer=C:/Temp/base', | 244 #'--last_chrome_installer=C:/Temp/base', |
| 166 #'--setup_exe_format=DIFF', | 245 #'--setup_exe_format=DIFF', |
| 167 #'--diff_algorithm=COURGETTE', | 246 #'--diff_algorithm=COURGETTE', |
| 168 ], | 247 ], |
| 169 'message': 'Create installer archive' | 248 'message': 'Create Chrome Frame installer archive' |
| 170 }, | 249 }, |
| 171 ], | 250 ], |
| 172 # TODO(mark): <(branding_dir) should be defined by the | |
| 173 # global condition block at the bottom of the file, but | |
| 174 # this doesn't work due to the following issue: | |
| 175 # | |
| 176 # http://code.google.com/p/gyp/issues/detail?id=22 | |
| 177 # | |
| 178 # Remove this block once the above issue is fixed. | |
| 179 'conditions': [ | |
| 180 [ 'branding == "Chrome"', { | |
| 181 'variables': { | |
| 182 'branding_dir': '../app/theme/google_chrome', | |
| 183 }, | |
| 184 }, { # else branding!="Chrome" | |
| 185 'variables': { | |
| 186 'branding_dir': '../app/theme/chromium', | |
| 187 }, | |
| 188 }], | |
| 189 ], | |
| 190 }, | 251 }, |
| 191 ], | 252 ], |
| 192 }], | 253 }], |
| 193 [ 'branding == "Chrome"', { | 254 [ 'branding == "Chrome"', { |
| 194 'variables': { | 255 'variables': { |
| 195 'branding_dir': '../app/theme/google_chrome', | 256 'branding_dir': '../app/theme/google_chrome', |
| 196 }, | 257 }, |
| 197 }, { # else branding!="Chrome" | 258 }, { # else branding!="Chrome" |
| 198 'variables': { | 259 'variables': { |
| 199 'branding_dir': '../app/theme/chromium', | 260 'branding_dir': '../app/theme/chromium', |
| 200 }, | 261 }, |
| 201 }], | 262 }], |
| 202 ], | 263 ], |
| 203 } | 264 } |
| 204 | 265 |
| 205 # Local Variables: | 266 # Local Variables: |
| 206 # tab-width:2 | 267 # tab-width:2 |
| 207 # indent-tabs-mode:nil | 268 # indent-tabs-mode:nil |
| 208 # End: | 269 # End: |
| 209 # vim: set expandtab tabstop=2 shiftwidth=2: | 270 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |