diff options
author | Jacek Antonelli | 2009-06-08 00:41:31 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-06-08 00:41:31 -0500 |
commit | 0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa (patch) | |
tree | 2c93d38e210832e737d09cff7561373d8d5453b2 /linden/indra/newview/viewer_manifest.py | |
parent | Imprudence 1.1.0 released. (diff) | |
parent | Updated Imprudence to be based on SL 1.22.11. (ChangeLog Entry) (diff) | |
download | meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.zip meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.gz meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.bz2 meta-impy-0e5df9bdf8d6b418bb6e25615e2ffc922d0f02aa.tar.xz |
Merge branch 'sl-base-1.22' into next
Conflicts:
linden/indra/newview/English.lproj/InfoPlist.strings
linden/indra/newview/skins/default/xui/en-us/panel_chat_bar.xml
Diffstat (limited to 'linden/indra/newview/viewer_manifest.py')
-rwxr-xr-x | linden/indra/newview/viewer_manifest.py | 73 |
1 files changed, 44 insertions, 29 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index 6c8de60..0abdc60 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -6,7 +6,7 @@ | |||
6 | # | 6 | # |
7 | # $LicenseInfo:firstyear=2006&license=viewergpl$ | 7 | # $LicenseInfo:firstyear=2006&license=viewergpl$ |
8 | # | 8 | # |
9 | # Copyright (c) 2006-2008, Linden Research, Inc. | 9 | # Copyright (c) 2006-2009, Linden Research, Inc. |
10 | # | 10 | # |
11 | # Second Life Viewer Source Code | 11 | # Second Life Viewer Source Code |
12 | # The source code in this file ("Source Code") is provided by Linden Lab | 12 | # The source code in this file ("Source Code") is provided by Linden Lab |
@@ -51,7 +51,6 @@ class ViewerManifest(LLManifest): | |||
51 | self.path("*.pem") | 51 | self.path("*.pem") |
52 | self.path("*.ini") | 52 | self.path("*.ini") |
53 | self.path("*.xml") | 53 | self.path("*.xml") |
54 | self.path("*.vp") | ||
55 | self.path("*.db2") | 54 | self.path("*.db2") |
56 | 55 | ||
57 | # include the entire shaders directory recursively | 56 | # include the entire shaders directory recursively |
@@ -66,7 +65,6 @@ class ViewerManifest(LLManifest): | |||
66 | self.path("*.tga") | 65 | self.path("*.tga") |
67 | self.end_prefix("character") | 66 | self.end_prefix("character") |
68 | 67 | ||
69 | |||
70 | # Include our fonts | 68 | # Include our fonts |
71 | if self.prefix(src="fonts"): | 69 | if self.prefix(src="fonts"): |
72 | self.path("LiberationSans-Bold.ttf") | 70 | self.path("LiberationSans-Bold.ttf") |
@@ -100,7 +98,6 @@ class ViewerManifest(LLManifest): | |||
100 | 98 | ||
101 | self.end_prefix("skins") | 99 | self.end_prefix("skins") |
102 | 100 | ||
103 | self.path("lsl_guide.html") | ||
104 | self.path("gpu_table.txt") | 101 | self.path("gpu_table.txt") |
105 | 102 | ||
106 | 103 | ||
@@ -137,6 +134,8 @@ class ViewerManifest(LLManifest): | |||
137 | # whether or not this is present | 134 | # whether or not this is present |
138 | return self.args.get('login_channel') | 135 | return self.args.get('login_channel') |
139 | 136 | ||
137 | def grid(self): | ||
138 | return self.args['grid'] | ||
140 | def channel(self): | 139 | def channel(self): |
141 | return self.args['channel'] | 140 | return self.args['channel'] |
142 | def channel_unique(self): | 141 | def channel_unique(self): |
@@ -149,22 +148,33 @@ class ViewerManifest(LLManifest): | |||
149 | def flags_list(self): | 148 | def flags_list(self): |
150 | """ Convenience function that returns the command-line flags | 149 | """ Convenience function that returns the command-line flags |
151 | for the grid""" | 150 | for the grid""" |
152 | channel_flags = '' | 151 | |
152 | # Set command line flags relating to the target grid | ||
153 | grid_flags = '' | 153 | grid_flags = '' |
154 | if not self.default_grid(): | 154 | if not self.default_grid(): |
155 | if self.default_channel(): | 155 | grid_flags = "--grid %(grid)s "\ |
156 | # beta grid viewer | 156 | "--helperuri http://preview-%(grid)s.secondlife.com/helpers/" %\ |
157 | channel_flags = '--settings settings_beta.xml' | 157 | {'grid':self.grid()} |
158 | grid_flags = "--grid %(grid)s --helperuri http://preview-%(grid)s.secondlife.com/helpers/" % {'grid':self.args['grid']} | ||
159 | 158 | ||
160 | if not self.default_channel(): | 159 | # set command line flags for channel |
161 | # some channel on some grid | 160 | channel_flags = '' |
162 | channel_flags = '--settings settings_%s.xml --channel "%s"' % (self.channel_lowerword(), self.channel()) | 161 | if self.login_channel() and self.login_channel() != self.channel(): |
163 | elif self.login_channel(): | ||
164 | # Report a special channel during login, but use default | 162 | # Report a special channel during login, but use default |
165 | channel_flags = '--channel "%s"' % (self.login_channel()) | 163 | channel_flags = '--channel "%s"' % (self.login_channel()) |
166 | 164 | elif not self.default_channel(): | |
167 | return " ".join((channel_flags, grid_flags)).strip() | 165 | channel_flags = '--channel "%s"' % self.channel() |
166 | |||
167 | # Deal with settings | ||
168 | setting_flags = '' | ||
169 | if not self.default_channel() or not self.default_grid(): | ||
170 | if self.default_grid(): | ||
171 | setting_flags = '--settings settings_%s.xml'\ | ||
172 | % self.channel_lowerword() | ||
173 | else: | ||
174 | setting_flags = '--settings settings_%s_%s.xml'\ | ||
175 | % (self.grid(), self.channel_lowerword()) | ||
176 | |||
177 | return " ".join((channel_flags, grid_flags, setting_flags)).strip() | ||
168 | 178 | ||
169 | 179 | ||
170 | class WindowsManifest(ViewerManifest): | 180 | class WindowsManifest(ViewerManifest): |
@@ -210,9 +220,19 @@ class WindowsManifest(ViewerManifest): | |||
210 | self.path("alut.dll") | 220 | self.path("alut.dll") |
211 | self.end_prefix() | 221 | self.end_prefix() |
212 | 222 | ||
213 | # Mozilla appears to force a dependency on these files so we need to ship it (CP) | 223 | # Mozilla appears to force a dependency on these files so we need to ship it (CP) - updated to vc8 versions (nyx) |
214 | self.path("msvcr71.dll") | 224 | # These need to be installed as a SxS assembly, currently a 'private' assembly. |
215 | self.path("msvcp71.dll") | 225 | # See http://msdn.microsoft.com/en-us/library/ms235291(VS.80).aspx |
226 | if self.prefix(src=self.args['configuration'], dst=""): | ||
227 | if self.args['configuration'] == 'Debug': | ||
228 | self.path("msvcr80d.dll") | ||
229 | self.path("msvcp80d.dll") | ||
230 | self.path("Microsoft.VC80.DebugCRT.manifest") | ||
231 | else: | ||
232 | self.path("msvcr80.dll") | ||
233 | self.path("msvcp80.dll") | ||
234 | self.path("Microsoft.VC80.CRT.manifest") | ||
235 | self.end_prefix() | ||
216 | 236 | ||
217 | # Mozilla runtime DLLs (CP) | 237 | # Mozilla runtime DLLs (CP) |
218 | if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""): | 238 | if self.prefix(src="../../libraries/i686-win32/lib/release", dst=""): |
@@ -241,6 +261,11 @@ class WindowsManifest(ViewerManifest): | |||
241 | self.path("res/*/*") | 261 | self.path("res/*/*") |
242 | self.end_prefix() | 262 | self.end_prefix() |
243 | 263 | ||
264 | # Mozilla hack to get it to accept newer versions of msvc*80.dll than are listed in manifest | ||
265 | # necessary as llmozlib2-vc80.lib refers to an old version of msvc*80.dll - can be removed when new version of llmozlib is built - Nyx | ||
266 | # The config file name needs to match the exe's name. | ||
267 | self.path("SecondLife.exe.config", dst=self.final_exe() + ".config") | ||
268 | |||
244 | # Vivox runtimes | 269 | # Vivox runtimes |
245 | if self.prefix(src="vivox-runtime/i686-win32", dst=""): | 270 | if self.prefix(src="vivox-runtime/i686-win32", dst=""): |
246 | # self.path("alut.dll") | 271 | # self.path("alut.dll") |
@@ -386,7 +411,7 @@ class WindowsManifest(ViewerManifest): | |||
386 | "%%INSTALL_FILES%%":self.nsi_file_commands(True), | 411 | "%%INSTALL_FILES%%":self.nsi_file_commands(True), |
387 | "%%DELETE_FILES%%":self.nsi_file_commands(False)}) | 412 | "%%DELETE_FILES%%":self.nsi_file_commands(False)}) |
388 | 413 | ||
389 | NSIS_path = 'C:\\Program Files\\NSIS\\makensis.exe' | 414 | NSIS_path = 'C:\\Program Files\\NSIS\\Unicode\\makensis.exe' |
390 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) | 415 | self.run_command('"' + proper_windows_path(NSIS_path) + '" ' + self.dst_path_of(tempfile)) |
391 | # self.remove(self.dst_path_of(tempfile)) | 416 | # self.remove(self.dst_path_of(tempfile)) |
392 | self.created_path(self.dst_path_of(installer_file)) | 417 | self.created_path(self.dst_path_of(installer_file)) |
@@ -643,9 +668,6 @@ class DarwinManifest(ViewerManifest): | |||
643 | if not os.path.exists (self.src_path_of(dmg_template)): | 668 | if not os.path.exists (self.src_path_of(dmg_template)): |
644 | dmg_template = os.path.join ('installers', 'darwin', 'release-dmg') | 669 | dmg_template = os.path.join ('installers', 'darwin', 'release-dmg') |
645 | 670 | ||
646 | # To reinstate the linden scripting guide, add this to the list below: | ||
647 | # "lsl_guide.html":"Linden Scripting Language Guide.html", | ||
648 | |||
649 | for s,d in {self.get_dst_prefix():app_name + ".app", | 671 | for s,d in {self.get_dst_prefix():app_name + ".app", |
650 | os.path.join(dmg_template, "_VolumeIcon.icns"): ".VolumeIcon.icns", | 672 | os.path.join(dmg_template, "_VolumeIcon.icns"): ".VolumeIcon.icns", |
651 | os.path.join(dmg_template, "background.jpg"): "background.jpg", | 673 | os.path.join(dmg_template, "background.jpg"): "background.jpg", |
@@ -701,13 +723,6 @@ class LinuxManifest(ViewerManifest): | |||
701 | 723 | ||
702 | 724 | ||
703 | def package_finish(self): | 725 | def package_finish(self): |
704 | # stripping all the libs removes a few megabytes from the end-user package | ||
705 | for s,d in self.file_list: | ||
706 | if re.search("lib/lib.+\.so.*", d): | ||
707 | self.run_command('strip -S %s' % d) | ||
708 | if re.search("app_settings/mozilla-runtime-.*/lib.+\.so.*", d): | ||
709 | self.run_command('strip %s' % d) | ||
710 | |||
711 | if 'installer_name' in self.args: | 726 | if 'installer_name' in self.args: |
712 | installer_name = self.args['installer_name'] | 727 | installer_name = self.args['installer_name'] |
713 | else: | 728 | else: |