Automated merge with ssh://bitbucket.org/lindenlab/viewer-release
commit
6be2f0ba2b
24
BuildParams
24
BuildParams
|
|
@ -11,6 +11,7 @@ Linux.symbolfiles = "newview/secondlife-symbols-linux.tar.bz2"
|
|||
|
||||
# Use Public Upload Locations
|
||||
public_build = true
|
||||
build_docs = true
|
||||
|
||||
# skip windows debug build until we can get a fix in.
|
||||
build_CYGWIN_Debug = false
|
||||
|
|
@ -47,13 +48,24 @@ Linux.cxx_version = /usr/bin/g++-4.6
|
|||
################################################################
|
||||
viewer_channel = "Second Life Test"
|
||||
|
||||
# Setup default packaging parameters.
|
||||
################################################################
|
||||
# Special packaging parameters.
|
||||
# These parameters can be used to create additional packages
|
||||
# which identify themselves in a distinct way with either
|
||||
# a sourceid (sent to web services) or a channel name (sent to login)
|
||||
# the default sourceid should always be a null string:
|
||||
sourceid = ""
|
||||
additional_packages = "Amazon Desura"
|
||||
Amazon_sourceid = "1207v_Amazon"
|
||||
Amazon_viewer_channel_suffix = "Amazon"
|
||||
Desura_sourceid = "1208_desura"
|
||||
Desura_viewer_channel_suffix = "Desura"
|
||||
# the additional_packages variable is a blank separated list of package prefixes:
|
||||
additional_packages = ""
|
||||
# to set the special values for a package, create variables using each prefix:
|
||||
# additional_packages = "Foo Bar"
|
||||
# Foo_sourceid = "bingo"
|
||||
# Foo_viewer_channel_suffix = "Foo"
|
||||
# Bar_sourceid = "bongo"
|
||||
# Bar_viewer_channel_suffix = "Bar"
|
||||
# the viewer_channel_suffix is prefixed by a blank and then appended to the viewer_channel
|
||||
# for the package in a setting that overrides the compiled-in value
|
||||
################################################################
|
||||
|
||||
# Notifications - to configure email notices, add a setting like this:
|
||||
# <username>_<reponame>.email = <email-address>
|
||||
|
|
|
|||
1362
autobuild.xml
1362
autobuild.xml
File diff suppressed because it is too large
Load Diff
36
build.sh
36
build.sh
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This is a the master build script - it is intended to be run by parabuild
|
||||
# This is a the master build script - it is intended to be run by the Linden
|
||||
# Lab build farm
|
||||
# It is called by a wrapper script in the shared repository which sets up
|
||||
# the environment from the various BuildParams files and does all the build
|
||||
# result post-processing.
|
||||
|
|
@ -12,8 +13,6 @@
|
|||
# * The special style in which python is invoked is intentional to permit
|
||||
# use of a native python install on windows - which requires paths in DOS form
|
||||
# * This script relies heavily on parameters defined in BuildParams
|
||||
# * The basic convention is that the build name can be mapped onto a mercurial URL,
|
||||
# which is also used as the "branch" name.
|
||||
|
||||
check_for()
|
||||
{
|
||||
|
|
@ -125,9 +124,15 @@ package_llphysicsextensions_tpv()
|
|||
# capture the package file name for use in upload later...
|
||||
PKGTMP=`mktemp -t pgktpv.XXXXXX`
|
||||
trap "rm $PKGTMP* 2>/dev/null" 0
|
||||
"$AUTOBUILD" package --verbose --config-file $llpetpvcfg > $PKGTMP
|
||||
"$AUTOBUILD" package --verbose --config-file $llpetpvcfg --results-file "$(native_path $PKGTMP)"
|
||||
tpv_status=$?
|
||||
sed -n -e 's/^wrote *//p' $PKGTMP > $build_dir/llphysicsextensions_package
|
||||
if [ -r "${PKGTMP}" ]
|
||||
then
|
||||
cat "${PKGTMP}" >> "$build_log"
|
||||
eval $(cat "${PKGTMP}") # sets autobuild_package_{name,filename,md5}
|
||||
autobuild_package_filename="$(shell_path "${autobuild_package_filename}")"
|
||||
echo "${autobuild_package_filename}" > $build_dir/llphysicsextensions_package
|
||||
fi
|
||||
else
|
||||
echo "Do not provide llphysicsextensions_tpv for $variant"
|
||||
llphysicsextensions_package=""
|
||||
|
|
@ -172,11 +177,17 @@ build()
|
|||
# This is called from the branch independent script upon completion of all platform builds.
|
||||
build_docs()
|
||||
{
|
||||
begin_section Docs
|
||||
# Stub code to generate docs
|
||||
echo Hello world > documentation.txt
|
||||
upload_item docs documentation.txt text/plain
|
||||
end_section Docs
|
||||
begin_section "Building Documentation"
|
||||
begin_section "Autobuild metadata"
|
||||
if [ -r "$build_dir/autobuild-package.xml" ]
|
||||
then
|
||||
upload_item docs "$build_dir/autobuild-package.xml" text/xml
|
||||
else
|
||||
record_event "no metadata at '$build_dir/autobuild-package.xml'"
|
||||
fi
|
||||
end_section "Autobuild metadata"
|
||||
record_dependencies_graph # defined in build.sh
|
||||
end_section "Building Documentation"
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -226,7 +237,9 @@ fi
|
|||
eval "$("$AUTOBUILD" source_environment)"
|
||||
|
||||
# dump environment variables for debugging
|
||||
begin_section "Environment"
|
||||
env|sort
|
||||
end_section "Environment"
|
||||
|
||||
# Now run the build
|
||||
succeeded=true
|
||||
|
|
@ -276,6 +289,8 @@ do
|
|||
end_section "Do$variant"
|
||||
done
|
||||
|
||||
build_docs
|
||||
|
||||
# If we are building variants in parallel, wait, then collect results.
|
||||
# This requires that the build dirs are variant specific
|
||||
if $build_link_parallel && [ x"$build_processes" != x ]
|
||||
|
|
@ -375,7 +390,6 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
|
||||
# check status and upload results to S3
|
||||
if $succeeded
|
||||
then
|
||||
|
|
|
|||
|
|
@ -190,22 +190,28 @@ if (DARWIN)
|
|||
add_definitions(-DLL_DARWIN=1)
|
||||
set(CMAKE_CXX_LINK_FLAGS "-Wl,-no_compact_unwind -Wl,-headerpad_max_install_names,-search_paths_first")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_CXX_LINK_FLAGS}")
|
||||
set(DARWIN_extra_cstar_flags "-mlong-branch -g")
|
||||
set(DARWIN_extra_cstar_flags "-g")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DARWIN_extra_cstar_flags}")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${DARWIN_extra_cstar_flags}")
|
||||
# NOTE: it's critical that the optimization flag is put in front.
|
||||
# NOTE: it's critical to have both CXX_FLAGS and C_FLAGS covered.
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O0 ${CMAKE_C_FLAGS_RELWITHDEBINFO}")
|
||||
if (XCODE_VERSION GREATER 4.2)
|
||||
set(ENABLE_SIGNING TRUE)
|
||||
set(SIGNING_IDENTITY "Developer ID Application: Linden Research, Inc.")
|
||||
endif (XCODE_VERSION GREATER 4.2)
|
||||
set(ENABLE_SIGNING TRUE)
|
||||
set(SIGNING_IDENTITY "Developer ID Application: Linden Research, Inc.")
|
||||
endif (DARWIN)
|
||||
|
||||
|
||||
if (LINUX OR DARWIN)
|
||||
set(GCC_WARNINGS "-Wall -Wno-sign-compare -Wno-trigraphs")
|
||||
if (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||
set(CMAKE_COMPILER_IS_CLANGXX 1)
|
||||
endif (CMAKE_CXX_COMPILER MATCHES ".*clang")
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||
set(GCC_WARNINGS "-Wall -Wno-trigraphs")
|
||||
elseif (CMAKE_COMPILER_IS_CLANGXX)
|
||||
set(GCC_WARNINGS "-Wall -Wno-sign-compare -Wno-trigraphs")
|
||||
endif()
|
||||
|
||||
if (NOT GCC_DISABLE_FATAL_WARNINGS)
|
||||
set(GCC_WARNINGS "${GCC_WARNINGS} -Werror")
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ if (USESYSTEMLIBS)
|
|||
pkg_check_modules(VORBISENC REQUIRED vorbisenc)
|
||||
pkg_check_modules(VORBISFILE REQUIRED vorbisfile)
|
||||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(ogg-vorbis)
|
||||
use_prebuilt_binary(ogg_vorbis)
|
||||
set(VORBIS_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
|
||||
set(VORBISENC_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
|
||||
set(VORBISFILE_INCLUDE_DIRS ${VORBIS_INCLUDE_DIRS})
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ if (USESYSTEMLIBS)
|
|||
pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1)
|
||||
|
||||
elseif (LINUX)
|
||||
use_prebuilt_binary(dbusglib)
|
||||
use_prebuilt_binary(dbus_glib)
|
||||
set(DBUSGLIB_FOUND ON FORCE BOOL)
|
||||
set(DBUSGLIB_INCLUDE_DIRS
|
||||
${LIBS_PREBUILT_DIR}/include/dbus
|
||||
|
|
|
|||
|
|
@ -6,10 +6,14 @@
|
|||
#
|
||||
# AUTOBUILD_EXECUTABLE - path to autobuild or pautobuild executable
|
||||
|
||||
# *TODO - if cmake was executed by autobuild, autobuild will have set the AUTOBUILD env var
|
||||
# update this to check for that case
|
||||
|
||||
|
||||
IF (NOT AUTOBUILD_EXECUTABLE)
|
||||
|
||||
# If cmake was executed by autobuild, autobuild will have set the AUTOBUILD env var
|
||||
IF (DEFINED ENV{AUTOBUILD})
|
||||
SET(AUTOBUILD_EXECUTABLE $ENV{AUTOBUILD})
|
||||
ELSE (DEFINED ENV{AUTOBUILD})
|
||||
IF(WIN32)
|
||||
SET(AUTOBUILD_EXE_NAMES autobuild.cmd autobuild.exe)
|
||||
ELSE(WIN32)
|
||||
|
|
@ -27,15 +31,15 @@ IF (NOT AUTOBUILD_EXECUTABLE)
|
|||
${CMAKE_SOURCE_DIR}/../../..
|
||||
PATH_SUFFIXES "/autobuild/bin/"
|
||||
)
|
||||
ENDIF (DEFINED ENV{AUTOBUILD})
|
||||
|
||||
IF (AUTOBUILD_EXECUTABLE)
|
||||
GET_FILENAME_COMPONENT(_autobuild_name ${AUTOBUILD_EXECUTABLE} NAME_WE)
|
||||
MESSAGE(STATUS "Using autobuild at: ${AUTOBUILD_EXECUTABLE}")
|
||||
ELSE (AUTOBUILD_EXECUTABLE)
|
||||
IF (AUTOBUILD_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find autobuild executable")
|
||||
ENDIF (AUTOBUILD_FIND_REQUIRED)
|
||||
ENDIF (AUTOBUILD_EXECUTABLE)
|
||||
IF (AUTOBUILD_EXECUTABLE)
|
||||
GET_FILENAME_COMPONENT(_autobuild_name ${AUTOBUILD_EXECUTABLE} NAME_WE)
|
||||
ELSE (AUTOBUILD_EXECUTABLE)
|
||||
IF (AUTOBUILD_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could not find autobuild executable")
|
||||
ENDIF (AUTOBUILD_FIND_REQUIRED)
|
||||
ENDIF (AUTOBUILD_EXECUTABLE)
|
||||
|
||||
MARK_AS_ADVANCED(AUTOBUILD_EXECUTABLE)
|
||||
MARK_AS_ADVANCED(AUTOBUILD_EXECUTABLE)
|
||||
ENDIF (NOT AUTOBUILD_EXECUTABLE)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ include(Prebuilt)
|
|||
|
||||
if (NOT USESYSTEMLIBS)
|
||||
use_prebuilt_binary(glext)
|
||||
use_prebuilt_binary(glh_linear)
|
||||
use_prebuilt_binary(glh-linear)
|
||||
set(GLEXT_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
|
||||
endif (NOT USESYSTEMLIBS)
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@ set(GLH_FIND_QUIETLY TRUE)
|
|||
if (USESYSTEMLIBS)
|
||||
include(FindGLH)
|
||||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(glh_linear)
|
||||
use_prebuilt_binary(glh-linear)
|
||||
endif (USESYSTEMLIBS)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
include(Prebuilt)
|
||||
|
||||
if (NOT USESYSTEMLIBS)
|
||||
use_prebuilt_binary(GLOD)
|
||||
use_prebuilt_binary(glod)
|
||||
endif (NOT USESYSTEMLIBS)
|
||||
|
||||
set(GLOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
include(Prebuilt)
|
||||
include(Linking)
|
||||
|
||||
use_prebuilt_binary(gmock)
|
||||
use_prebuilt_binary(googlemock)
|
||||
|
||||
set(GOOGLEMOCK_INCLUDE_DIRS
|
||||
set(GOOGLEMOCK_INCLUDE_DIRS
|
||||
${LIBS_PREBUILT_DIR}/include)
|
||||
|
||||
if (LINUX)
|
||||
# VWR-24366: gmock is underlinked, it needs gtest.
|
||||
set(GOOGLEMOCK_LIBRARIES
|
||||
set(GOOGLEMOCK_LIBRARIES
|
||||
gmock -Wl,--no-as-needed
|
||||
gtest -Wl,--as-needed)
|
||||
elseif(WINDOWS)
|
||||
set(GOOGLEMOCK_LIBRARIES
|
||||
set(GOOGLEMOCK_LIBRARIES
|
||||
gmock)
|
||||
set(GOOGLEMOCK_INCLUDE_DIRS
|
||||
set(GOOGLEMOCK_INCLUDE_DIRS
|
||||
${LIBS_PREBUILT_DIR}/include
|
||||
${LIBS_PREBUILT_DIR}/include/gmock
|
||||
${LIBS_PREBUILT_DIR}/include/gmock/boost/tr1/tr1)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ else (USESYSTEMLIBS)
|
|||
debug json_vc100debug_libmt.lib
|
||||
optimized json_vc100_libmt)
|
||||
elseif (DARWIN)
|
||||
set(JSONCPP_LIBRARIES libjson_linux-gcc-4.0.1_libmt.a)
|
||||
set(JSONCPP_LIBRARIES libjson_darwin_libmt.a)
|
||||
elseif (LINUX)
|
||||
set(JSONCPP_LIBRARIES libjson_linux-gcc-4.1.3_libmt.a)
|
||||
endif (WINDOWS)
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ INCLUDE(GoogleMock)
|
|||
#
|
||||
# Setup test targets
|
||||
#
|
||||
GET_TARGET_PROPERTY(TEST_EXE PROJECT_${project}_TEST_${name} LOCATION)
|
||||
SET(TEST_EXE $<TARGET_FILE:PROJECT_${project}_TEST_${name}>)
|
||||
SET(TEST_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/PROJECT_${project}_TEST_${name}_ok.txt)
|
||||
SET(TEST_CMD ${TEST_EXE} --touch=${TEST_OUTPUT} --sourcedir=${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ FUNCTION(LL_ADD_INTEGRATION_TEST
|
|||
|
||||
# Create the test running command
|
||||
SET(test_command ${ARGN})
|
||||
GET_TARGET_PROPERTY(TEST_EXE INTEGRATION_TEST_${testname} LOCATION)
|
||||
SET(TEST_EXE $<TARGET_FILE:INTEGRATION_TEST_${testname}>)
|
||||
LIST(FIND test_command "{}" test_exe_pos)
|
||||
IF(test_exe_pos LESS 0)
|
||||
# The {} marker means "the full pathname of the test executable."
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ include(Prebuilt)
|
|||
# Linux proprietary build only
|
||||
if (INSTALL_PROPRIETARY)
|
||||
if(LINUX)
|
||||
use_prebuilt_binary(llappearanceutility-source)
|
||||
use_prebuilt_binary(llappearance_utility)
|
||||
set(LLAPPEARANCEUTILITY_SRC_DIR ${LIBS_PREBUILT_DIR}/llappearanceutility/src)
|
||||
set(LLAPPEARANCEUTILITY_BIN_DIR ${CMAKE_BINARY_DIR}/llappearanceutility)
|
||||
endif (LINUX)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# ll_deploy_sharedlibs_command
|
||||
# target_exe: the cmake target of the executable for which the shared libs will be deployed.
|
||||
macro(ll_deploy_sharedlibs_command target_exe)
|
||||
get_target_property(TARGET_LOCATION ${target_exe} LOCATION)
|
||||
set(TARGET_LOCATION $<TARGET_FILE:${target_exe}>)
|
||||
get_filename_component(OUTPUT_PATH ${TARGET_LOCATION} PATH)
|
||||
|
||||
if(DARWIN)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ if (NDOF)
|
|||
set(NDOF_FIND_REQUIRED ON)
|
||||
include(FindNDOF)
|
||||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(ndofdev)
|
||||
use_prebuilt_binary(libndofdev)
|
||||
|
||||
if (WINDOWS)
|
||||
set(NDOF_LIBRARY libndofdev)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ if (OPENAL)
|
|||
pkg_check_modules(OPENAL_LIB REQUIRED openal)
|
||||
pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
|
||||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(openal_soft)
|
||||
use_prebuilt_binary(openal)
|
||||
endif (USESYSTEMLIBS)
|
||||
if(WINDOWS)
|
||||
set(OPENAL_LIBRARIES
|
||||
|
|
|
|||
|
|
@ -33,13 +33,11 @@ macro (use_prebuilt_binary _binary)
|
|||
if(DEBUG_PREBUILT)
|
||||
message("cd ${CMAKE_SOURCE_DIR} && ${AUTOBUILD_EXECUTABLE} install
|
||||
--install-dir=${AUTOBUILD_INSTALL_DIR}
|
||||
--skip-license-check
|
||||
${_binary} ")
|
||||
endif(DEBUG_PREBUILT)
|
||||
execute_process(COMMAND "${AUTOBUILD_EXECUTABLE}"
|
||||
install
|
||||
--install-dir=${AUTOBUILD_INSTALL_DIR}
|
||||
--skip-license-check
|
||||
${_binary}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
RESULT_VARIABLE ${_binary}_installed
|
||||
|
|
|
|||
|
|
@ -129,44 +129,25 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(DARWIN 1)
|
||||
|
||||
execute_process(
|
||||
COMMAND sh -c "xcodebuild -version | grep Xcode | cut -d ' ' -f2 | cut -d'.' -f1-2"
|
||||
OUTPUT_VARIABLE XCODE_VERSION )
|
||||
# now we only support Xcode 6.0 using 10.9 (Mavericks), minimum OS 10.7 (Lion)
|
||||
set(XCODE_VERSION 6.0)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7)
|
||||
set(CMAKE_OSX_SYSROOT macosx10.9)
|
||||
|
||||
# To support a different SDK update these Xcode settings:
|
||||
if (XCODE_VERSION GREATER 4.5)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.8)
|
||||
set(CMAKE_OSX_SYSROOT macosx10.8)
|
||||
else (XCODE_VERSION GREATER 4.5)
|
||||
if (XCODE_VERSION GREATER 4.2)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.6)
|
||||
set(CMAKE_OSX_SYSROOT macosx10.7)
|
||||
else (XCODE_VERSION GREATER 4.2)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.6)
|
||||
set(CMAKE_OSX_SYSROOT macosx10.7)
|
||||
endif (XCODE_VERSION GREATER 4.2)
|
||||
endif (XCODE_VERSION GREATER 4.5)
|
||||
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvmgcc42")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_VERSION "com.apple.compilers.llvm.clang.1_0")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_OPTIMIZATION_LEVEL 3)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_STRICT_ALIASING NO)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_GCC_FAST_MATH YES)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_X86_VECTOR_INSTRUCTIONS ssse3)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libstdc++")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT dwarf-with-dsym)
|
||||
|
||||
# NOTE: To attempt an i386/PPC Universal build, add this on the configure line:
|
||||
# -DCMAKE_OSX_ARCHITECTURES:STRING='i386;ppc'
|
||||
# Build only for i386 by default, system default on MacOSX 10.6 is x86_64
|
||||
# Build only for i386 by default, system default on MacOSX 10.6+ is x86_64
|
||||
if (NOT CMAKE_OSX_ARCHITECTURES)
|
||||
set(CMAKE_OSX_ARCHITECTURES i386)
|
||||
set(CMAKE_OSX_ARCHITECTURES "i386")
|
||||
endif (NOT CMAKE_OSX_ARCHITECTURES)
|
||||
|
||||
if (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc")
|
||||
set(ARCH universal)
|
||||
else (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc")
|
||||
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
|
||||
set(ARCH ppc)
|
||||
else (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
|
||||
set(ARCH i386)
|
||||
endif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc")
|
||||
endif (CMAKE_OSX_ARCHITECTURES MATCHES "i386" AND CMAKE_OSX_ARCHITECTURES MATCHES "ppc")
|
||||
|
||||
set(ARCH ${CMAKE_OSX_ARCHITECTURES})
|
||||
set(LL_ARCH ${ARCH}_darwin)
|
||||
set(LL_ARCH_DIR universal-darwin)
|
||||
set(WORD_SIZE 32)
|
||||
|
|
@ -177,10 +158,8 @@ set(GRID agni CACHE STRING "Target Grid")
|
|||
|
||||
set(VIEWER_CHANNEL "Second Life Test" CACHE STRING "Viewer Channel Name")
|
||||
|
||||
if (XCODE_VERSION GREATER 4.2)
|
||||
set(ENABLE_SIGNING OFF CACHE BOOL "Enable signing the viewer")
|
||||
set(SIGNING_IDENTITY "" CACHE STRING "Specifies the signing identity to use, if necessary.")
|
||||
endif (XCODE_VERSION GREATER 4.2)
|
||||
set(ENABLE_SIGNING OFF CACHE BOOL "Enable signing the viewer")
|
||||
set(SIGNING_IDENTITY "" CACHE STRING "Specifies the signing identity to use, if necessary.")
|
||||
|
||||
set(VERSION_BUILD "0" CACHE STRING "Revision number passed in from the outside")
|
||||
set(USESYSTEMLIBS OFF CACHE BOOL "Use libraries from your system rather than Linden-supplied prebuilt libraries.")
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ if (USESYSTEMLIBS)
|
|||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(xmlrpc-epi)
|
||||
if (WINDOWS)
|
||||
set(XMLRPCEPI_LIBRARIES
|
||||
set(XMLRPCEPI_LIBRARIES
|
||||
debug xmlrpc-epid
|
||||
optimized xmlrpc-epi
|
||||
)
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@
|
|||
class LLTextureManagerBridge
|
||||
{
|
||||
public:
|
||||
virtual ~LLTextureManagerBridge() {}
|
||||
|
||||
virtual LLPointer<LLGLTexture> getLocalTexture(BOOL usemipmaps = TRUE, BOOL generate_gl_tex = TRUE) = 0;
|
||||
virtual LLPointer<LLGLTexture> getLocalTexture(const U32 width, const U32 height, const U8 components, BOOL usemipmaps, BOOL generate_gl_tex = TRUE) = 0;
|
||||
virtual LLGLTexture* getFetchedTexture(const LLUUID &image_id) = 0;
|
||||
|
|
|
|||
|
|
@ -113,6 +113,9 @@ public:
|
|||
// Update the baked texture hash.
|
||||
virtual void addToBakedTextureHash(LLMD5& hash) const = 0;
|
||||
|
||||
typedef std::map<S32, LLVisualParam *> visual_param_index_map_t;
|
||||
visual_param_index_map_t mVisualParamIndexMap;
|
||||
|
||||
protected:
|
||||
typedef std::map<S32, LLLocalTextureObject*> te_map_t;
|
||||
void syncImages(te_map_t &src, te_map_t &dst);
|
||||
|
|
@ -132,9 +135,6 @@ protected:
|
|||
typedef std::map<S32, F32> param_map_t;
|
||||
param_map_t mSavedVisualParamMap; // last saved version of visual params
|
||||
|
||||
typedef std::map<S32, LLVisualParam *> visual_param_index_map_t;
|
||||
visual_param_index_map_t mVisualParamIndexMap;
|
||||
|
||||
te_map_t mTEMap; // maps TE to LocalTextureObject
|
||||
te_map_t mSavedTEMap; // last saved version of TEMap
|
||||
};
|
||||
|
|
|
|||
|
|
@ -173,8 +173,9 @@ bool LLWearableData::swapWearables(const LLWearableType::EType type, U32 index_a
|
|||
}
|
||||
|
||||
wearableentry_vec_t& wearable_vec = wearable_iter->second;
|
||||
if (0 > index_a || index_a >= wearable_vec.size()) return false;
|
||||
if (0 > index_b || index_b >= wearable_vec.size()) return false;
|
||||
// removed 0 > index_a and index_b comparisions - can never be true
|
||||
if (index_a >= wearable_vec.size()) return false;
|
||||
if (index_b >= wearable_vec.size()) return false;
|
||||
|
||||
LLWearable* wearable = wearable_vec[index_a];
|
||||
wearable_vec[index_a] = wearable_vec[index_b];
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@
|
|||
class LLTranslationBridge
|
||||
{
|
||||
public:
|
||||
// clang needs this to be happy
|
||||
virtual ~LLTranslationBridge() {}
|
||||
|
||||
virtual std::string getString(const std::string &xml_desc) = 0;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -247,8 +247,7 @@ BOOL LLVorbisDecodeState::initDecode()
|
|||
LL_WARNS("AudioEngine") << "Illegal sample count: " << sample_count << LL_ENDL;
|
||||
}
|
||||
|
||||
if( size_guess > LLVORBIS_CLIP_REJECT_SIZE ||
|
||||
size_guess < 0)
|
||||
if( size_guess > LLVORBIS_CLIP_REJECT_SIZE )
|
||||
{
|
||||
abort_decode = true;
|
||||
LL_WARNS("AudioEngine") << "Illegal sample size: " << size_guess << LL_ENDL;
|
||||
|
|
@ -697,11 +696,3 @@ BOOL LLAudioDecodeMgr::addDecodeRequest(const LLUUID &uuid)
|
|||
LL_DEBUGS("AudioEngine") << "addDecodeRequest for " << uuid << " no file available" << LL_ENDL;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if LL_DARWIN || LL_LINUX
|
||||
// HACK: to fool the compiler into not emitting unused warnings.
|
||||
namespace {
|
||||
const ov_callbacks callback_array[4] = {OV_CALLBACKS_DEFAULT, OV_CALLBACKS_NOCLOSE, OV_CALLBACKS_STREAMONLY,
|
||||
OV_CALLBACKS_STREAMONLY_NOCLOSE};
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
const LLQuaternion EDIT_MOTION_WRIST_ROTATION(F_PI_BY_TWO * 0.7f, LLVector3(1.0f, 0.0f, 0.0f));
|
||||
const F32 TARGET_LAG_HALF_LIFE = 0.1f; // half-life of IK targeting
|
||||
const F32 TORSO_LAG_HALF_LIFE = 0.2f;
|
||||
const F32 MAX_TIME_DELTA = 2.f; //max two seconds a frame for calculating interpolation
|
||||
|
||||
S32 LLEditingMotion::sHandPose = LLHandMotion::HAND_POSE_RELAXED_R;
|
||||
S32 LLEditingMotion::sHandPosePriority = 3;
|
||||
|
|
|
|||
|
|
@ -43,11 +43,8 @@ const F32 TORSO_LAG = 0.35f; // torso rotation factor
|
|||
const F32 NECK_LAG = 0.5f; // neck rotation factor
|
||||
const F32 HEAD_LOOKAT_LAG_HALF_LIFE = 0.15f; // half-life of lookat targeting for head
|
||||
const F32 TORSO_LOOKAT_LAG_HALF_LIFE = 0.27f; // half-life of lookat targeting for torso
|
||||
const F32 EYE_LOOKAT_LAG_HALF_LIFE = 0.06f; // half-life of lookat targeting for eye
|
||||
const F32 HEAD_ROTATION_CONSTRAINT = F_PI_BY_TWO * 0.8f; // limit angle for head rotation
|
||||
|
||||
const F32 MIN_HEAD_LOOKAT_DISTANCE = 0.3f; // minimum distance from head before we turn to look at it
|
||||
const F32 MAX_TIME_DELTA = 2.f; //max two seconds a frame for calculating interpolation
|
||||
const F32 EYE_JITTER_MIN_TIME = 0.3f; // min amount of time between eye "jitter" motions
|
||||
const F32 EYE_JITTER_MAX_TIME = 2.5f; // max amount of time between eye "jitter" motions
|
||||
const F32 EYE_JITTER_MAX_YAW = 0.08f; // max yaw of eye jitter motion
|
||||
|
|
|
|||
|
|
@ -902,7 +902,7 @@ void LLKeyframeMotion::deactivateConstraint(JointConstraint *constraintp)
|
|||
constraintp->mSourceVolume->mUpdateXform = FALSE;
|
||||
}
|
||||
|
||||
if (!constraintp->mSharedData->mConstraintTargetType == CONSTRAINT_TARGET_TYPE_GROUND)
|
||||
if (constraintp->mSharedData->mConstraintTargetType != CONSTRAINT_TARGET_TYPE_GROUND)
|
||||
{
|
||||
if (constraintp->mTargetVolume)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -45,10 +45,7 @@ const F32 TIME_EPSILON = 0.001f; // minumum frame time
|
|||
const F32 MAX_TIME_DELTA = 2.f; // max two seconds a frame for calculating interpolation
|
||||
F32 SPEED_ADJUST_MAX_SEC = 2.f; // maximum adjustment to walk animation playback speed for a second
|
||||
F32 ANIM_SPEED_MAX = 1.5f; // absolute upper limit on animation speed
|
||||
const F32 DRIFT_COMP_MAX_TOTAL = 0.1f; // maximum drift compensation overall, in any direction
|
||||
const F32 DRIFT_COMP_MAX_SPEED = 4.f; // speed at which drift compensation total maxes out
|
||||
const F32 MAX_ROLL = 0.6f;
|
||||
const F32 PELVIS_COMPENSATION_WIEGHT = 0.7f; // proportion of foot drift that is compensated by moving the avatar directly
|
||||
const F32 SPEED_ADJUST_TIME_CONSTANT = 0.1f; // time constant for speed adjustment interpolation
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -38,9 +38,6 @@
|
|||
// Constants
|
||||
//-----------------------------------------------------------------------------
|
||||
const F32 TORSO_TARGET_HALF_LIFE = 0.25f;
|
||||
const F32 MAX_TIME_DELTA = 2.f; //max two seconds a frame for calculating interpolation
|
||||
const F32 TARGET_PLANE_THRESHOLD_DOT = 0.6f;
|
||||
const F32 TORSO_ROT_FRACTION = 0.5f;
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// LLTargetingMotion()
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ if (LL_TESTS)
|
|||
LL_ADD_INTEGRATION_TEST(llunits "" "${test_libs}")
|
||||
LL_ADD_INTEGRATION_TEST(stringize "" "${test_libs}")
|
||||
LL_ADD_INTEGRATION_TEST(lleventdispatcher "" "${test_libs}")
|
||||
LL_ADD_INTEGRATION_TEST(lleventcoro "" "${test_libs};${BOOST_CONTEXT_LIBRARY};${BOOST_COROUTINE_LIBRARY};${BOOST_SYSTEM_LIBRARY}")
|
||||
LL_ADD_INTEGRATION_TEST(lleventcoro "" "${test_libs};${BOOST_CONTEXT_LIBRARY};${BOOST_THREAD_LIBRARY};${BOOST_COROUTINE_LIBRARY};${BOOST_SYSTEM_LIBRARY}")
|
||||
LL_ADD_INTEGRATION_TEST(llprocess "" "${test_libs}")
|
||||
LL_ADD_INTEGRATION_TEST(llleap "" "${test_libs}")
|
||||
LL_ADD_INTEGRATION_TEST(llstreamqueue "" "${test_libs}")
|
||||
|
|
|
|||
|
|
@ -102,6 +102,9 @@ LLVoidListener<LISTENER> voidlistener(const LISTENER& listener)
|
|||
|
||||
namespace LLEventDetail
|
||||
{
|
||||
/// Implementation for listenerNameForCoro(), see below
|
||||
LL_COMMON_API std::string listenerNameForCoroImpl(const void* self_id);
|
||||
|
||||
/**
|
||||
* waitForEventOn() permits a coroutine to temporarily listen on an
|
||||
* LLEventPump any number of times. We don't really want to have to ask
|
||||
|
|
@ -129,9 +132,6 @@ namespace LLEventDetail
|
|||
return listenerNameForCoroImpl(self.get_id());
|
||||
}
|
||||
|
||||
/// Implementation for listenerNameForCoro()
|
||||
LL_COMMON_API std::string listenerNameForCoroImpl(const void* self_id);
|
||||
|
||||
/**
|
||||
* Implement behavior described for postAndWait()'s @a replyPumpNamePath
|
||||
* parameter:
|
||||
|
|
|
|||
|
|
@ -807,7 +807,7 @@ std::streamsize llstdio_filebuf::xsgetn(char_type* __s, std::streamsize __n)
|
|||
return __ret;
|
||||
}
|
||||
|
||||
std::streamsize llstdio_filebuf::xsputn(char_type* __s, std::streamsize __n)
|
||||
std::streamsize llstdio_filebuf::xsputn(const char_type* __s, std::streamsize __n)
|
||||
{
|
||||
// Optimization in the always_noconv() case, to be generalized in the
|
||||
// future: when __n is sufficiently large we write directly instead of
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ protected:
|
|||
/*virtual*/ int sync();
|
||||
|
||||
std::streamsize xsgetn(char_type*, std::streamsize);
|
||||
std::streamsize xsputn(char_type*, std::streamsize);
|
||||
std::streamsize xsputn(const char_type*, std::streamsize);
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ U64 LLFrameTimer::sTotalTime = 0;
|
|||
F64 LLFrameTimer::sTotalSeconds = 0.0;
|
||||
S32 LLFrameTimer::sFrameCount = 0;
|
||||
U64 LLFrameTimer::sFrameDeltaTime = 0;
|
||||
const F64 USEC_PER_SECOND = 1000000.0;
|
||||
const F64 USEC_TO_SEC_F64 = 0.000001;
|
||||
|
||||
// static
|
||||
|
|
|
|||
|
|
@ -1123,7 +1123,7 @@ namespace LLInitParam
|
|||
void set(const value_t& val, bool flag_as_provided = true)
|
||||
{
|
||||
named_value_t::clearValueName();
|
||||
setValue(val);
|
||||
named_value_t::setValue(val);
|
||||
setProvided(flag_as_provided);
|
||||
}
|
||||
|
||||
|
|
@ -1287,7 +1287,7 @@ namespace LLInitParam
|
|||
// assign block contents to this param-that-is-a-block
|
||||
void set(const value_t& val, bool flag_as_provided = true)
|
||||
{
|
||||
setValue(val);
|
||||
named_value_t::setValue(val);
|
||||
named_value_t::clearValueName();
|
||||
setProvided(flag_as_provided);
|
||||
}
|
||||
|
|
@ -2054,7 +2054,7 @@ namespace LLInitParam
|
|||
|
||||
Optional& operator =(const value_t& val)
|
||||
{
|
||||
set(val);
|
||||
super_t::set(val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
@ -2084,7 +2084,7 @@ namespace LLInitParam
|
|||
|
||||
Mandatory& operator =(const value_t& val)
|
||||
{
|
||||
set(val);
|
||||
super_t::set(val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
@ -2120,7 +2120,7 @@ namespace LLInitParam
|
|||
|
||||
Multiple& operator =(const container_t& val)
|
||||
{
|
||||
set(val);
|
||||
super_t::set(val);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -139,9 +139,9 @@ namespace LLPredicate
|
|||
Rule()
|
||||
{}
|
||||
|
||||
void require(ENUM e)
|
||||
void require(ENUM e, bool match)
|
||||
{
|
||||
mRule.set(e, require);
|
||||
mRule.set(e, match);
|
||||
}
|
||||
|
||||
void allow(ENUM e)
|
||||
|
|
|
|||
|
|
@ -204,21 +204,6 @@ namespace
|
|||
return "Unknown";
|
||||
}
|
||||
|
||||
std::string compute_CPUFamilyName(const char* cpu_vendor, int composed_family)
|
||||
{
|
||||
const char* intel_string = "GenuineIntel";
|
||||
const char* amd_string = "AuthenticAMD";
|
||||
if(!strncmp(cpu_vendor, intel_string, strlen(intel_string)))
|
||||
{
|
||||
return intel_CPUFamilyName(composed_family);
|
||||
}
|
||||
else if(!strncmp(cpu_vendor, amd_string, strlen(amd_string)))
|
||||
{
|
||||
return amd_CPUFamilyName(composed_family);
|
||||
}
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
std::string compute_CPUFamilyName(const char* cpu_vendor, int family, int ext_family)
|
||||
{
|
||||
const char* intel_string = "GenuineIntel";
|
||||
|
|
|
|||
|
|
@ -151,29 +151,25 @@ private:
|
|||
* intrusive pointer support for LLThreadSafeRefCount
|
||||
* this allows you to use boost::intrusive_ptr with any LLThreadSafeRefCount-derived type
|
||||
*/
|
||||
namespace boost
|
||||
|
||||
inline void intrusive_ptr_add_ref(LLThreadSafeRefCount* p)
|
||||
{
|
||||
inline void intrusive_ptr_add_ref(LLThreadSafeRefCount* p)
|
||||
{
|
||||
p->ref();
|
||||
}
|
||||
p->ref();
|
||||
}
|
||||
|
||||
inline void intrusive_ptr_release(LLThreadSafeRefCount* p)
|
||||
{
|
||||
p->unref();
|
||||
}
|
||||
|
||||
inline void intrusive_ptr_add_ref(LLRefCount* p)
|
||||
{
|
||||
p->ref();
|
||||
}
|
||||
|
||||
inline void intrusive_ptr_release(LLRefCount* p)
|
||||
{
|
||||
p->unref();
|
||||
}
|
||||
};
|
||||
inline void intrusive_ptr_release(LLThreadSafeRefCount* p)
|
||||
{
|
||||
p->unref();
|
||||
}
|
||||
|
||||
inline void intrusive_ptr_add_ref(LLRefCount* p)
|
||||
{
|
||||
p->ref();
|
||||
}
|
||||
|
||||
inline void intrusive_ptr_release(LLRefCount* p)
|
||||
{
|
||||
p->unref();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -789,10 +789,7 @@ namespace
|
|||
{
|
||||
inline LLSD::Impl& safe(LLSD::Impl* impl)
|
||||
{ return LLSD::Impl::safe(impl); }
|
||||
|
||||
inline const LLSD::Impl& safe(const LLSD::Impl* impl)
|
||||
{ return LLSD::Impl::safe(impl); }
|
||||
|
||||
|
||||
inline ImplMap& makeMap(LLSD::Impl*& var)
|
||||
{ return safe(var).makeMap(var); }
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ private:
|
|||
Parser::name_stack_t mNameStack;
|
||||
const LLSD* mCurReadSD;
|
||||
LLSD* mWriteRootSD;
|
||||
LLSD* mCurWriteSD;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -572,7 +572,7 @@ std::string llsd_matches(const LLSD& prototype, const LLSD& data, const std::str
|
|||
return match_types(prototype.type(), TypeVector(), data.type(), pfx);
|
||||
}
|
||||
|
||||
bool llsd_equals(const LLSD& lhs, const LLSD& rhs, unsigned bits)
|
||||
bool llsd_equals(const LLSD& lhs, const LLSD& rhs, int bits)
|
||||
{
|
||||
// We're comparing strict equality of LLSD representation rather than
|
||||
// performing any conversions. So if the types aren't equal, the LLSD
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ LL_COMMON_API std::string llsd_matches(const LLSD& prototype, const LLSD& data,
|
|||
/// Deep equality. If you want to compare LLSD::Real values for approximate
|
||||
/// equality rather than bitwise equality, pass @a bits as for
|
||||
/// is_approx_equal_fraction().
|
||||
LL_COMMON_API bool llsd_equals(const LLSD& lhs, const LLSD& rhs, unsigned bits=-1);
|
||||
LL_COMMON_API bool llsd_equals(const LLSD& lhs, const LLSD& rhs, int bits=-1);
|
||||
|
||||
// Simple function to copy data out of input & output iterators if
|
||||
// there is no need for casting.
|
||||
|
|
|
|||
|
|
@ -1397,7 +1397,7 @@ void LLStringUtilBase<T>::testHarness()
|
|||
|
||||
s2.erase( 4, 1 );
|
||||
llassert( s2 == "hell");
|
||||
s2.insert( 0, 'y' );
|
||||
s2.insert( 0, "y" );
|
||||
llassert( s2 == "yhell");
|
||||
s2.erase( 1, 3 );
|
||||
llassert( s2 == "yl");
|
||||
|
|
|
|||
|
|
@ -99,8 +99,6 @@ const char MEMINFO_FILE[] = "/proc/meminfo";
|
|||
extern int errno;
|
||||
#endif
|
||||
|
||||
|
||||
static const S32 CPUINFO_BUFFER_SIZE = 16383;
|
||||
LLCPUInfo gSysCPU;
|
||||
|
||||
// Don't log memory info any more often than this. It also serves as our
|
||||
|
|
@ -672,8 +670,6 @@ const std::string& LLOSInfo::getOSVersionString() const
|
|||
return mOSVersionString;
|
||||
}
|
||||
|
||||
const S32 STATUS_SIZE = 8192;
|
||||
|
||||
//static
|
||||
U32 LLOSInfo::getProcessVirtualSizeKB()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,14 +39,10 @@
|
|||
# error "architecture not supported"
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Locally used constants
|
||||
//
|
||||
const F64 SEC_TO_MICROSEC = 1000000.f;
|
||||
const U64 SEC_TO_MICROSEC_U64 = 1000000;
|
||||
const F64 USEC_TO_SEC_F64 = 0.000001;
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Globals and statics
|
||||
|
|
|
|||
|
|
@ -87,6 +87,40 @@ struct LLUnit
|
|||
: mValue(value)
|
||||
{}
|
||||
|
||||
|
||||
LL_FORCE_INLINE static self_t convert(self_t v)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
template<typename FROM_STORAGE_TYPE>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<FROM_STORAGE_TYPE, UNITS> v)
|
||||
{
|
||||
self_t result;
|
||||
result.mValue = (STORAGE_TYPE)v.value();
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename FROM_UNITS>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<STORAGE_TYPE, FROM_UNITS> v)
|
||||
{
|
||||
self_t result;
|
||||
STORAGE_TYPE divisor = ll_convert_units(v, result);
|
||||
result.mValue /= divisor;
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename FROM_STORAGE_TYPE, typename FROM_UNITS>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<FROM_STORAGE_TYPE, FROM_UNITS> v)
|
||||
{
|
||||
typedef typename LLResultTypePromote<FROM_STORAGE_TYPE, STORAGE_TYPE>::type_t result_storage_t;
|
||||
LLUnit<result_storage_t, UNITS> result;
|
||||
result_storage_t divisor = ll_convert_units(v, result);
|
||||
result.value(result.value() / divisor);
|
||||
return self_t(result.value());
|
||||
}
|
||||
|
||||
|
||||
// unit initialization and conversion
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE LLUnit(LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other)
|
||||
|
|
@ -183,38 +217,6 @@ struct LLUnit
|
|||
return mValue >= convert(other).value();
|
||||
}
|
||||
|
||||
LL_FORCE_INLINE static self_t convert(self_t v)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
template<typename FROM_STORAGE_TYPE>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<FROM_STORAGE_TYPE, UNITS> v)
|
||||
{
|
||||
self_t result;
|
||||
result.mValue = (STORAGE_TYPE)v.value();
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename FROM_UNITS>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<STORAGE_TYPE, FROM_UNITS> v)
|
||||
{
|
||||
self_t result;
|
||||
STORAGE_TYPE divisor = ll_convert_units(v, result);
|
||||
result.mValue /= divisor;
|
||||
return result;
|
||||
}
|
||||
|
||||
template<typename FROM_STORAGE_TYPE, typename FROM_UNITS>
|
||||
LL_FORCE_INLINE static self_t convert(LLUnit<FROM_STORAGE_TYPE, FROM_UNITS> v)
|
||||
{
|
||||
typedef typename LLResultTypePromote<FROM_STORAGE_TYPE, STORAGE_TYPE>::type_t result_storage_t;
|
||||
LLUnit<result_storage_t, UNITS> result;
|
||||
result_storage_t divisor = ll_convert_units(v, result);
|
||||
result.value(result.value() / divisor);
|
||||
return self_t(result.value());
|
||||
}
|
||||
|
||||
protected:
|
||||
storage_t mValue;
|
||||
};
|
||||
|
|
@ -269,7 +271,7 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE void operator += (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other)
|
||||
{
|
||||
base_t::mValue += convert(other).value();
|
||||
base_t::mValue += base_t::convert(other).value();
|
||||
}
|
||||
|
||||
using base_t::operator -=;
|
||||
|
|
@ -283,19 +285,19 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE void operator -= (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other)
|
||||
{
|
||||
base_t::mValue -= convert(other).value();
|
||||
base_t::mValue -= base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator == (LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue == convert(other).value();
|
||||
return base_t::mValue == base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator == (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue == convert(other).value();
|
||||
return base_t::mValue == base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
@ -313,7 +315,7 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator != (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue != convert(other).value();
|
||||
return base_t::mValue != base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
@ -325,13 +327,13 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator < (LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue < convert(other).value();
|
||||
return base_t::mValue < base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator < (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue < convert(other).value();
|
||||
return base_t::mValue < base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
@ -343,13 +345,13 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator <= (LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue <= convert(other).value();
|
||||
return base_t::mValue <= base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator <= (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue <= convert(other).value();
|
||||
return base_t::mValue <= base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
@ -361,13 +363,13 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator > (LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue > convert(other).value();
|
||||
return base_t::mValue > base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator > (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue > convert(other).value();
|
||||
return base_t::mValue > base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
@ -379,13 +381,13 @@ struct LLUnitImplicit : public LLUnit<STORAGE_TYPE, UNITS>
|
|||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator >= (LLUnit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue >= convert(other).value();
|
||||
return base_t::mValue >= base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename OTHER_STORAGE_TYPE, typename OTHER_UNITS>
|
||||
LL_FORCE_INLINE bool operator >= (LLUnitImplicit<OTHER_STORAGE_TYPE, OTHER_UNITS> other) const
|
||||
{
|
||||
return base_t::mValue >= convert(other).value();
|
||||
return base_t::mValue >= base_t::convert(other).value();
|
||||
}
|
||||
|
||||
template<typename STORAGE_T>
|
||||
|
|
|
|||
|
|
@ -37,29 +37,14 @@
|
|||
// associated header
|
||||
#include "../lldependencies.h"
|
||||
// other Linden headers
|
||||
#include "../test/lltut.h"
|
||||
|
||||
using boost::assign::list_of;
|
||||
|
||||
#if LL_WINDOWS
|
||||
#pragma warning (disable : 4675) // "resolved by ADL" -- just as I want!
|
||||
#endif
|
||||
|
||||
typedef LLDependencies<> StringDeps;
|
||||
typedef StringDeps::KeyList StringList;
|
||||
|
||||
// We use the very cool boost::assign::list_of() construct to specify vectors
|
||||
// of strings inline. For reasons on which I'm not entirely clear, though, it
|
||||
// needs a helper function. You can use list_of() to construct an implicit
|
||||
// StringList (std::vector<std::string>) by conversion, e.g. for a function
|
||||
// parameter -- but if you simply write StringList(list_of("etc.")), you get
|
||||
// ambiguity errors. Shrug!
|
||||
template<typename CONTAINER>
|
||||
CONTAINER make(const CONTAINER& data)
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* Display helpers: must be defined BEFORE lltut.h!
|
||||
*****************************************************************************/
|
||||
// Display an arbitary value as itself...
|
||||
template<typename T>
|
||||
std::ostream& display(std::ostream& out, const T& value)
|
||||
|
|
@ -113,6 +98,31 @@ std::ostream& operator<<(std::ostream& out, const std::set<ENTRY>& set)
|
|||
return out;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
* Now we can #include lltut.h
|
||||
*****************************************************************************/
|
||||
#include "../test/lltut.h"
|
||||
|
||||
/*****************************************************************************
|
||||
* Other helpers
|
||||
*****************************************************************************/
|
||||
using boost::assign::list_of;
|
||||
|
||||
typedef LLDependencies<> StringDeps;
|
||||
typedef StringDeps::KeyList StringList;
|
||||
|
||||
// We use the very cool boost::assign::list_of() construct to specify vectors
|
||||
// of strings inline. For reasons on which I'm not entirely clear, though, it
|
||||
// needs a helper function. You can use list_of() to construct an implicit
|
||||
// StringList (std::vector<std::string>) by conversion, e.g. for a function
|
||||
// parameter -- but if you simply write StringList(list_of("etc.")), you get
|
||||
// ambiguity errors. Shrug!
|
||||
template<typename CONTAINER>
|
||||
CONTAINER make(const CONTAINER& data)
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
||||
const std::string& extract_key(const LLDependencies<>::value_type& entry)
|
||||
{
|
||||
return entry.first;
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
namespace
|
||||
{
|
||||
# pragma clang diagnostic ignored "-Wunused-function"
|
||||
void test_that_error_h_includes_enough_things_to_compile_a_message()
|
||||
{
|
||||
LL_INFOS() << "!" << LL_ENDL;
|
||||
|
|
@ -381,8 +382,6 @@ namespace
|
|||
};
|
||||
|
||||
std::string logFromNamespace(bool id) { return Foo::logFromNamespace(id); }
|
||||
std::string logFromClassWithNoLogTypeMember(bool id) { ClassWithNoLogType c; return c.logFromMember(id); }
|
||||
std::string logFromClassWithNoLogTypeStatic(bool id) { return ClassWithNoLogType::logFromStatic(id); }
|
||||
std::string logFromClassWithLogTypeMember(bool id) { ClassWithLogType c; return c.logFromMember(id); }
|
||||
std::string logFromClassWithLogTypeStatic(bool id) { return ClassWithLogType::logFromStatic(id); }
|
||||
|
||||
|
|
@ -393,8 +392,8 @@ namespace
|
|||
if (n1 == std::string::npos)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << message << ": " << "expected to find a copy of " << expected
|
||||
<< " in actual " << actual;
|
||||
ss << message << ": " << "expected to find a copy of '" << expected
|
||||
<< "' in actual '" << actual << "'";
|
||||
throw tut::failure(ss.str().c_str());
|
||||
}
|
||||
}
|
||||
|
|
@ -435,9 +434,6 @@ namespace tut
|
|||
testLogName(mRecorder, logFromStatic);
|
||||
testLogName(mRecorder, logFromAnon);
|
||||
testLogName(mRecorder, logFromNamespace);
|
||||
//testLogName(mRecorder, logFromClassWithNoLogTypeMember, "ClassWithNoLogType");
|
||||
//testLogName(mRecorder, logFromClassWithNoLogTypeStatic, "ClassWithNoLogType");
|
||||
// XXX: figure out what the exepcted response is for these
|
||||
testLogName(mRecorder, logFromClassWithLogTypeMember, "ClassWithLogType");
|
||||
testLogName(mRecorder, logFromClassWithLogTypeStatic, "ClassWithLogType");
|
||||
}
|
||||
|
|
@ -457,11 +453,6 @@ namespace
|
|||
return "bar";
|
||||
}
|
||||
|
||||
void uberLogger()
|
||||
{
|
||||
LL_INFOS() << "uber(" << outerLogger() << "," << innerLogger() << ")" << LL_ENDL;
|
||||
}
|
||||
|
||||
class LogWhileLogging
|
||||
{
|
||||
public:
|
||||
|
|
@ -494,17 +485,10 @@ namespace tut
|
|||
ensure_message_contains(1, "outside(moo)");
|
||||
ensure_message_count(2);
|
||||
|
||||
uberLogger();
|
||||
ensure_message_contains(2, "inside");
|
||||
ensure_message_contains(3, "inside");
|
||||
ensure_message_contains(4, "outside(moo)");
|
||||
ensure_message_contains(5, "uber(bar,moo)");
|
||||
ensure_message_count(6);
|
||||
|
||||
metaLogger();
|
||||
ensure_message_contains(6, "logging");
|
||||
ensure_message_contains(7, "meta(baz)");
|
||||
ensure_message_count(8);
|
||||
ensure_message_contains(2, "logging");
|
||||
ensure_message_contains(3, "meta(baz)");
|
||||
ensure_message_count(4);
|
||||
}
|
||||
|
||||
template<> template<>
|
||||
|
|
|
|||
|
|
@ -94,7 +94,6 @@ using coroutines::coroutine;
|
|||
template<typename Iter>
|
||||
bool match(Iter first, Iter last, std::string match) {
|
||||
std::string::iterator i = match.begin();
|
||||
i != match.end();
|
||||
for(; (first != last) && (i != match.end()); ++i) {
|
||||
if (*first != *i)
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -27,11 +27,11 @@
|
|||
*/
|
||||
|
||||
#include "linden_common.h"
|
||||
#include "../test/lltut.h"
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include "../llstring.h"
|
||||
#include "StringVec.h"
|
||||
#include "StringVec.h" // must come BEFORE lltut.h
|
||||
#include "../test/lltut.h"
|
||||
|
||||
using boost::assign::list_of;
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ char * os_strltrim(char * str);
|
|||
void os_strlower(char * str);
|
||||
|
||||
// Error testing and reporting for libcurl status codes
|
||||
void check_curl_easy_code(CURLcode code);
|
||||
void check_curl_easy_code(CURLcode code, int curl_setopt_option);
|
||||
|
||||
static const char * const LOG_CORE("CoreHttp");
|
||||
|
|
@ -588,9 +587,18 @@ HttpStatus HttpOpRequest::prepareRequest(HttpService * service)
|
|||
(mReqLength ? fmt1 : fmt2),
|
||||
(unsigned long) mReqOffset, (unsigned long) (mReqOffset + mReqLength - 1));
|
||||
#else
|
||||
snprintf(range_line, sizeof(range_line),
|
||||
(mReqLength ? fmt1 : fmt2),
|
||||
(unsigned long) mReqOffset, (unsigned long) (mReqOffset + mReqLength - 1));
|
||||
if ( mReqLength )
|
||||
{
|
||||
snprintf(range_line, sizeof(range_line),
|
||||
fmt1,
|
||||
(unsigned long) mReqOffset, (unsigned long) (mReqOffset + mReqLength - 1));
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(range_line, sizeof(range_line),
|
||||
fmt2,
|
||||
(unsigned long) mReqOffset);
|
||||
}
|
||||
#endif // LL_WINDOWS
|
||||
range_line[sizeof(range_line) - 1] = '\0';
|
||||
mCurlHeaders = curl_slist_append(mCurlHeaders, range_line);
|
||||
|
|
@ -1136,18 +1144,4 @@ void check_curl_easy_code(CURLcode code, int curl_setopt_option)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void check_curl_easy_code(CURLcode code)
|
||||
{
|
||||
if (CURLE_OK != code)
|
||||
{
|
||||
// Comment from old llcurl code which may no longer apply:
|
||||
//
|
||||
// linux appears to throw a curl error once per session for a bad initialization
|
||||
// at a pretty random time (when enabling cookies).
|
||||
LL_WARNS(LOG_CORE) << "libcurl error detected: " << curl_easy_strerror(code)
|
||||
<< LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
} // end anonymous namespace
|
||||
|
|
|
|||
|
|
@ -257,8 +257,6 @@ std::streampos BufferArrayStreamBuf::seekoff(std::streamoff off,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (pos < 0)
|
||||
return ret;
|
||||
if (pos > mBufferArray->size())
|
||||
{
|
||||
pos = mBufferArray->size();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,17 @@
|
|||
#include "kdu_elementary.h"
|
||||
#include "kdu_messaging.h"
|
||||
#include "kdu_params.h"
|
||||
|
||||
// don't *really* want to rebuild KDU so turn off specific warnings for this header
|
||||
#if LL_DARWIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
#include "kdu_compressed.h"
|
||||
#pragma clang diagnostic pop
|
||||
#elif
|
||||
#include "kdu_compressed.h"
|
||||
#endif
|
||||
|
||||
#include "kdu_sample_processing.h"
|
||||
|
||||
class LLKDUDecodeState;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,17 @@
|
|||
|
||||
// Support classes for reading and writing from memory buffers in KDU
|
||||
#define KDU_NO_THREADS
|
||||
// don't *really* want to rebuild KDU so turn off specific warnings for this header
|
||||
#if LL_DARWIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wself-assign-field"
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
#include "kdu_image.h"
|
||||
#pragma clang diagnostic pop
|
||||
#elif
|
||||
#include "kdu_image.h"
|
||||
#endif
|
||||
|
||||
#include "kdu_elementary.h"
|
||||
#include "kdu_messaging.h"
|
||||
#include "kdu_params.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,16 @@
|
|||
#include "linden_common.h"
|
||||
// Class to test
|
||||
#include "llimagej2ckdu.h"
|
||||
|
||||
#if LL_DARWIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
#include "llkdumem.h"
|
||||
#pragma clang diagnostic pop
|
||||
#elif
|
||||
#include "llkdumem.h"
|
||||
#endif
|
||||
|
||||
#include "kdu_block_coding.h"
|
||||
// Tut header
|
||||
#include "lltut.h"
|
||||
|
|
@ -114,7 +123,6 @@ kdu_block_encoder::kdu_block_encoder() { }
|
|||
kdu_block_decoder::kdu_block_decoder() { }
|
||||
void kdu_block::set_max_passes(int , bool ) { }
|
||||
void kdu_block::set_max_bytes(int , bool ) { }
|
||||
void kdu_block::set_max_samples(int ) { }
|
||||
void kdu_tile::close(kdu_thread_env* ) { }
|
||||
int kdu_tile::get_num_components() { return 0; }
|
||||
bool kdu_tile::get_ycc() { return false; }
|
||||
|
|
@ -157,7 +165,7 @@ void kdu_codestream::get_valid_tiles(kdu_dims& ) { }
|
|||
void kdu_codestream::create(kdu_compressed_source*, kdu_thread_env*) { }
|
||||
void kdu_codestream::apply_input_restrictions( int, int, int, int, kdu_dims*, kdu_component_access_mode ) { }
|
||||
void kdu_codestream::get_subsampling(int , kdu_coords&, bool ) { }
|
||||
void kdu_codestream::flush(kdu_long *, int , kdu_uint16 *, bool, bool, double, kdu_thread_env*) { }
|
||||
void kdu_codestream::flush(kdu_long *, int, kdu_uint16 *, bool, bool, double, kdu_thread_env*, int) { }
|
||||
void kdu_codestream::set_resilient(bool ) { }
|
||||
int kdu_codestream::get_num_components(bool ) { return 0; }
|
||||
kdu_long kdu_codestream::get_total_bytes(bool ) { return 0; }
|
||||
|
|
@ -175,8 +183,7 @@ kdu_block* kdu_subband::open_block(kdu_coords, int*, kdu_thread_env*) { return N
|
|||
bool kdu_codestream_comment::put_text(const char*) { return false; }
|
||||
void kdu_customize_warnings(kdu_message*) { }
|
||||
void kdu_customize_errors(kdu_message*) { }
|
||||
|
||||
kdu_long kdu_multi_analysis::create(kdu_codestream, kdu_tile, bool, kdu_roi_image*, bool, int, kdu_thread_env*, kdu_thread_queue*, bool ) { kdu_long a = 0; return a; }
|
||||
kdu_long kdu_multi_analysis::create(kdu_codestream, kdu_tile, kdu_thread_env*, kdu_thread_queue*, int, kdu_roi_image*, int) { kdu_long a = 0; return a; }
|
||||
siz_params::siz_params() : kdu_params(NULL, false, false, false, false, false) { }
|
||||
void siz_params::finalize(bool ) { }
|
||||
void siz_params::copy_with_xforms(kdu_params*, int, int, bool, bool, bool) { }
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@
|
|||
#include "llline.h"
|
||||
#include "llrand.h"
|
||||
|
||||
const F32 SOME_SMALL_NUMBER = 1.0e-5f;
|
||||
const F32 SOME_VERY_SMALL_NUMBER = 1.0e-8f;
|
||||
|
||||
LLLine::LLLine()
|
||||
|
|
|
|||
|
|
@ -322,8 +322,8 @@ public:
|
|||
//is it here?
|
||||
if (isInside(data->getPositionGroup()))
|
||||
{
|
||||
if (((getElementCount() < gOctreeMaxCapacity || getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius()) ||
|
||||
(data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity)))
|
||||
if (((getElementCount() < gOctreeMaxCapacity || ((getSize()[0] <= gOctreeMinSize) && contains(data->getBinRadius()))) ||
|
||||
((data->getBinRadius() > getSize()[0] && parent && parent->getElementCount() >= gOctreeMaxCapacity))))
|
||||
{ //it belongs here
|
||||
mData.push_back(NULL);
|
||||
mData[mElementCount] = data;
|
||||
|
|
@ -445,7 +445,7 @@ public:
|
|||
mDataEnd = &mData[0];
|
||||
}
|
||||
|
||||
notifyRemoval(data);
|
||||
BaseType::notifyRemoval(data);
|
||||
checkAlive();
|
||||
}
|
||||
|
||||
|
|
@ -711,7 +711,7 @@ public:
|
|||
//(don't notify listeners of addition)
|
||||
for (U32 i = 0; i < child->getChildCount(); i++)
|
||||
{
|
||||
addChild(child->getChild(i), TRUE);
|
||||
this->addChild(child->getChild(i), TRUE);
|
||||
}
|
||||
|
||||
//destroy child
|
||||
|
|
@ -755,10 +755,10 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
if (this->getSize()[0] > data->getBinRadius() && isInside(data->getPositionGroup()))
|
||||
if (this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup()))
|
||||
{
|
||||
//we got it, just act like a branch
|
||||
oct_node* node = getNodeAt(data);
|
||||
oct_node* node = oct_node::getNodeAt(data);
|
||||
if (node == this)
|
||||
{
|
||||
LLOctreeNode<T>::insert(data);
|
||||
|
|
@ -771,7 +771,7 @@ public:
|
|||
else if (this->getChildCount() == 0)
|
||||
{
|
||||
//first object being added, just wrap it up
|
||||
while (!(this->getSize()[0] > data->getBinRadius() && isInside(data->getPositionGroup())))
|
||||
while (!(this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup())))
|
||||
{
|
||||
LLVector4a center, size;
|
||||
center = this->getCenter();
|
||||
|
|
@ -786,7 +786,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
while (!(this->getSize()[0] > data->getBinRadius() && isInside(data->getPositionGroup())))
|
||||
while (!(this->getSize()[0] > data->getBinRadius() && oct_node::isInside(data->getPositionGroup())))
|
||||
{
|
||||
//the data is outside the root node, we need to grow
|
||||
LLVector4a center(this->getCenter());
|
||||
|
|
@ -814,7 +814,7 @@ public:
|
|||
|
||||
//clear our children and add the root copy
|
||||
this->clearChildren();
|
||||
addChild(newnode);
|
||||
this->addChild(newnode);
|
||||
}
|
||||
|
||||
//insert the data
|
||||
|
|
|
|||
|
|
@ -56,8 +56,6 @@
|
|||
#define DEBUG_SILHOUETTE_NORMALS 0 // TomY: Use this to display normals using the silhouette
|
||||
#define DEBUG_SILHOUETTE_EDGE_MAP 0 // DaveP: Use this to display edge map using the silhouette
|
||||
|
||||
const F32 CUT_MIN = 0.f;
|
||||
const F32 CUT_MAX = 1.f;
|
||||
const F32 MIN_CUT_DELTA = 0.02f;
|
||||
|
||||
const F32 HOLLOW_MIN = 0.f;
|
||||
|
|
@ -2076,7 +2074,7 @@ LLVolume::LLVolume(const LLVolumeParams ¶ms, const F32 detail, const BOOL ge
|
|||
|
||||
generate();
|
||||
|
||||
if (mParams.getSculptID().isNull() && mParams.getSculptType() == LL_SCULPT_TYPE_NONE || mParams.getSculptType() == LL_SCULPT_TYPE_MESH)
|
||||
if ((mParams.getSculptID().isNull() && mParams.getSculptType() == LL_SCULPT_TYPE_NONE) || mParams.getSculptType() == LL_SCULPT_TYPE_MESH)
|
||||
{
|
||||
createVolumeFaces();
|
||||
}
|
||||
|
|
@ -4027,7 +4025,6 @@ LLVertexIndexPair::LLVertexIndexPair(const LLVector3 &vertex, const S32 index)
|
|||
}
|
||||
|
||||
const F32 VERTEX_SLOP = 0.00001f;
|
||||
const F32 VERTEX_SLOP_SQRD = VERTEX_SLOP * VERTEX_SLOP;
|
||||
|
||||
struct lessVertex
|
||||
{
|
||||
|
|
@ -4914,9 +4911,7 @@ F64 find_vertex_score(LLVCacheVertexData& data)
|
|||
{
|
||||
F64 score = -1.0;
|
||||
|
||||
if (data.mActiveTriangles >= 0)
|
||||
{
|
||||
score = 0.0;
|
||||
score = 0.0;
|
||||
|
||||
S32 cache_idx = data.mCacheTag;
|
||||
|
||||
|
|
@ -4938,9 +4933,8 @@ F64 find_vertex_score(LLVCacheVertexData& data)
|
|||
}
|
||||
|
||||
//bonus points for having low valence
|
||||
F64 valence_boost = pow((F64)data.mActiveTriangles, -FindVertexScore_ValenceBoostPower);
|
||||
F64 valence_boost = pow((F64)data.mActiveTriangles, -FindVertexScore_ValenceBoostPower);
|
||||
score += FindVertexScore_ValenceBoostScale * valence_boost;
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,9 +51,6 @@ static const std::string NAME("name");
|
|||
// We won't re-request a name during this time
|
||||
const U32 PENDING_TIMEOUT_SECS = 5 * 60;
|
||||
|
||||
// File version number
|
||||
const S32 CN_FILE_VERSION = 2;
|
||||
|
||||
// Globals
|
||||
LLCacheName* gCacheName = NULL;
|
||||
std::map<std::string, std::string> LLCacheName::sCacheName;
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ void LLCircuitData::checkPacketInID(TPACKETID id, BOOL receive_resent)
|
|||
|
||||
// now, check to see if we've got a gap
|
||||
U32 gap = 0;
|
||||
if ((mPacketsInID == id))
|
||||
if (mPacketsInID == id)
|
||||
{
|
||||
// nope! bump and wrap the counter, then return
|
||||
mPacketsInID++;
|
||||
|
|
|
|||
|
|
@ -47,8 +47,7 @@
|
|||
const char* const LOCAL_ASSET_URL_FORMAT = "http://%s:12041/asset";
|
||||
|
||||
const U32 MAX_RUNNING_REQUESTS = 1;
|
||||
const F32 MAX_PROCESSING_TIME = 0.005f;
|
||||
const S32 CURL_XFER_BUFFER_SIZE = 65536;
|
||||
|
||||
// Try for 30 minutes for now.
|
||||
const F32 GET_URL_TO_FILE_TIMEOUT = 1800.0f;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,11 +56,8 @@ void pump_debug(const char *file, S32 line);
|
|||
/**
|
||||
* intrusive pointer support
|
||||
*/
|
||||
namespace boost
|
||||
{
|
||||
void intrusive_ptr_add_ref(LLIOPipe* p);
|
||||
void intrusive_ptr_release(LLIOPipe* p);
|
||||
};
|
||||
void intrusive_ptr_add_ref(LLIOPipe* p);
|
||||
void intrusive_ptr_release(LLIOPipe* p);
|
||||
|
||||
/**
|
||||
* @class LLIOPipe
|
||||
|
|
@ -251,68 +248,21 @@ protected:
|
|||
LLPumpIO* pump) = 0;
|
||||
|
||||
private:
|
||||
friend void boost::intrusive_ptr_add_ref(LLIOPipe* p);
|
||||
friend void boost::intrusive_ptr_release(LLIOPipe* p);
|
||||
friend void intrusive_ptr_add_ref(LLIOPipe* p);
|
||||
friend void intrusive_ptr_release(LLIOPipe* p);
|
||||
U32 mReferenceCount;
|
||||
};
|
||||
|
||||
namespace boost
|
||||
inline void intrusive_ptr_add_ref(LLIOPipe* p)
|
||||
{
|
||||
inline void intrusive_ptr_add_ref(LLIOPipe* p)
|
||||
++p->mReferenceCount;
|
||||
}
|
||||
inline void intrusive_ptr_release(LLIOPipe* p)
|
||||
{
|
||||
if(p && 0 == --p->mReferenceCount)
|
||||
{
|
||||
++p->mReferenceCount;
|
||||
delete p;
|
||||
}
|
||||
inline void intrusive_ptr_release(LLIOPipe* p)
|
||||
{
|
||||
if(p && 0 == --p->mReferenceCount)
|
||||
{
|
||||
delete p;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @class LLIOBoiler
|
||||
* @brief This class helps construct new LLIOPipe specializations
|
||||
* @see LLIOPipe
|
||||
*
|
||||
* THOROUGH_DESCRIPTION
|
||||
*/
|
||||
class LLIOBoiler : public LLIOPipe
|
||||
{
|
||||
public:
|
||||
LLIOBoiler();
|
||||
virtual ~LLIOBoiler();
|
||||
|
||||
protected:
|
||||
/* @name LLIOPipe virtual implementations
|
||||
*/
|
||||
//@{
|
||||
/**
|
||||
* @brief Process the data in buffer
|
||||
*/
|
||||
virtual EStatus process_impl(
|
||||
const LLChannelDescriptors& channels,
|
||||
buffer_ptr_t& buffer,
|
||||
bool& eos,
|
||||
LLSD& context,
|
||||
LLPumpIO* pump);
|
||||
//@}
|
||||
};
|
||||
|
||||
// virtual
|
||||
LLIOPipe::EStatus process_impl(
|
||||
const LLChannelDescriptors& channels,
|
||||
buffer_ptr_t& buffer,
|
||||
bool& eos,
|
||||
LLSD& context,
|
||||
LLPumpIO* pump)
|
||||
{
|
||||
return STATUS_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
#endif // #if 0 - use this block as a boilerplate
|
||||
|
||||
#endif // LL_LLIOPIPE_H
|
||||
|
|
|
|||
|
|
@ -49,11 +49,6 @@ const S32 PS_MAX_DATA_BLOCK_SIZE = PS_SYS_DATA_BLOCK_SIZE+
|
|||
|
||||
const S32 PS_LEGACY_DATA_BLOCK_SIZE = PS_SYS_DATA_BLOCK_SIZE + PS_LEGACY_PART_DATA_BLOCK_SIZE;
|
||||
|
||||
|
||||
const U32 PART_DATA_MASK = LLPartData::LL_PART_DATA_GLOW | LLPartData::LL_PART_DATA_BLEND;
|
||||
|
||||
|
||||
|
||||
const F32 MAX_PART_SCALE = 4.f;
|
||||
|
||||
bool LLPartData::hasGlow() const
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ U32 LLXferManager::numActiveListEntries(LLXfer *list_head)
|
|||
|
||||
while (list_head)
|
||||
{
|
||||
if ((list_head->mStatus == e_LL_XFER_IN_PROGRESS))
|
||||
if (list_head->mStatus == e_LL_XFER_IN_PROGRESS)
|
||||
{
|
||||
num_entries++;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@
|
|||
*/
|
||||
|
||||
//Protos for ObjectiveC classes (cannot import cocoa here due to BOOL conflict)
|
||||
#ifndef __OBJC__
|
||||
class NSWindow;
|
||||
#endif // __OBJC__
|
||||
|
||||
/* Defined in slplugin-objc.mm: */
|
||||
|
||||
|
|
|
|||
|
|
@ -107,8 +107,6 @@ const F32 FLEXIBLE_OBJECT_DEFAULT_LENGTH = 1.0f;
|
|||
const BOOL FLEXIBLE_OBJECT_DEFAULT_USING_COLLISION_SPHERE = FALSE;
|
||||
const BOOL FLEXIBLE_OBJECT_DEFAULT_RENDERING_COLLISION_SPHERE = FALSE;
|
||||
|
||||
const S32 MAX_FACE_BITS = 9;
|
||||
|
||||
const char *SCULPT_DEFAULT_TEXTURE = "be293869-d0d9-0a69-5989-ad27f1946fd4"; // old inverted texture: "7595d345-a24c-e7ef-f0bd-78793792133e";
|
||||
|
||||
// Texture rotations are sent over the wire as a S16. This is used to scale the actual float
|
||||
|
|
@ -993,8 +991,6 @@ BOOL LLPrimitive::setMaterial(U8 material)
|
|||
}
|
||||
}
|
||||
|
||||
const F32 LL_MAX_SCALE_S = 100.0f;
|
||||
const F32 LL_MAX_SCALE_T = 100.0f;
|
||||
S32 LLPrimitive::packTEField(U8 *cur_ptr, U8 *data_ptr, U8 data_size, U8 last_face_index, EMsgVariableType type) const
|
||||
{
|
||||
S32 face_index;
|
||||
|
|
|
|||
|
|
@ -121,7 +121,6 @@ target_link_libraries(llrender
|
|||
${LLCOMMON_LIBRARIES}
|
||||
${LLIMAGE_LIBRARIES}
|
||||
${LLMATH_LIBRARIES}
|
||||
${LLRENDER_LIBRARIES}
|
||||
${LLVFS_LIBRARIES}
|
||||
${LLXML_LIBRARIES}
|
||||
${LLVFS_LIBRARIES}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,6 @@ LLFontGlyphInfo::LLFontGlyphInfo(U32 index)
|
|||
LLFontFreetype::LLFontFreetype()
|
||||
: LLTrace::MemTrackable<LLFontFreetype>("LLFontFreetype"),
|
||||
mFontBitmapCachep(new LLFontBitmapCache),
|
||||
mValid(FALSE),
|
||||
mAscender(0.f),
|
||||
mDescender(0.f),
|
||||
mLineHeight(0.f),
|
||||
|
|
|
|||
|
|
@ -162,8 +162,6 @@ private:
|
|||
BOOL mIsFallback;
|
||||
font_vector_t mFallbackFonts; // A list of fallback fonts to look for glyphs in (for Unicode chars)
|
||||
|
||||
BOOL mValid;
|
||||
|
||||
typedef boost::unordered_map<llwchar, LLFontGlyphInfo*> char_glyph_info_map_t;
|
||||
mutable char_glyph_info_map_t mCharGlyphInfoMap; // Information about glyph location in bitmap
|
||||
|
||||
|
|
|
|||
|
|
@ -61,12 +61,6 @@ LLCoordGL LLFontGL::sCurOrigin;
|
|||
F32 LLFontGL::sCurDepth;
|
||||
std::vector<std::pair<LLCoordGL, F32> > LLFontGL::sOriginStack;
|
||||
|
||||
const F32 EXT_X_BEARING = 1.f;
|
||||
const F32 EXT_Y_BEARING = 0.f;
|
||||
const F32 EXT_KERNING = 1.f;
|
||||
const F32 PIXEL_BORDER_THRESHOLD = 0.0001f;
|
||||
const F32 PIXEL_CORRECTION_DISTANCE = 0.01f;
|
||||
|
||||
const F32 PAD_UVY = 0.5f; // half of vertical padding between glyphs in the glyph texture
|
||||
const F32 DROP_SHADOW_SOFT_STRENGTH = 0.3f;
|
||||
|
||||
|
|
|
|||
|
|
@ -49,17 +49,8 @@ static LLStaticHashedString sBlurWidth("blurWidth");
|
|||
|
||||
LLPostProcess * gPostProcess = NULL;
|
||||
|
||||
|
||||
static const unsigned int NOISE_SIZE = 512;
|
||||
|
||||
/// CALCULATING LUMINANCE (Using NTSC lum weights)
|
||||
/// http://en.wikipedia.org/wiki/Luma_%28video%29
|
||||
static const float LUMINANCE_R = 0.299f;
|
||||
static const float LUMINANCE_G = 0.587f;
|
||||
static const float LUMINANCE_B = 0.114f;
|
||||
|
||||
static const char * const XML_FILENAME = "postprocesseffects.xml";
|
||||
|
||||
LLPostProcess::LLPostProcess(void) :
|
||||
initialized(false),
|
||||
mAllEffects(LLSD::emptyMap()),
|
||||
|
|
|
|||
|
|
@ -36,25 +36,17 @@
|
|||
|
||||
#include "boost/bind.hpp"
|
||||
|
||||
static const S32 DRAGGER_BAR_MARGIN = 4;
|
||||
static const S32 DRAGGER_BAR_HEIGHT = 5;
|
||||
static const S32 BORDER_MARGIN = 2;
|
||||
static const S32 PARENT_BORDER_MARGIN = 5;
|
||||
|
||||
static const S32 panel_delta = DRAGGER_BAR_MARGIN; // Distanse between two panels
|
||||
|
||||
static const S32 HORIZONTAL_MULTIPLE = 8;
|
||||
static const S32 VERTICAL_MULTIPLE = 16;
|
||||
static const F32 MIN_AUTO_SCROLL_RATE = 120.f;
|
||||
static const F32 MAX_AUTO_SCROLL_RATE = 500.f;
|
||||
static const F32 AUTO_SCROLL_RATE_ACCEL = 120.f;
|
||||
|
||||
|
||||
// LLAccordionCtrl =================================================================|
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLAccordionCtrl> t2("accordion");
|
||||
|
||||
|
||||
LLAccordionCtrl::LLAccordionCtrl(const Params& params):LLPanel(params)
|
||||
, mFitParent(params.fit_parent)
|
||||
, mAutoScrolling( false )
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@
|
|||
#include "lltextbox.h"
|
||||
#include "llkeyboard.h"
|
||||
|
||||
const U32 MAX_STRING_LENGTH = 10;
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLCheckBoxCtrl> r("check_box");
|
||||
|
||||
// Compiler optimization, generate extern template
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ extern void AddNewDebugConsoleToLCD(const LLWString &newLine);
|
|||
LLConsole* gConsole = NULL; // Created and destroyed in LLViewerWindow.
|
||||
|
||||
const F32 FADE_DURATION = 2.f;
|
||||
const S32 MIN_CONSOLE_WIDTH = 200;
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLConsole> r("console");
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ const S32 LEADING_PAD = 5;
|
|||
const S32 TITLE_HPAD = 8;
|
||||
const S32 BORDER_PAD = 1;
|
||||
const S32 LEFT_PAD = BORDER_PAD + TITLE_HPAD + LEADING_PAD;
|
||||
const S32 RIGHT_PAD = BORDER_PAD + 32; // HACK: space for close btn and minimize btn
|
||||
|
||||
S32 LLDragHandle::sSnapMargin = 5;
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@
|
|||
/// Local function declarations, constants, enums, and typedefs
|
||||
///----------------------------------------------------------------------------
|
||||
|
||||
const S32 RENAME_WIDTH_PAD = 4;
|
||||
const S32 RENAME_HEIGHT_PAD = 1;
|
||||
const S32 AUTO_OPEN_STACK_DEPTH = 16;
|
||||
|
||||
|
|
|
|||
|
|
@ -100,17 +100,10 @@ const std::string LLMenuGL::ARROW_DOWN("vvvvvvv");
|
|||
|
||||
const F32 MAX_MOUSE_SLOPE_SUB_MENU = 0.9f;
|
||||
|
||||
const S32 PIE_GESTURE_ACTIVATE_DISTANCE = 10;
|
||||
|
||||
BOOL LLMenuGL::sKeyboardMode = FALSE;
|
||||
|
||||
LLHandle<LLView> LLMenuHolderGL::sItemLastSelectedHandle;
|
||||
LLFrameTimer LLMenuHolderGL::sItemActivationTimer;
|
||||
//LLColor4 LLMenuGL::sBackgroundColor( 0.8f, 0.8f, 0.0f, 1.0f );
|
||||
|
||||
const S32 PIE_CENTER_SIZE = 20; // pixels, radius of center hole
|
||||
const F32 PIE_SCALE_FACTOR = 1.7f; // scale factor for pie menu when mouse is initially down
|
||||
const F32 PIE_SHRINK_TIME = 0.2f; // time of transition between unbounded and bounded display of pie menu
|
||||
|
||||
const F32 ACTIVATE_HIGHLIGHT_TIME = 0.3f;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,16 @@
|
|||
|
||||
#include "llrngwriter.h"
|
||||
#include "lluicolor.h"
|
||||
|
||||
#if LL_DARWIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdelete-incomplete"
|
||||
#include "lluictrlfactory.h"
|
||||
#pragma clang diagnostic pop
|
||||
#elif
|
||||
#include "lluictrlfactory.h"
|
||||
#endif
|
||||
|
||||
#include "boost/bind.hpp"
|
||||
|
||||
static LLInitParam::Parser::parser_read_func_map_t sReadFuncs;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
/// Local function declarations, constants, enums, and typedefs
|
||||
///----------------------------------------------------------------------------
|
||||
|
||||
static const S32 HORIZONTAL_MULTIPLE = 8;
|
||||
static const S32 VERTICAL_MULTIPLE = 16;
|
||||
static const F32 AUTO_SCROLL_RATE_ACCEL = 120.f;
|
||||
|
||||
|
|
|
|||
|
|
@ -2095,9 +2095,6 @@ BOOL LLScrollListCtrl::handleKeyHere(KEY key,MASK mask )
|
|||
// not called from parent means we have keyboard focus or a child does
|
||||
if (mCanSelect)
|
||||
{
|
||||
// Ignore capslock
|
||||
mask = mask;
|
||||
|
||||
if (mask == MASK_NONE)
|
||||
{
|
||||
switch(key)
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@
|
|||
#include "llresmgr.h"
|
||||
#include "lluictrlfactory.h"
|
||||
|
||||
const U32 MAX_STRING_LENGTH = 10;
|
||||
|
||||
static LLDefaultChildRegistry::Register<LLSliderCtrl> r("slider");
|
||||
|
||||
LLSliderCtrl::LLSliderCtrl(const LLSliderCtrl::Params& p)
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ private:
|
|||
mFloatingTargetMaxBar,
|
||||
mCurMaxBar,
|
||||
mCurMinBar,
|
||||
mLabelSpacing,
|
||||
mTickSpacing;
|
||||
S32 mDecimalDigits,
|
||||
mNumHistoryFrames,
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ namespace LLTextValidate
|
|||
S32 len = str.length();
|
||||
while(len--)
|
||||
{
|
||||
if (str[len] < 0x20 && str[len] != 0xA || str[len] > 0x7f)
|
||||
if ((str[len] < 0x20 && str[len] != 0xA) || str[len] > 0x7f)
|
||||
{
|
||||
rv = FALSE;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ bool LLTimeCtrl::isHoursStringValid(const std::string& str)
|
|||
bool LLTimeCtrl::isMinutesStringValid(const std::string& str)
|
||||
{
|
||||
U32 minutes;
|
||||
if (!LLStringUtil::convertToU32(str, minutes) || (minutes <= MINUTES_MAX) && str.length() < 3)
|
||||
if (!LLStringUtil::convertToU32(str, minutes) || ((minutes <= MINUTES_MAX) && str.length() < 3))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
|
@ -415,7 +415,8 @@ U32 LLTimeCtrl::parseHours(const std::string& str)
|
|||
U32 LLTimeCtrl::parseMinutes(const std::string& str)
|
||||
{
|
||||
U32 minutes;
|
||||
if (LLStringUtil::convertToU32(str, minutes) && (minutes >= MINUTES_MIN) && (minutes <= MINUTES_MAX))
|
||||
// not sure of this fix - clang doesnt like compare minutes U32 to >= MINUTES_MIN (0) but MINUTES_MIN can change
|
||||
if (LLStringUtil::convertToU32(str, minutes) && ((S32)minutes >= MINUTES_MIN) && ((S32)minutes <= MINUTES_MAX))
|
||||
{
|
||||
return minutes;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,15 @@ public:
|
|||
if (!widget)
|
||||
{
|
||||
LL_WARNS() << "Widget in " << filename << " was of type " << typeid(view).name() << " instead of expected type " << typeid(T).name() << LL_ENDL;
|
||||
|
||||
#if LL_DARWIN
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdelete-incomplete"
|
||||
delete view;
|
||||
#pragma clang diagnostic pop
|
||||
#elif
|
||||
delete view;
|
||||
#endif
|
||||
view = NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2164,10 +2164,6 @@ LLControlVariable *LLView::findControl(const std::string& name)
|
|||
return control_group.getControl(name);
|
||||
}
|
||||
|
||||
const S32 FLOATER_H_MARGIN = 15;
|
||||
const S32 MIN_WIDGET_HEIGHT = 10;
|
||||
const S32 VPAD = 4;
|
||||
|
||||
void LLView::initFromParams(const LLView::Params& params)
|
||||
{
|
||||
LLRect required_rect = getRequiredRect();
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ static LLInitParam::Parser::parser_inspect_func_map_t sSimpleXUIInspectFuncs;
|
|||
|
||||
const char* NO_VALUE_MARKER = "no_value";
|
||||
|
||||
const S32 LINE_NUMBER_HERE = 0;
|
||||
|
||||
struct MaxOccursValues : public LLInitParam::TypeValuesHelper<U32, MaxOccursValues>
|
||||
{
|
||||
static void declareValues()
|
||||
|
|
|
|||
|
|
@ -127,7 +127,8 @@ bool LLDirIterator::Impl::next(std::string &fname)
|
|||
{
|
||||
boost::smatch match;
|
||||
std::string name = mIter->path().filename().string();
|
||||
if (found = boost::regex_match(name, match, mFilterExp))
|
||||
found = boost::regex_match(name, match, mFilterExp);
|
||||
if (found)
|
||||
{
|
||||
fname = name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,4 +40,4 @@ std::string* getSystemResourceFolder();
|
|||
std::string* getSystemExecutableFolder();
|
||||
|
||||
|
||||
#endif LL_LLVFS_OBJC_H
|
||||
#endif // LL_LLVFS_OBJC_H
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ std::string* findSystemDirectory(NSSearchPathDirectory searchPathDirectory,
|
|||
{
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
std::string *result;
|
||||
std::string *result = nil;
|
||||
NSString *path = nil;
|
||||
|
||||
// Search for the path
|
||||
|
|
|
|||
|
|
@ -104,20 +104,20 @@ attributedStringInfo getSegments(NSAttributedString *str)
|
|||
- (unsigned long)getVramSize
|
||||
{
|
||||
CGLRendererInfoObj info = 0;
|
||||
GLint vram_bytes = 0;
|
||||
GLint vram_megabytes = 0;
|
||||
int num_renderers = 0;
|
||||
CGLError the_err = CGLQueryRendererInfo (CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay), &info, &num_renderers);
|
||||
if(0 == the_err)
|
||||
{
|
||||
CGLDescribeRenderer (info, 0, kCGLRPTextureMemory, &vram_bytes);
|
||||
CGLDescribeRenderer (info, 0, kCGLRPTextureMemoryMegabytes, &vram_megabytes);
|
||||
CGLDestroyRendererInfo (info);
|
||||
}
|
||||
else
|
||||
{
|
||||
vram_bytes = (256 << 20);
|
||||
vram_megabytes = 256;
|
||||
}
|
||||
|
||||
return (unsigned long)vram_bytes / 1048576; // We need this in megabytes.
|
||||
return (unsigned long)vram_megabytes; // return value is in megabytes.
|
||||
}
|
||||
|
||||
- (void)viewDidMoveToWindow
|
||||
|
|
|
|||
|
|
@ -44,15 +44,9 @@
|
|||
|
||||
extern BOOL gDebugWindowProc;
|
||||
|
||||
// culled from winuser.h
|
||||
//const S32 WHEEL_DELTA = 120; /* Value for rolling one detent */
|
||||
// On the Mac, the scroll wheel reports a delta of 1 for each detent.
|
||||
// There's also acceleration for faster scrolling, based on a slider in the system preferences.
|
||||
const S32 WHEEL_DELTA = 1; /* Value for rolling one detent */
|
||||
const S32 BITS_PER_PIXEL = 32;
|
||||
const S32 MAX_NUM_RESOLUTIONS = 32;
|
||||
|
||||
|
||||
//
|
||||
// LLWindowMacOSX
|
||||
//
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@
|
|||
#include "lluuid.h"
|
||||
#include "lldir.h"
|
||||
|
||||
const S32 MAX_COLUMN_WIDTH = 80;
|
||||
|
||||
// static
|
||||
BOOL LLXMLNode::sStripEscapedStrings = TRUE;
|
||||
BOOL LLXMLNode::sStripWhitespaceValues = FALSE;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ void LLScriptLSOParse::printRegisters(LLFILE *fp)
|
|||
else if (gMajorVersion == LSL2_MAJOR_VERSION_TWO)
|
||||
{
|
||||
U64 data = get_register_u64(mRawData, (LSCRIPTRegisters)i);
|
||||
fprintf(fp, "%s: 0x%X%X\n", gLSCRIPTRegisterNames[i], (U32)(data>>32), (U32)(data && 0xFFFFFFFF));
|
||||
fprintf(fp, "%s: 0x%X%X\n", gLSCRIPTRegisterNames[i], (U32)(data>>32), (U32)(data & 0xFFFFFFFF));
|
||||
}
|
||||
}
|
||||
fprintf(fp, "=============================\n\n");
|
||||
|
|
|
|||
|
|
@ -363,10 +363,10 @@ void MediaPluginExample::update( F64 milliseconds )
|
|||
};
|
||||
|
||||
if ( mXpos[ n ] + mXInc[ n ] < 0 || mXpos[ n ] + mXInc[ n ] >= mWidth - mBlockSize[ n ] )
|
||||
mXInc[ n ] =- mXInc[ n ];
|
||||
mXInc[ n ]= -mXInc[ n ];
|
||||
|
||||
if ( mYpos[ n ] + mYInc[ n ] < 0 || mYpos[ n ] + mYInc[ n ] >= mHeight - mBlockSize[ n ] )
|
||||
mYInc[ n ] =- mYInc[ n ];
|
||||
mYInc[ n ]= -mYInc[ n ];
|
||||
|
||||
mXpos[ n ] += mXInc[ n ];
|
||||
mYpos[ n ] += mYInc[ n ];
|
||||
|
|
|
|||
|
|
@ -1298,7 +1298,7 @@ set(viewer_HEADER_FILES
|
|||
|
||||
source_group("CMake Rules" FILES ViewerInstall.cmake)
|
||||
|
||||
# the viewer_version.txt file created here is for passing to viewer_manifest
|
||||
# the viewer_version.txt file created here is for passing to viewer_manifest and autobuild
|
||||
# the summary.json file is created for the benefit of the TeamCity builds, where
|
||||
# it is used to provide descriptive information to the build results page
|
||||
add_custom_target(generate_viewer_version ALL
|
||||
|
|
@ -1663,6 +1663,9 @@ if (WINDOWS)
|
|||
LINK_FLAGS_DEBUG "/NODEFAULTLIB:\"LIBCMT;LIBCMTD;MSVCRT\" /INCREMENTAL:NO /LARGEADDRESSAWARE"
|
||||
LINK_FLAGS_RELEASE "/FORCE:MULTIPLE /MAP\"secondlife-bin.MAP\" /OPT:REF /LARGEADDRESSAWARE"
|
||||
)
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} generate_viewer_version)
|
||||
|
||||
if(USE_PRECOMPILED_HEADERS)
|
||||
set_target_properties(
|
||||
${VIEWER_BINARY_NAME}
|
||||
|
|
@ -1798,7 +1801,6 @@ if (WINDOWS)
|
|||
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/copy_touched.bat
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
generate_viewer_version
|
||||
stage_third_party_libs
|
||||
${COPY_INPUT_DEPENDENCIES}
|
||||
COMMENT "Performing viewer_manifest copy"
|
||||
|
|
@ -1870,10 +1872,9 @@ if (WINDOWS)
|
|||
${COPY_INPUT_DEPENDENCIES}
|
||||
)
|
||||
|
||||
add_custom_target(package ALL DEPENDS
|
||||
add_custom_target(llpackage ALL DEPENDS
|
||||
${CMAKE_CFG_INTDIR}/touched.bat
|
||||
windows-setup-build-all
|
||||
generate_viewer_version
|
||||
)
|
||||
# temporarily disable packaging of event_host until hg subrepos get
|
||||
# sorted out on the parabuild cluster...
|
||||
|
|
@ -1988,6 +1989,8 @@ if (LINUX)
|
|||
llcommon
|
||||
)
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} generate_viewer_version)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${product}.tar.bz2
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
|
|
@ -2006,7 +2009,6 @@ if (LINUX)
|
|||
--touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
generate_viewer_version
|
||||
${COPY_INPUT_DEPENDENCIES}
|
||||
)
|
||||
|
||||
|
|
@ -2031,7 +2033,6 @@ if (LINUX)
|
|||
--source=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
generate_viewer_version
|
||||
${COPY_INPUT_DEPENDENCIES}
|
||||
COMMENT "Performing viewer_manifest copy"
|
||||
)
|
||||
|
|
@ -2039,10 +2040,10 @@ if (LINUX)
|
|||
add_custom_target(copy_l_viewer_manifest ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.copy_touched)
|
||||
|
||||
if (PACKAGE)
|
||||
add_custom_target(package ALL DEPENDS ${product}.tar.bz2)
|
||||
add_custom_target(llpackage ALL DEPENDS ${product}.tar.bz2)
|
||||
# Make sure we don't run two instances of viewer_manifest.py at the same time.
|
||||
add_dependencies(package copy_l_viewer_manifest)
|
||||
check_message_template(package)
|
||||
add_dependencies(llpackage copy_l_viewer_manifest)
|
||||
check_message_template(llpackage)
|
||||
endif (PACKAGE)
|
||||
endif (LINUX)
|
||||
|
||||
|
|
@ -2073,6 +2074,8 @@ if (DARWIN)
|
|||
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app/Contents/Info.plist"
|
||||
)
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} generate_viewer_version)
|
||||
|
||||
add_custom_command(
|
||||
TARGET ${VIEWER_BINARY_NAME} POST_BUILD
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
|
|
@ -2092,7 +2095,6 @@ if (DARWIN)
|
|||
DEPENDS
|
||||
${VIEWER_BINARY_NAME}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
generate_viewer_version
|
||||
)
|
||||
|
||||
add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_webkit mac-crash-logger)
|
||||
|
|
@ -2104,11 +2106,11 @@ if (DARWIN)
|
|||
endif (ENABLE_SIGNING)
|
||||
|
||||
if (PACKAGE)
|
||||
add_custom_target(package ALL DEPENDS ${VIEWER_BINARY_NAME})
|
||||
add_dependencies(package generate_viewer_version)
|
||||
add_custom_target(llpackage ALL DEPENDS ${VIEWER_BINARY_NAME})
|
||||
add_dependencies(llpackage generate_viewer_version)
|
||||
|
||||
add_custom_command(
|
||||
TARGET package POST_BUILD
|
||||
TARGET llpackage POST_BUILD
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
|
|
@ -2127,7 +2129,6 @@ if (DARWIN)
|
|||
${SIGNING_SETTING}
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
|
||||
generate_viewer_version
|
||||
)
|
||||
endif (PACKAGE)
|
||||
endif (DARWIN)
|
||||
|
|
@ -2190,7 +2191,7 @@ if (PACKAGE)
|
|||
|
||||
add_custom_target(generate_breakpad_symbols DEPENDS "${VIEWER_SYMBOL_FILE}")
|
||||
add_dependencies(generate_breakpad_symbols "${VIEWER_BINARY_NAME}" "${VIEWER_COPY_MANIFEST}")
|
||||
add_dependencies(package generate_breakpad_symbols)
|
||||
add_dependencies(llpackage generate_breakpad_symbols)
|
||||
endif(RELEASE_CRASH_REPORTING OR NON_RELEASE_CRASH_REPORTING)
|
||||
endif (PACKAGE)
|
||||
|
||||
|
|
|
|||
|
|
@ -408,10 +408,8 @@ LLAgent::LLAgent() :
|
|||
mCurrentFidget(0),
|
||||
mFirstLogin(FALSE),
|
||||
mOutfitChosen(FALSE),
|
||||
|
||||
mVoiceConnected(false),
|
||||
|
||||
mAppearanceSerialNum(0),
|
||||
mVoiceConnected(false),
|
||||
|
||||
mMouselookModeInSignal(NULL),
|
||||
mMouselookModeOutSignal(NULL)
|
||||
|
|
@ -2260,8 +2258,6 @@ void LLAgent::heardChat(const LLUUID& id)
|
|||
mChatTimer.reset();
|
||||
}
|
||||
|
||||
const F32 SIT_POINT_EXTENTS = 0.2f;
|
||||
|
||||
LLSD ll_sdmap_from_vector3(const LLVector3& vec)
|
||||
{
|
||||
LLSD ret;
|
||||
|
|
|
|||
|
|
@ -787,8 +787,7 @@ public:
|
|||
|
||||
private:
|
||||
BOOL mShowAvatar; // Should we render the avatar?
|
||||
U32 mAppearanceSerialNum;
|
||||
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Rendering state bitmap helpers
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -885,7 +885,6 @@ void LLAgentCamera::cameraZoomIn(const F32 fraction)
|
|||
}
|
||||
|
||||
|
||||
LLVector3d camera_offset(mCameraFocusOffsetTarget);
|
||||
LLVector3d camera_offset_unit(mCameraFocusOffsetTarget);
|
||||
F32 min_zoom = LAND_MIN_ZOOM;
|
||||
F32 current_distance = (F32)camera_offset_unit.normalize();
|
||||
|
|
@ -957,7 +956,6 @@ void LLAgentCamera::cameraOrbitIn(const F32 meters)
|
|||
}
|
||||
else
|
||||
{
|
||||
LLVector3d camera_offset(mCameraFocusOffsetTarget);
|
||||
LLVector3d camera_offset_unit(mCameraFocusOffsetTarget);
|
||||
F32 current_distance = (F32)camera_offset_unit.normalize();
|
||||
F32 new_distance = current_distance - meters;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue