Saner MIME type handling
This commit is contained in:
@@ -679,7 +679,13 @@ bool LLAppViewer::init()
|
||||
LLViewerJointMesh::updateVectorize();
|
||||
|
||||
// load MIME type -> media impl mappings
|
||||
LLMIMETypes::parseMIMETypes( std::string("mime_types.xml") );
|
||||
#if LL_WINDOWS
|
||||
LLMIMETypes::parseMIMETypes( std::string("mime_types_windows.xml") );
|
||||
#elif LL_DARWIN
|
||||
LLMIMETypes::parseMIMETypes( std::string("mime_types_mac.xml") );
|
||||
#elif LL_LINUX
|
||||
LLMIMETypes::parseMIMETypes( std::string("mime_types_linux.xml") );
|
||||
#endif
|
||||
|
||||
// Copy settings to globals. *TODO: Remove or move to appropriage class initializers
|
||||
settings_to_globals();
|
||||
|
||||
@@ -85,9 +85,6 @@ class ViewerManifest(LLManifest):
|
||||
self.path("*.png")
|
||||
self.path("textures.xml")
|
||||
self.end_prefix("default/textures")
|
||||
self.exclude("default/xui/en_us/mime_types_windows.xml")
|
||||
self.exclude("default/xui/en_us/mime_types_mac.xml")
|
||||
self.exclude("default/xui/en_us/mime_types_linux.xml")
|
||||
self.path("default/xui/*/*.xml")
|
||||
self.path("Default.xml")
|
||||
self.path("default/*.xml")
|
||||
@@ -269,9 +266,6 @@ class WindowsManifest(ViewerManifest):
|
||||
self.path("qtwcodecs4.dll")
|
||||
self.end_prefix()
|
||||
|
||||
# Per platform MIME config on the cheap. See SNOW-307 / DEV-41388
|
||||
self.path("skins/default/xui/en-us/mime_types_windows.xml", "skins/default/xui/en-us/mime_types.xml")
|
||||
|
||||
# Get llcommon and deps. If missing assume static linkage and continue.
|
||||
if self.prefix(src=self.args['configuration'], dst=""):
|
||||
try:
|
||||
@@ -555,9 +549,6 @@ class DarwinManifest(ViewerManifest):
|
||||
|
||||
self.end_prefix("llplugin")
|
||||
|
||||
# Per platform MIME config on the cheap. See SNOW-307 / DEV-41388
|
||||
self.path("skins/default/xui/en-us/mime_types_mac.xml", "skins/default/xui/en-us/mime_types.xml")
|
||||
|
||||
# command line arguments for connecting to the proper grid
|
||||
self.put_in_file(self.flags_list(), 'arguments.txt')
|
||||
|
||||
@@ -710,9 +701,6 @@ class LinuxManifest(ViewerManifest):
|
||||
self.path("../plugins/gstreamer010/libmedia_plugin_gstreamer010.so", "libmedia_plugin_gstreamer.so")
|
||||
self.end_prefix("bin/llplugin")
|
||||
|
||||
# Per platform MIME config on the cheap. See SNOW-307 / DEV-41388
|
||||
self.path("skins/default/xui/en-us/mime_types_linux.xml", "skins/default/xui/en-us/mime_types.xml")
|
||||
|
||||
self.path("featuretable_linux.txt")
|
||||
|
||||
def wrapper_name(self):
|
||||
|
||||
Reference in New Issue
Block a user