diff options
author | Kartic Krishnamurthy <drunkensufi@lindenlab.com> | 2008-11-07 00:07:44 +0000 |
---|---|---|
committer | Kartic Krishnamurthy <drunkensufi@lindenlab.com> | 2008-11-07 00:07:44 +0000 |
commit | b2bfb128e7d30e1cdb293a2ac192a0cbe63fe528 (patch) | |
tree | 29fbacff21395f53f5b029796f90a34638118fe9 | |
parent | 24ff4831f2a24045b3d06e81581dbe6d20475722 (diff) |
Merged into release with command:
=================================
svn merge -r100865:101402 svn+ssh://svn/svn/linden/branches/purge-dpo-code-for-merge .
QAR-951 : Sandbox QA for DEV 20842 - Ensure DPO is not enabled accidentally
QAR-967 : Merge Build for DEV 20842 - Ensure DPOis not enabled accidentally
QA tested: Beast, Oskar
DEV's fulfilled as part of this branch:
======================================
DEV-20842 Prevent accidental activation of DPO procs
DEV-23028 Mac build fails - link error dual inclusion
DEV-20824 VWR-9255: Build fails on mac_updater and mac_crash_logger targets due to info.plist problems
DEV-22997 Xcode project: 'server' target has no dependencies
DEV-23353 Friend request custom messages come through as an asset tag.
DEV-23309 Voice Chat Indicator does not show active voice status
DEV-23187 Can't teleport to home location
-rw-r--r-- | doc/contributions.txt | 1 | ||||
-rw-r--r-- | indra/CMakeLists.txt | 4 | ||||
-rw-r--r-- | indra/cmake/APR.cmake | 18 | ||||
-rw-r--r-- | indra/cmake/CMakeLists.txt | 1 | ||||
-rw-r--r-- | indra/cmake/Linking.cmake | 8 | ||||
-rw-r--r-- | indra/lib/python/indra/util/named_query.py | 16 | ||||
-rw-r--r-- | indra/mac_crash_logger/CMakeLists.txt | 11 | ||||
-rw-r--r-- | indra/mac_updater/CMakeLists.txt | 13 | ||||
-rw-r--r-- | indra/test/llsd_new_tut.cpp | 11 |
9 files changed, 46 insertions, 37 deletions
diff --git a/doc/contributions.txt b/doc/contributions.txt index df8d8a979a..488bacc8ed 100644 --- a/doc/contributions.txt +++ b/doc/contributions.txt @@ -14,6 +14,7 @@ Adam Marker Aimee Trescothick VWR-3903 VWR-4083 + VWR-9255 Alejandro Rosenthal VWR-1184 Alissa Sabre diff --git a/indra/CMakeLists.txt b/indra/CMakeLists.txt index fac2afa5a1..c473b94ff7 100644 --- a/indra/CMakeLists.txt +++ b/indra/CMakeLists.txt @@ -19,6 +19,10 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") include(Variables) +if (DARWIN) + cmake_minimum_required(VERSION 2.6.2 FATAL_ERROR) +endif (DARWIN) + if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type. One of: Debug Release RelWithDebInfo" FORCE) diff --git a/indra/cmake/APR.cmake b/indra/cmake/APR.cmake index fe3ca941ee..523d8ee27e 100644 --- a/indra/cmake/APR.cmake +++ b/indra/cmake/APR.cmake @@ -15,23 +15,17 @@ if (STANDALONE) else (STANDALONE) use_prebuilt_binary(apr_suite) if (WINDOWS) - set(WINLIBS_PREBUILT_DEBUG_DIR - ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug - ) - set(WINLIBS_PREBUILT_RELEASE_DIR - ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release - ) set(APR_LIBRARIES - debug ${WINLIBS_PREBUILT_DEBUG_DIR}/apr-1.lib - optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/apr-1.lib + debug ${ARCH_PREBUILT_DIRS_DEBUG}/apr-1.lib + optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apr-1.lib ) set(APRUTIL_LIBRARIES - debug ${WINLIBS_PREBUILT_DEBUG_DIR}/aprutil-1.lib - optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/aprutil-1.lib + debug ${ARCH_PREBUILT_DIRS_DEBUG}/aprutil-1.lib + optimized ${ARCH_PREBUILT_DIRS_RELEASE}/aprutil-1.lib ) set(APRICONV_LIBRARIES - debug ${WINLIBS_PREBUILT_DEBUG_DIR}/apriconv-1.lib - optimized ${WINLIBS_PREBUILT_RELEASE_DIR}/apriconv-1.lib + debug ${ARCH_PREBUILT_DIRS_DEBUG}/apriconv-1.lib + optimized ${ARCH_PREBUILT_DIRS_RELEASE}/apriconv-1.lib ) elseif (DARWIN) set(APR_LIBRARIES diff --git a/indra/cmake/CMakeLists.txt b/indra/cmake/CMakeLists.txt index 1b9bcffd16..a2658d3f3a 100644 --- a/indra/cmake/CMakeLists.txt +++ b/indra/cmake/CMakeLists.txt @@ -48,7 +48,6 @@ set(cmake_SOURCE_FILES LLMath.cmake LLMedia.cmake LLMessage.cmake - LLPhysics.cmake LLPrimitive.cmake LLRender.cmake LLScene.cmake diff --git a/indra/cmake/Linking.cmake b/indra/cmake/Linking.cmake index c9748e3b28..167c5dd31c 100644 --- a/indra/cmake/Linking.cmake +++ b/indra/cmake/Linking.cmake @@ -7,15 +7,15 @@ if (NOT STANDALONE) set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug) elseif (LINUX) if (VIEWER) - set(ARCH_PREBUILT_DIRS - ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) - set(ARCH_PREBUILT_DIRS_RELEASE ${ARCH_PREBUILT_DIRS}) - set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS}) + set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) else (VIEWER) set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) endif (VIEWER) + set(ARCH_PREBUILT_DIRS_RELEASE ${ARCH_PREBUILT_DIRS}) + set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS}) elseif (DARWIN) set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) + set(ARCH_PREBUILT_DIRS ${ARCH_PREBUILT_DIRS_RELEASE}) set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS_RELEASE}) endif (WINDOWS) endif (NOT STANDALONE) diff --git a/indra/lib/python/indra/util/named_query.py b/indra/lib/python/indra/util/named_query.py index 1457ff2a30..e1f1ad2002 100644 --- a/indra/lib/python/indra/util/named_query.py +++ b/indra/lib/python/indra/util/named_query.py @@ -103,10 +103,11 @@ class NamedQuery(object): def __init__(self, name, filename): """ Construct a NamedQuery object. The name argument is an arbitrary name as a handle for the query, and the filename is - a path to a file containing an llsd named query document.""" + a path to a file or a file-like object containing an llsd named + query document.""" self._stat_interval_seconds = 5 # 5 seconds self._name = name - if (filename is not None + if (filename is not None and isinstance(filename, (str, unicode)) and NQ_FILE_SUFFIX != filename[-NQ_FILE_SUFFIX_LEN:]): filename = filename + NQ_FILE_SUFFIX self._location = filename @@ -122,8 +123,8 @@ class NamedQuery(object): def get_modtime(self): """ Returns the mtime (last modified time) of the named query - file, if such exists.""" - if self._location: + filename. For file-like objects, expect a modtime of 0""" + if self._location and isinstance(self._location, (str, unicode)): return os.path.getmtime(self._location) return 0 @@ -131,7 +132,12 @@ class NamedQuery(object): """ Loads and parses the named query file into self. Does nothing if self.location is nonexistant.""" if self._location: - self._reference_contents(llsd.parse(open(self._location).read())) + if isinstance(self._location, (str, unicode)): + contents = llsd.parse(open(self._location).read()) + else: + # we probably have a file-like object. Godspeed! + contents = llsd.parse(self._location.read()) + self._reference_contents(contents) # Check for alternative implementations try: for name, alt in self._contents['alternative'].items(): diff --git a/indra/mac_crash_logger/CMakeLists.txt b/indra/mac_crash_logger/CMakeLists.txt index 3912595689..daf3e10857 100644 --- a/indra/mac_crash_logger/CMakeLists.txt +++ b/indra/mac_crash_logger/CMakeLists.txt @@ -35,7 +35,6 @@ set_source_files_properties(${mac_crash_logger_HEADER_FILES} list(APPEND mac_crash_logger_SOURCE_FILES ${mac_crash_logger_HEADER_FILES}) set(mac_crash_logger_RESOURCE_FILES - Info.plist CrashReporter.nib/ ) set_source_files_properties( @@ -43,11 +42,6 @@ set_source_files_properties( PROPERTIES HEADER_FILE_ONLY TRUE ) -set_source_files_properties( - Info.plist - PROPERTIES - MACOSX_PACKAGE_LOCATION . # will it blend? + poppy - ) SOURCE_GROUP("Resources" FILES ${mac_crash_logger_RESOURCE_FILES}) list(APPEND mac_crash_logger_SOURCE_FILES ${mac_crash_logger_RESOURCE_FILES}) @@ -55,6 +49,11 @@ add_executable(mac-crash-logger MACOSX_BUNDLE ${mac_crash_logger_SOURCE_FILES}) +set_target_properties(mac-crash-logger + PROPERTIES + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist + ) + target_link_libraries(mac-crash-logger ${LLCRASHLOGGER_LIBRARIES} ${LLVFS_LIBRARIES} diff --git a/indra/mac_updater/CMakeLists.txt b/indra/mac_updater/CMakeLists.txt index 3ac5aeebd5..0eac76fa69 100644 --- a/indra/mac_updater/CMakeLists.txt +++ b/indra/mac_updater/CMakeLists.txt @@ -42,7 +42,6 @@ list(APPEND mac_updater_SOURCE_FILES ${mac_updater_HEADER_FILES}) set(mac_updater_RESOURCE_FILES - Info.plist AutoUpdater.nib/ ) set_source_files_properties( @@ -50,19 +49,18 @@ set_source_files_properties( PROPERTIES HEADER_FILE_ONLY TRUE ) -set_source_files_properties( - Info.plist - PROPERTIES - MACOSX_PACKAGE_LOCATION . # will it blend? + poppy - ) SOURCE_GROUP("Resources" FILES ${mac_updater_RESOURCE_FILES}) list(APPEND mac_updater_SOURCE_FILES ${mac_updater_RESOURCE_FILES}) - add_executable(mac-updater MACOSX_BUNDLE ${mac_updater_SOURCE_FILES}) +set_target_properties(mac-updater + PROPERTIES + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist + ) + target_link_libraries(mac-updater ${LLVFS_LIBRARIES} ${CURL_LIBRARIES} @@ -79,4 +77,3 @@ add_custom_command( ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mac-updater.app/Contents/Resources/AutoUpdater.nib ) - diff --git a/indra/test/llsd_new_tut.cpp b/indra/test/llsd_new_tut.cpp index 529e0df20f..18d329ce8b 100644 --- a/indra/test/llsd_new_tut.cpp +++ b/indra/test/llsd_new_tut.cpp @@ -108,7 +108,7 @@ namespace tut SDCleanupCheck check; LLSD v; - + v = true; ensureTypeAndValue("set true", v, true); v = false; ensureTypeAndValue("set false", v, false); v = true; ensureTypeAndValue("set true again", v, true); @@ -749,6 +749,15 @@ namespace tut } } + template<> template<> + void SDTestObject::test<14>() + // make sure that assignment of char* NULL in a string does not crash. + { + LLSD v; + v = (const char*)NULL; + ensure("type is a string", v.isString()); + } + /* TO DO: conversion of undefined to UUID, Date, URI and Binary conversion of undefined to map and array |