From f89cffa66e087aa23a2b988e5b53ab41c964d51a Mon Sep 17 00:00:00 2001
From: Jacek Antonelli
Date: Tue, 3 Nov 2009 16:59:53 -0600
Subject: Second Life viewer sources 1.23.5
---
linden/indra/cmake/CopyWinLibs.cmake | 48 +++++++++++++++++-
linden/indra/lib/python/indra/util/llversion.py | 17 ++++---
linden/indra/llcommon/llversionserver.h | 2 +-
linden/indra/llcommon/llversionviewer.h | 6 +--
.../indra/newview/English.lproj/InfoPlist.strings | 4 +-
linden/indra/newview/Info-SecondLife.plist | 2 +-
linden/indra/newview/app_settings/settings.xml | 2 +-
linden/indra/newview/build_win32_appConfig.py | 58 ++++++++++++++++++++++
linden/indra/newview/llassetuploadresponders.cpp | 3 +-
linden/indra/newview/llfloaterbulkpermission.cpp | 36 ++++++++++++--
linden/indra/newview/llpreview.cpp | 28 +++++++++++
linden/indra/newview/llpreview.h | 1 +
linden/indra/newview/res/viewerRes.rc | 8 +--
linden/indra/newview/viewer_manifest.py | 47 +++++++++++-------
14 files changed, 218 insertions(+), 44 deletions(-)
create mode 100644 linden/indra/newview/build_win32_appConfig.py
(limited to 'linden')
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index b1291df..6612528 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -169,6 +169,20 @@ if (MSVC80)
${debug_msvc8_files}
)
set(all_targets ${all_targets} ${out_targets})
+
+ set(debug_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Debug/${VIEWER_BINARY_NAME}.exe.config)
+ add_custom_command(
+ OUTPUT ${debug_appconfig_file}
+ COMMAND ${PYTHON_EXECUTABLE}
+ ARGS
+ ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
+ ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest
+ ${CMAKE_CURRENT_SOURCE_DIR}/SecondLifeDebug.exe.config
+ ${debug_appconfig_file}
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Debug/Microsoft.VC80.DebugCRT.manifest
+ COMMENT "Creating debug app config file"
+ )
+
endif (EXISTS ${debug_msvc8_redist_path})
FIND_PATH(release_msvc8_redist_path msvcr80.dll
@@ -201,10 +215,42 @@ if (MSVC80)
)
set(all_targets ${all_targets} ${out_targets})
+ set(release_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/Release/${VIEWER_BINARY_NAME}.exe.config)
+ add_custom_command(
+ OUTPUT ${release_appconfig_file}
+ COMMAND ${PYTHON_EXECUTABLE}
+ ARGS
+ ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
+ ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
+ ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
+ ${release_appconfig_file}
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/Release/Microsoft.VC80.CRT.manifest
+ COMMENT "Creating release app config file"
+ )
+
+ set(relwithdebinfo_appconfig_file ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/${VIEWER_BINARY_NAME}.exe.config)
+ add_custom_command(
+ OUTPUT ${relwithdebinfo_appconfig_file}
+ COMMAND ${PYTHON_EXECUTABLE}
+ ARGS
+ ${CMAKE_CURRENT_SOURCE_DIR}/build_win32_appConfig.py
+ ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
+ ${CMAKE_CURRENT_SOURCE_DIR}/SecondLife.exe.config
+ ${relwithdebinfo_appconfig_file}
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/Microsoft.VC80.CRT.manifest
+ COMMENT "Creating relwithdebinfo app config file"
+ )
+
endif (EXISTS ${release_msvc8_redist_path})
endif (MSVC80)
-add_custom_target(copy_win_libs ALL DEPENDS ${all_targets})
+add_custom_target(copy_win_libs ALL
+ DEPENDS
+ ${all_targets}
+ ${release_appconfig_file}
+ ${relwithdebinfo_appconfig_file}
+ ${debug_appconfig_file}
+ )
if(EXISTS ${internal_llkdu_path})
add_dependencies(copy_win_libs llkdu)
diff --git a/linden/indra/lib/python/indra/util/llversion.py b/linden/indra/lib/python/indra/util/llversion.py
index 770b861..77fa5a2 100644
--- a/linden/indra/lib/python/indra/util/llversion.py
+++ b/linden/indra/lib/python/indra/util/llversion.py
@@ -43,7 +43,7 @@ def get_version_file_contents(version_type):
file.close()
return file_str
-def get_version(version_type):
+def get_version(version_type, revision=0):
file_str = get_version_file_contents(version_type)
m = re.search('const S32 LL_VERSION_MAJOR = (\d+);', file_str)
VER_MAJOR = m.group(1)
@@ -51,8 +51,11 @@ def get_version(version_type):
VER_MINOR = m.group(1)
m = re.search('const S32 LL_VERSION_PATCH = (\d+);', file_str)
VER_PATCH = m.group(1)
- m = re.search('const S32 LL_VERSION_BUILD = (\d+);', file_str)
- VER_BUILD = m.group(1)
+ if revision > 0:
+ VER_BUILD = revision
+ else:
+ m = re.search('const S32 LL_VERSION_BUILD = (\d+);', file_str)
+ VER_BUILD = m.group(1)
version = "%(VER_MAJOR)s.%(VER_MINOR)s.%(VER_PATCH)s.%(VER_BUILD)s" % locals()
return version
@@ -61,11 +64,11 @@ def get_channel(version_type):
m = re.search('const char \* const LL_CHANNEL = "(.+)";', file_str)
return m.group(1)
-def get_viewer_version():
- return get_version('viewer')
+def get_viewer_version(revision=0):
+ return get_version('viewer', revision)
-def get_server_version():
- return get_version('server')
+def get_server_version(revision=0):
+ return get_version('server', revision)
def get_viewer_channel():
return get_channel('viewer')
diff --git a/linden/indra/llcommon/llversionserver.h b/linden/indra/llcommon/llversionserver.h
index 479b06d..3831479 100644
--- a/linden/indra/llcommon/llversionserver.h
+++ b/linden/indra/llcommon/llversionserver.h
@@ -36,7 +36,7 @@
const S32 LL_VERSION_MAJOR = 1;
const S32 LL_VERSION_MINOR = 27;
const S32 LL_VERSION_PATCH = 0;
-const S32 LL_VERSION_BUILD = 123523;
+const S32 LL_VERSION_BUILD = 136262;
const char * const LL_CHANNEL = "Second Life Server";
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h
index eb84643..56711ce 100644
--- a/linden/indra/llcommon/llversionviewer.h
+++ b/linden/indra/llcommon/llversionviewer.h
@@ -35,9 +35,9 @@
const S32 LL_VERSION_MAJOR = 1;
const S32 LL_VERSION_MINOR = 23;
-const S32 LL_VERSION_PATCH = 4;
-const S32 LL_VERSION_BUILD = 123523;
+const S32 LL_VERSION_PATCH = 5;
+const S32 LL_VERSION_BUILD = 136262;
-const char * const LL_CHANNEL = "Second Life Release Candidate";
+const char * const LL_CHANNEL = "Second Life Release";
#endif
diff --git a/linden/indra/newview/English.lproj/InfoPlist.strings b/linden/indra/newview/English.lproj/InfoPlist.strings
index ed4dd60..7bb58d2 100644
--- a/linden/indra/newview/English.lproj/InfoPlist.strings
+++ b/linden/indra/newview/English.lproj/InfoPlist.strings
@@ -2,6 +2,6 @@
CFBundleName = "Second Life";
-CFBundleShortVersionString = "Second Life version 1.23.4.123523";
-CFBundleGetInfoString = "Second Life version 1.23.4.123523, Copyright 2004-2008 Linden Research, Inc.";
+CFBundleShortVersionString = "Second Life version 1.23.5.136262";
+CFBundleGetInfoString = "Second Life version 1.23.5.136262, Copyright 2004-2008 Linden Research, Inc.";
diff --git a/linden/indra/newview/Info-SecondLife.plist b/linden/indra/newview/Info-SecondLife.plist
index 5c5388d..de71a64 100644
--- a/linden/indra/newview/Info-SecondLife.plist
+++ b/linden/indra/newview/Info-SecondLife.plist
@@ -32,7 +32,7 @@
CFBundleVersion
- 1.23.4.123523
+ 1.23.5.136262
CSResourcesFileMapped
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 5ebf14d..b696cac 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -7491,7 +7491,7 @@
Type
S32
Value
- 4096
+ 8192
RenderMaxVBOSize