Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 { | |
|
robertshield
2011/11/28 01:16:38
license header needed.
Sigurður Ásgeirsson
2011/11/28 15:02:10
Done.
| |
| 2 'dependencies': [ | |
| 3 '<(chrome_dll_project)', | |
| 4 '../chrome.gyp:chrome', | |
| 5 '../chrome.gyp:chrome_nacl_win64', | |
| 6 '../chrome.gyp:default_extensions', | |
| 7 '../chrome.gyp:setup', | |
| 8 ], | |
| 9 'include_dirs': [ | |
| 10 '../..', | |
| 11 '<(INTERMEDIATE_DIR)', | |
| 12 '<(SHARED_INTERMEDIATE_DIR)/chrome', | |
| 13 ], | |
| 14 'sources': [ | |
| 15 'mini_installer/appid.h', | |
| 16 'mini_installer/chrome.release', | |
| 17 'mini_installer/chrome_appid.cc', | |
| 18 'mini_installer/configuration.cc', | |
| 19 'mini_installer/configuration.h', | |
| 20 'mini_installer/decompress.cc', | |
| 21 'mini_installer/decompress.h', | |
| 22 'mini_installer/mini_installer.cc', | |
| 23 'mini_installer/mini_installer.h', | |
| 24 'mini_installer/mini_installer.ico', | |
| 25 'mini_installer/mini_installer.rc', | |
| 26 'mini_installer/mini_installer_exe_version.rc.version', | |
| 27 'mini_installer/mini_installer_resource.h', | |
| 28 'mini_installer/mini_string.cc', | |
| 29 'mini_installer/mini_string.h', | |
| 30 'mini_installer/pe_resource.cc', | |
| 31 'mini_installer/pe_resource.h', | |
| 32 '<(INTERMEDIATE_DIR)/packed_files.rc', | |
| 33 ], | |
| 34 # Disable precompiled headers for this project, to avoid | |
| 35 # linker errors when building with VS 2008. | |
| 36 'msvs_precompiled_header': '', | |
| 37 'msvs_precompiled_source': '', | |
| 38 'msvs_settings': { | |
| 39 'VCCLCompilerTool': { | |
| 40 'EnableIntrinsicFunctions': 'true', | |
| 41 'BufferSecurityCheck': 'false', | |
| 42 'BasicRuntimeChecks': '0', | |
| 43 'ExceptionHandling': '0', | |
| 44 }, | |
| 45 'VCLinkerTool': { | |
| 46 'OutputFile': '<(output_dir)/mini_installer.exe', | |
| 47 'RandomizedBaseAddress': '1', | |
| 48 'DataExecutionPrevention': '0', | |
| 49 'AdditionalLibraryDirectories': [ | |
| 50 '<(DEPTH)/third_party/platformsdk_win7/files/Lib', | |
| 51 '<(PRODUCT_DIR)/lib' | |
| 52 ], | |
| 53 'DelayLoadDLLs': [], | |
| 54 'EntryPointSymbol': 'MainEntryPoint', | |
| 55 'GenerateMapFile': 'true', | |
| 56 'IgnoreAllDefaultLibraries': 'true', | |
| 57 'OptimizeForWindows98': '1', | |
| 58 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
| 59 'AdditionalDependencies': [ | |
| 60 'shlwapi.lib', | |
| 61 'setupapi.lib', | |
| 62 ], | |
| 63 'conditions': [ | |
| 64 ['MSVS_VERSION=="2005e"', { | |
| 65 'AdditionalDependencies': [ # Must explicitly link in VC2005E | |
|
robertshield
2011/11/28 01:16:38
two spaces before comment
Sigurður Ásgeirsson
2011/11/28 15:02:10
Done.
| |
| 66 'advapi32.lib', | |
| 67 'shell32.lib', | |
| 68 ], | |
| 69 }], | |
| 70 ], | |
| 71 }, | |
| 72 'VCManifestTool': { | |
| 73 'AdditionalManifestFiles': [ | |
| 74 '$(ProjectDir)\\mini_installer\\mini_installer.exe.manifest', | |
| 75 ], | |
| 76 }, | |
| 77 }, | |
| 78 'configurations': { | |
| 79 'Debug_Base': { | |
| 80 'msvs_settings': { | |
| 81 'VCCLCompilerTool': { | |
| 82 'BasicRuntimeChecks': '0', | |
| 83 'BufferSecurityCheck': 'false', | |
| 84 'ExceptionHandling': '0', | |
| 85 }, | |
| 86 'VCLinkerTool': { | |
| 87 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
| 88 'AdditionalOptions': [ | |
| 89 '/safeseh:no', | |
| 90 '/dynamicbase:no', | |
| 91 '/ignore:4199', | |
| 92 '/ignore:4221', | |
| 93 '/nxcompat', | |
| 94 ], | |
| 95 }, | |
| 96 }, | |
| 97 }, | |
| 98 'Release_Base': { | |
| 99 'includes': ['../../build/internal/release_defaults.gypi'], | |
| 100 'msvs_settings': { | |
| 101 'VCCLCompilerTool': { | |
| 102 'EnableIntrinsicFunctions': 'true', | |
| 103 'BasicRuntimeChecks': '0', | |
| 104 'BufferSecurityCheck': 'false', | |
| 105 'ExceptionHandling': '0', | |
| 106 }, | |
| 107 'VCLinkerTool': { | |
| 108 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | |
| 109 'Profile': 'false', # Conflicts with /FIXED | |
| 110 'AdditionalOptions': [ | |
| 111 '/SAFESEH:NO', | |
| 112 '/NXCOMPAT', | |
| 113 '/DYNAMICBASE:NO', | |
| 114 '/FIXED', | |
| 115 ], | |
| 116 }, | |
| 117 }, | |
| 118 }, | |
| 119 }, | |
| 120 'rules': [ | |
| 121 { | |
| 122 'rule_name': 'mini_installer_version', | |
| 123 'extension': 'version', | |
| 124 'variables': { | |
| 125 'template_input_path': 'mini_installer/mini_installer_exe_version.rc.ver sion', | |
| 126 }, | |
| 127 'inputs': [ | |
| 128 '<(template_input_path)', | |
| 129 '<(version_path)', | |
| 130 '<(lastchange_path)', | |
| 131 '<(branding_dir)/BRANDING', | |
| 132 ], | |
| 133 'outputs': [ | |
| 134 '<(INTERMEDIATE_DIR)/mini_installer_exe_version.rc', | |
| 135 ], | |
| 136 'action': [ | |
| 137 'python', '<(version_py)', | |
| 138 '-f', '<(version_path)', | |
| 139 '-f', '<(lastchange_path)', | |
| 140 '-f', '<(branding_dir)/BRANDING', | |
| 141 '<(template_input_path)', | |
| 142 '<@(_outputs)', | |
| 143 ], | |
| 144 'process_outputs_as_sources': 1, | |
| 145 'message': 'Generating version information' | |
| 146 }, | |
| 147 { | |
| 148 'rule_name': 'installer_archive', | |
| 149 'extension': 'release', | |
| 150 'variables': { | |
| 151 'create_installer_archive_py_path': | |
| 152 '../tools/build/win/create_installer_archive.py', | |
| 153 }, | |
| 154 'inputs': [ | |
| 155 '<(create_installer_archive_py_path)', | |
| 156 '<(PRODUCT_DIR)/chrome.exe', | |
| 157 '<(chrome_dll_path)', | |
| 158 '<(PRODUCT_DIR)/nacl64.exe', | |
| 159 '<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.dll', | |
| 160 '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | |
| 161 '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | |
| 162 '<(PRODUCT_DIR)/locales/en-US.pak', | |
| 163 '<(PRODUCT_DIR)/icudt.dll', | |
| 164 ], | |
| 165 'outputs': [ | |
| 166 'xxx.out', | |
| 167 '<(output_dir)/<(RULE_INPUT_NAME).7z', | |
| 168 '<(output_dir)/<(RULE_INPUT_NAME).packed.7z', | |
| 169 '<(output_dir)/setup.ex_', | |
| 170 '<(INTERMEDIATE_DIR)/packed_files.rc', | |
| 171 ], | |
| 172 'action': [ | |
| 173 'python', | |
| 174 '<(create_installer_archive_py_path)', | |
| 175 '--build_dir=<(PRODUCT_DIR)', | |
| 176 '--output_dir=<(output_dir)', | |
| 177 '--staging_dir=<(INTERMEDIATE_DIR)', | |
| 178 '--input_file=<(RULE_INPUT_PATH)', | |
| 179 '--resource_file_path=<(INTERMEDIATE_DIR)/packed_files.rc', | |
| 180 # TODO(sgk): may just use environment variables | |
| 181 #'--distribution=$(CHROMIUM_BUILD)', | |
| 182 '--distribution=_google_chrome', | |
| 183 # Optional arguments to generate diff installer | |
| 184 #'--last_chrome_installer=C:/Temp/base', | |
| 185 #'--setup_exe_format=DIFF', | |
| 186 #'--diff_algorithm=COURGETTE', | |
| 187 ], | |
| 188 'message': 'Create installer archive' | |
| 189 }, | |
| 190 ], | |
| 191 # TODO(mark): <(branding_dir) should be defined by the | |
| 192 # global condition block at the bottom of the file, but | |
| 193 # this doesn't work due to the following issue: | |
| 194 # | |
| 195 # http://code.google.com/p/gyp/issues/detail?id=22 | |
| 196 # | |
| 197 # Remove this block once the above issue is fixed. | |
| 198 'conditions': [ | |
| 199 [ 'branding == "Chrome"', { | |
| 200 'variables': { | |
| 201 'branding_dir': '../app/theme/google_chrome', | |
| 202 }, | |
| 203 }, { # else branding!="Chrome" | |
| 204 'variables': { | |
| 205 'branding_dir': '../app/theme/chromium', | |
| 206 }, | |
| 207 }], | |
| 208 ], | |
| 209 } | |
| OLD | NEW |