diff options
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 49 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 1 | ||||
| -rw-r--r-- | indra/newview/llface.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llnetmap.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llversioninfo.cpp | 8 | ||||
| -rw-r--r-- | indra/newview/llvosky.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llvosky.h | 4 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/strings.xml | 2 | ||||
| -rw-r--r-- | indra/newview/tests/llversioninfo_test.cpp | 11 | ||||
| -rwxr-xr-x | indra/newview/viewer_manifest.py | 54 | 
11 files changed, 79 insertions, 78 deletions
| diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index d6d7d2c563..45ba8d6eb7 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -13,7 +13,6 @@ include(DragDrop)  include(EXPAT)  include(FMODEX)  include(GLOD) -include(GooglePerfTools)  include(Hunspell)  include(JsonCpp)  include(LLAppearance) @@ -1682,7 +1681,7 @@ if (WINDOWS)      set_target_properties(${VIEWER_BINARY_NAME}          PROPERTIES          # *TODO -reenable this once we get server usage sorted out -        LINK_FLAGS "/debug /NODEFAULTLIB:LIBCMT /SUBSYSTEM:WINDOWS ${TCMALLOC_LINK_FLAGS} /LARGEADDRESSAWARE" +        LINK_FLAGS "/debug /NODEFAULTLIB:LIBCMT /SUBSYSTEM:WINDOWS /LARGEADDRESSAWARE"          LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;LIBCMTD;MSVCRT\" /INCREMENTAL:NO /LARGEADDRESSAWARE"          LINK_FLAGS_RELEASE "/FORCE:MULTIPLE /MAP\"secondlife-bin.MAP\" /OPT:REF /LARGEADDRESSAWARE"          ) @@ -1702,20 +1701,8 @@ if (WINDOWS)      # In the meantime, if you have any ideas on how to easily maintain one list, either here or in viewer_manifest.py      # and have the build deps get tracked *please* tell me about it. -    if(USE_TCMALLOC) -      # Configure a var for tcmalloc location, if used. -      # Note the need to specify multiple names explicitly. -      set(GOOGLE_PERF_TOOLS_SOURCE -        ${SHARED_LIB_STAGING_DIR}/Release/libtcmalloc_minimal.dll -        ${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/libtcmalloc_minimal.dll -        ${SHARED_LIB_STAGING_DIR}/Debug/libtcmalloc_minimal-debug.dll -        ) -     endif(USE_TCMALLOC) - -      set(COPY_INPUT_DEPENDENCIES        # The following commented dependencies are determined at variably at build time. Can't do this here. -      #${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/libtcmalloc_minimal.dll => None ... Skipping libtcmalloc_minimal.dll        ${CMAKE_SOURCE_DIR}/../etc/message.xml        ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg        ${SHARED_LIB_STAGING_DIR}/${CMAKE_CFG_INTDIR}/llcommon.dll @@ -1957,7 +1944,6 @@ target_link_libraries(${VIEWER_BINARY_NAME}      ${LLLOGIN_LIBRARIES}      ${LLPHYSICS_LIBRARIES}      ${LLPHYSICSEXTENSIONS_LIBRARIES} -    ${TCMALLOC_LIBRARIES}      ${LLAPPEARANCE_LIBRARIES}      ) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 6621b9e269..fa39dd6c65 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -6354,17 +6354,6 @@        <key>Value</key>        <integer>512</integer>      </map> -    <key>MemProfiling</key> -    <map> -      <key>Comment</key> -      <string>You want to use tcmalloc's memory profiling options.</string> -      <key>Persist</key> -      <integer>1</integer> -      <key>Type</key> -      <string>Boolean</string> -      <key>Value</key> -      <integer>0</integer> -    </map>      <key>MenuAccessKeyTime</key>      <map>        <key>Comment</key> @@ -10046,28 +10035,28 @@      <key>Value</key>      <integer>0</integer>    </map> -  <key>RenderUseFarClip</key> -  <map> -    <key>Comment</key> -    <string>If false, frustum culling will ignore far clip plane.</string> -    <key>Persist</key> -    <integer>1</integer> -    <key>Type</key> -    <string>Boolean</string> -    <key>Value</key> -    <integer>1</integer> -  </map> -  <key>RenderUseImpostors</key> -  <map> -    <key>Comment</key> +    <key>RenderUseFarClip</key> +    <map> +      <key>Comment</key> +      <string>If false, frustum culling will ignore far clip plane.</string> +      <key>Persist</key> +      <integer>1</integer> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key> +      <integer>1</integer> +    </map> +    <key>RenderUseImpostors</key> +    <map> +      <key>Comment</key>      <string>OBSOLETE and UNUSED. See RenderAvatarMaxNonImpostors and RenderAvatarMaxComplexity.</string> -    <key>Persist</key> +      <key>Persist</key>      <integer>0</integer> -    <key>Type</key> -    <string>Boolean</string> -    <key>Value</key> +      <key>Type</key> +      <string>Boolean</string> +      <key>Value</key>      <integer>0</integer> -  </map> +    </map>    <key>RenderAutoMuteByteLimit</key>    <map>      <key>Comment</key> diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index a0ebae119e..c125924fa7 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3284,6 +3284,7 @@ LLSD LLAppViewer::getViewerInfo() const      if (build_config != "Release")      {          info["BUILD_CONFIG"] = build_config; +        info["ADDRESS_SIZE"] = ADDRESS_SIZE;      }  	// return a URL to the release notes for this viewer, such as: diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 3d5e2d356e..50a4925c37 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -2133,7 +2133,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,  			LLVector4a src;  			U32 vec[4]; -			vec[0] = vec[1] = vec[2] = vec[3] = color.mAll; +			vec[0] = vec[1] = vec[2] = vec[3] = color.asRGBA();  			src.loadua((F32*) vec); @@ -2169,7 +2169,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,  			LLColor4U glow4u = LLColor4U(0,0,0,glow); -			U32 glow32 = glow4u.mAll; +			U32 glow32 = glow4u.asRGBA();  			U32 vec[4];  			vec[0] = vec[1] = vec[2] = vec[3] = glow32; diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp index 5fc73c67d1..72faa5a9e7 100644 --- a/indra/newview/llnetmap.cpp +++ b/indra/newview/llnetmap.cpp @@ -735,7 +735,7 @@ void LLNetMap::renderPoint(const LLVector3 &pos_local, const LLColor4U &color,  				continue;  			}  			S32 offset = px + py * image_width; -			((U32*)datap)[offset] = color.mAll; +			((U32*)datap)[offset] = color.asRGBA();  		}  		// top line @@ -748,7 +748,7 @@ void LLNetMap::renderPoint(const LLVector3 &pos_local, const LLColor4U &color,  				continue;  			}  			S32 offset = px + py * image_width; -			((U32*)datap)[offset] = color.mAll; +			((U32*)datap)[offset] = color.asRGBA();  		}  	}  	else @@ -770,7 +770,7 @@ void LLNetMap::renderPoint(const LLVector3 &pos_local, const LLColor4U &color,  					continue;  				}  				S32 offset = p_x + p_y * image_width; -				((U32*)datap)[offset] = color.mAll; +				((U32*)datap)[offset] = color.asRGBA();  			}  		}  	} diff --git a/indra/newview/llversioninfo.cpp b/indra/newview/llversioninfo.cpp index a0ca91672a..375dce485d 100644 --- a/indra/newview/llversioninfo.cpp +++ b/indra/newview/llversioninfo.cpp @@ -99,10 +99,16 @@ const std::string &LLVersionInfo::getShortVersion()  namespace  { +	// LL_VIEWER_CHANNEL is a macro defined on the compiler command line. The +	// macro expands to the string name of the channel, but without quotes. We +	// need to turn it into a quoted string. This macro trick does that. +#define stringize_inner(x) #x +#define stringize_outer(x) stringize_inner(x) +  	/// Storage of the channel name the viewer is using.  	//  The channel name is set by hardcoded constant,   	//  or by calling LLVersionInfo::resetChannel() -	std::string sWorkingChannelName(LL_VIEWER_CHANNEL); +	std::string sWorkingChannelName(stringize_outer(LL_VIEWER_CHANNEL));  	// Storage for the "version and channel" string.  	// This will get reset too. diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 4dab213fa0..6b4a450e6f 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -283,7 +283,7 @@ void LLSkyTex::create(const F32 brightness)  			S32 offset = basic_offset * sComponents;  			U32* pix = (U32*)(data + offset);  			LLColor4U temp = LLColor4U(mSkyData[basic_offset]); -			*pix = temp.mAll; +			*pix = temp.asRGBA();  		}  	}  	createGLImage(sCurrent); diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h index ee8e91fb71..9cfb9773bd 100644 --- a/indra/newview/llvosky.h +++ b/indra/newview/llvosky.h @@ -171,7 +171,7 @@ protected:  	{  		S32 offset = (i * sResolution + j) * sComponents;  		U32* pix = (U32*) &(mImageRaw[sCurrent]->getData()[offset]); -		*pix = col.mAll; +		*pix = col.asRGBA();  	}  	LLColor4U getPixel(const S32 i, const S32 j) @@ -179,7 +179,7 @@ protected:  		LLColor4U col;  		S32 offset = (i * sResolution + j) * sComponents;  		U32* pix = (U32*) &(mImageRaw[sCurrent]->getData()[offset]); -		col.mAll = *pix; +		col.fromRGBA( *pix );  		return col;  	} diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index dcb259f2bb..a45c697ddb 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -25,7 +25,7 @@  [APP_NAME] [VIEWER_VERSION_0].[VIEWER_VERSION_1].[VIEWER_VERSION_2].[VIEWER_VERSION_3] ([CHANNEL])  [[VIEWER_RELEASE_NOTES_URL] [ReleaseNotes]]  	</string> -    <string name="BuildConfig">Build Configuration [BUILD_CONFIG]</string> +    <string name="BuildConfig">Build Configuration [BUILD_CONFIG] [ADDRESS_SIZE] bits</string>  	<string name="AboutPosition">  You are at [POSITION_LOCAL_0,number,1], [POSITION_LOCAL_1,number,1], [POSITION_LOCAL_2,number,1] in [REGION] located at <nolink>[HOSTNAME]</nolink> ([HOSTIP]) diff --git a/indra/newview/tests/llversioninfo_test.cpp b/indra/newview/tests/llversioninfo_test.cpp index 6b0be29c2d..f1f69f33f1 100644 --- a/indra/newview/tests/llversioninfo_test.cpp +++ b/indra/newview/tests/llversioninfo_test.cpp @@ -29,6 +29,13 @@  #include "../llversioninfo.h" +// LL_VIEWER_CHANNEL is a macro defined on the compiler command line. The +// macro expands to the string name of the channel, but without quotes. We +// need to turn it into a quoted string. This macro trick does that. +#define stringize_inner(x) #x +#define stringize_outer(x) stringize_inner(x) +#define ll_viewer_channel stringize_outer(LL_VIEWER_CHANNEL) +  namespace tut  {      struct versioninfo @@ -50,7 +57,7 @@ namespace tut  			mShortVersion = stream.str();  			stream.str(""); -			stream << LL_VIEWER_CHANNEL +			stream << ll_viewer_channel  				   << " "  				   << mVersion;  			mVersionAndChannel = stream.str(); @@ -89,7 +96,7 @@ namespace tut  					  LL_VIEWER_VERSION_BUILD);  		ensure_equals("Channel version",   					  LLVersionInfo::getChannel(),  -					  LL_VIEWER_CHANNEL); +					  ll_viewer_channel);  		ensure_equals("Version String",   					  LLVersionInfo::getVersion(),   					  mVersion); diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index 66d730d1ac..814eee202d 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -287,7 +287,8 @@ class ViewerManifest(LLManifest):          random.shuffle(names)          return ', '.join(names) -class Windows_i686_Manifest(ViewerManifest): + +class WindowsManifest(ViewerManifest):      def final_exe(self):          return self.app_name_oneword()+".exe" @@ -338,7 +339,7 @@ class Windows_i686_Manifest(ViewerManifest):              print "Doesn't exist:", src      def construct(self): -        super(Windows_i686_Manifest, self).construct() +        super(WindowsManifest, self).construct()          pkgdir = os.path.join(self.args['build'], os.pardir, 'packages')          relpkgdir = os.path.join(pkgdir, "lib", "release") @@ -378,18 +379,15 @@ class Windows_i686_Manifest(ViewerManifest):              # Get fmodex dll, continue if missing              try: -                if self.args['configuration'].lower() == 'debug': -                    self.path("fmodexL.dll") +                if(self.args['arch'].lower() == 'x86_64'): +                    self.path("fmodex64.dll")                  else:                      self.path("fmodex.dll")              except:                  print "Skipping fmodex audio library(assuming other audio engine)"              # For textures -            if self.args['configuration'].lower() == 'debug': -                self.path("openjpegd.dll") -            else: -                self.path("openjpeg.dll") +            self.path("openjpeg.dll")              # These need to be installed as a SxS assembly, currently a 'private' assembly.              # See http://msdn.microsoft.com/en-us/library/ms235291(VS.80).aspx @@ -434,11 +432,6 @@ class Windows_i686_Manifest(ViewerManifest):          self.path("featuretable.txt")          self.path("featuretable_xp.txt") -        # Media plugins - QuickTime -        if self.prefix(src='../media_plugins/quicktime/%s' % self.args['configuration'], dst="llplugin"): -            self.path("media_plugin_quicktime.dll") -            self.end_prefix() -          # Media plugins - CEF          if self.prefix(src='../media_plugins/cef/%s' % self.args['configuration'], dst="llplugin"):              self.path("media_plugin_cef.dll") @@ -449,11 +442,6 @@ class Windows_i686_Manifest(ViewerManifest):              self.path("media_plugin_libvlc.dll")              self.end_prefix() -        # winmm.dll shim -        if self.prefix(src='../media_plugins/winmmshim/%s' % self.args['configuration'], dst=""): -            self.path("winmm.dll") -            self.end_prefix() -          # CEF runtime files - debug          if self.args['configuration'].lower() == 'debug':              if self.prefix(src=os.path.join(os.pardir, 'packages', 'bin', 'debug'), dst="llplugin"): @@ -671,7 +659,7 @@ class Windows_i686_Manifest(ViewerManifest):          while (not installer_created) and (nsis_attempts > 0):              try:                  nsis_attempts-=1; -                self.run_command('"' + NSIS_path + '" ' + self.dst_path_of(tempfile)) +                self.run_command('"' + NSIS_path + '" /V2 ' + self.dst_path_of(tempfile))                  installer_created=True # if no exception was raised, the codesign worked              except ManifestError, err:                  if nsis_attempts: @@ -699,7 +687,17 @@ class Windows_i686_Manifest(ViewerManifest):          self.package_file = installer_file -class Darwin_i386_Manifest(ViewerManifest): +class Windows_i686_Manifest(WindowsManifest): +    # specialize when we must +    pass + + +class Windows_x86_64_Manifest(WindowsManifest): +    # specialize when we must +    pass + + +class DarwinManifest(ViewerManifest):      def is_packaging_viewer(self):          # darwin requires full app bundle packaging even for debugging.          return True @@ -725,7 +723,7 @@ class Darwin_i386_Manifest(ViewerManifest):              # most everything goes in the Resources directory              if self.prefix(src="", dst="Resources"): -                super(Darwin_i386_Manifest, self).construct() +                super(DarwinManifest, self).construct()                  if self.prefix("cursors_mac"):                      self.path("*.tif") @@ -1052,6 +1050,20 @@ class Darwin_i386_Manifest(ViewerManifest):          self.package_file = finalname          self.remove(sparsename) + +class Darwin_i386_Manifest(DarwinManifest): +    pass + + +class Darwin_i686_Manifest(DarwinManifest): +    """alias in case arch is passed as i686 instead of i386""" +    pass + + +class Darwin_x86_64_Manifest(DarwinManifest): +    pass + +  class LinuxManifest(ViewerManifest):      def construct(self):          super(LinuxManifest, self).construct() | 
