diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/cmake/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | indra/cmake/FindZLIB.cmake | 46 | ||||
| -rw-r--r-- | indra/cmake/FindZLIBNG.cmake | 46 | ||||
| -rw-r--r-- | indra/cmake/LLCommon.cmake | 2 | ||||
| -rw-r--r-- | indra/cmake/LLPrimitive.cmake | 7 | ||||
| -rw-r--r-- | indra/cmake/ZLIBNG.cmake (renamed from indra/cmake/ZLIB.cmake) | 20 | ||||
| -rw-r--r-- | indra/llcommon/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | indra/llcommon/llsdserialize.cpp | 2 | ||||
| -rw-r--r-- | indra/llcommon/llsys.cpp | 2 | ||||
| -rw-r--r-- | indra/llcorehttp/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | indra/llimage/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | indra/llprimitive/llmodel.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 2 | 
14 files changed, 78 insertions, 75 deletions
| diff --git a/indra/cmake/CMakeLists.txt b/indra/cmake/CMakeLists.txt index cca305c741..225e9fc536 100644 --- a/indra/cmake/CMakeLists.txt +++ b/indra/cmake/CMakeLists.txt @@ -35,7 +35,7 @@ set(cmake_SOURCE_FILES      FindSCP.cmake      FindURIPARSER.cmake      FindXmlRpcEpi.cmake -    FindZLIB.cmake +    FindZLIBNG.cmake      FMODSTUDIO.cmake      FreeType.cmake      GLEXT.cmake @@ -92,7 +92,7 @@ set(cmake_SOURCE_FILES      VisualLeakDetector.cmake      LibVLCPlugin.cmake      XmlRpcEpi.cmake -    ZLIB.cmake +    ZLIBNG.cmake      )  source_group("Shared Rules" FILES ${cmake_SOURCE_FILES}) diff --git a/indra/cmake/FindZLIB.cmake b/indra/cmake/FindZLIB.cmake deleted file mode 100644 index 03a7db9d6f..0000000000 --- a/indra/cmake/FindZLIB.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# -*- cmake -*- - -# - Find zlib -# Find the ZLIB includes and library -# This module defines -#  ZLIB_INCLUDE_DIRS, where to find zlib.h, etc. -#  ZLIB_LIBRARIES, the libraries needed to use zlib. -#  ZLIB_FOUND, If false, do not try to use zlib. -# -# This FindZLIB is about 43 times as fast the one provided with cmake (2.8.x), -# because it doesn't look up the version of zlib, resulting in a dramatic -# speed up for configure (from 4 minutes 22 seconds to 6 seconds). -# -# Note: Since this file is only used for standalone, the windows -# specific parts were left out. - -FIND_PATH(ZLIB_INCLUDE_DIR zlib.h -  NO_SYSTEM_ENVIRONMENT_PATH -  ) - -FIND_LIBRARY(ZLIB_LIBRARY z) - -if (ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR) -  SET(ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR}) -  SET(ZLIB_LIBRARIES ${ZLIB_LIBRARY}) -  SET(ZLIB_FOUND "YES") -else (ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR) -  SET(ZLIB_FOUND "NO") -endif (ZLIB_LIBRARY AND ZLIB_INCLUDE_DIR) - -if (ZLIB_FOUND) -  if (NOT ZLIB_FIND_QUIETLY) -    message(STATUS "Found ZLIB: ${ZLIB_LIBRARIES}") -    SET(ZLIB_FIND_QUIETLY TRUE) -  endif (NOT ZLIB_FIND_QUIETLY) -else (ZLIB_FOUND) -  if (ZLIB_FIND_REQUIRED) -    message(FATAL_ERROR "Could not find ZLIB library") -  endif (ZLIB_FIND_REQUIRED) -endif (ZLIB_FOUND) - -mark_as_advanced( -  ZLIB_LIBRARY -  ZLIB_INCLUDE_DIR -  ) - diff --git a/indra/cmake/FindZLIBNG.cmake b/indra/cmake/FindZLIBNG.cmake new file mode 100644 index 0000000000..6e3c8cdddb --- /dev/null +++ b/indra/cmake/FindZLIBNG.cmake @@ -0,0 +1,46 @@ +# -*- cmake -*- + +# - Find zlib-ng +# Find the ZLIB includes and library +# This module defines +#  ZLIBNG_INCLUDE_DIRS, where to find zlib.h, etc. +#  ZLIBNG_LIBRARIES, the libraries needed to use zlib. +#  ZLIBNG_FOUND, If false, do not try to use zlib. +# +# This FindZLIBNG is about 43 times as fast the one provided with cmake (2.8.x), +# because it doesn't look up the version of zlib, resulting in a dramatic +# speed up for configure (from 4 minutes 22 seconds to 6 seconds). +# +# Note: Since this file is only used for standalone, the windows +# specific parts were left out. + +FIND_PATH(ZLIBNG_INCLUDE_DIR zlib.h +  NO_SYSTEM_ENVIRONMENT_PATH +  ) + +FIND_LIBRARY(ZLIBNG_LIBRARY z) + +if (ZLIBNG_LIBRARY AND ZLIBNG_INCLUDE_DIR) +  SET(ZLIBNG_INCLUDE_DIRS ${ZLIBNG_INCLUDE_DIR}) +  SET(ZLIBNG_LIBRARIES ${ZLIBNG_LIBRARY}) +  SET(ZLIBNG_FOUND "YES") +else (ZLIBNG_LIBRARY AND ZLIBNG_INCLUDE_DIR) +  SET(ZLIBNG_FOUND "NO") +endif (ZLINGB_LIBRARY AND ZLIBNG_INCLUDE_DIR) + +if (ZLIBNG_FOUND) +  if (NOT ZLIBNG_FIND_QUIETLY) +    message(STATUS "Found ZLIBNG: ${ZLIBNG_LIBRARIES}") +    SET(ZLIBNG_FIND_QUIETLY TRUE) +  endif (NOT ZLIBNG_FIND_QUIETLY) +else (ZLIBNG_FOUND) +  if (ZLIBNG_FIND_REQUIRED) +    message(FATAL_ERROR "Could not find ZLIBNG library") +  endif (ZLIBNG_FIND_REQUIRED) +endif (ZLIBNG_FOUND) + +mark_as_advanced( +  ZLIBNG_LIBRARY +  ZLIBNG_INCLUDE_DIR +  ) + diff --git a/indra/cmake/LLCommon.cmake b/indra/cmake/LLCommon.cmake index 8900419f9b..9c8740793a 100644 --- a/indra/cmake/LLCommon.cmake +++ b/indra/cmake/LLCommon.cmake @@ -3,7 +3,7 @@  include(APR)  include(Boost)  include(EXPAT) -include(ZLIB) +include(ZLIBNG)  set(LLCOMMON_INCLUDE_DIRS      ${LIBS_OPEN_DIR}/llcommon diff --git a/indra/cmake/LLPrimitive.cmake b/indra/cmake/LLPrimitive.cmake index 93626f689f..91bba98840 100644 --- a/indra/cmake/LLPrimitive.cmake +++ b/indra/cmake/LLPrimitive.cmake @@ -5,6 +5,7 @@ include(Prebuilt)  include(Boost)  use_prebuilt_binary(colladadom) +use_prebuilt_binary(minizip-ng) # needed for colladadom  use_prebuilt_binary(pcre)  use_prebuilt_binary(libxml2) @@ -22,6 +23,8 @@ if (WINDOWS)          optimized pcrecpp          debug pcred          optimized pcre +        debug libminizip +        optimized libminizip          ${BOOST_SYSTEM_LIBRARIES}          )  elseif (DARWIN) @@ -29,7 +32,7 @@ elseif (DARWIN)          llprimitive          debug collada14dom-d          optimized collada14dom -        minizip +        libminizip           # for collada          xml2          pcrecpp          pcre @@ -40,7 +43,7 @@ elseif (LINUX)          llprimitive          debug collada14dom-d          optimized collada14dom -        minizip +        libminizip          xml2          pcrecpp          pcre diff --git a/indra/cmake/ZLIB.cmake b/indra/cmake/ZLIBNG.cmake index 6cff0753b2..1f46a23d92 100644 --- a/indra/cmake/ZLIB.cmake +++ b/indra/cmake/ZLIBNG.cmake @@ -1,17 +1,17 @@  # -*- cmake -*- -set(ZLIB_FIND_QUIETLY ON) -set(ZLIB_FIND_REQUIRED ON) +set(ZLIBNG_FIND_QUIETLY ON) +set(ZLIBNG_FIND_REQUIRED ON)  include(Prebuilt)  if (USESYSTEMLIBS) -  include(FindZLIB) +  include(FindZLIBNG)  else (USESYSTEMLIBS) -  use_prebuilt_binary(zlib) +  use_prebuilt_binary(zlib-ng)    if (WINDOWS) -    set(ZLIB_LIBRARIES  -      debug zlibd +    set(ZLIBNG_LIBRARIES  +      debug zlib        optimized zlib)    elseif (LINUX)      # @@ -26,10 +26,10 @@ else (USESYSTEMLIBS)      # second whole-archive load of the archive.  See viewer's      # CMakeLists.txt for more information.      # -    set(ZLIB_PRELOAD_ARCHIVES -Wl,--whole-archive z -Wl,--no-whole-archive) -    set(ZLIB_LIBRARIES z) +    set(ZLIBNG_PRELOAD_ARCHIVES -Wl,--whole-archive z -Wl,--no-whole-archive) +    set(ZLIBNG_LIBRARIES z)    elseif (DARWIN) -    set(ZLIB_LIBRARIES z) +    set(ZLIBNG_LIBRARIES z)    endif (WINDOWS) -  set(ZLIB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/zlib) +  set(ZLIBNG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/zlib-ng)  endif (USESYSTEMLIBS) diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt index 22dfe12e40..040b0eb23d 100644 --- a/indra/llcommon/CMakeLists.txt +++ b/indra/llcommon/CMakeLists.txt @@ -10,14 +10,14 @@ include(Boost)  include(LLSharedLibs)  include(JsonCpp)  include(Copy3rdPartyLibs) -include(ZLIB) +include(ZLIBNG)  include(URIPARSER)  include_directories(      ${EXPAT_INCLUDE_DIRS}      ${LLCOMMON_INCLUDE_DIRS}      ${JSONCPP_INCLUDE_DIR} -    ${ZLIB_INCLUDE_DIRS} +    ${ZLIBNG_INCLUDE_DIRS}      ${URIPARSER_INCLUDE_DIRS}      ) @@ -290,7 +290,7 @@ target_link_libraries(      ${APR_LIBRARIES}      ${EXPAT_LIBRARIES}      ${JSONCPP_LIBRARIES} -    ${ZLIB_LIBRARIES} +    ${ZLIBNG_LIBRARIES}      ${WINDOWS_LIBRARIES}      ${BOOST_FIBER_LIBRARY}      ${BOOST_CONTEXT_LIBRARY} diff --git a/indra/llcommon/llsdserialize.cpp b/indra/llcommon/llsdserialize.cpp index 022a5d4659..8b4a0ee6d8 100644 --- a/indra/llcommon/llsdserialize.cpp +++ b/indra/llcommon/llsdserialize.cpp @@ -37,7 +37,7 @@  #ifdef LL_USESYSTEMLIBS  # include <zlib.h>  #else -# include "zlib/zlib.h"  // for davep's dirty little zip functions +# include "zlib-ng/zlib.h"  // for davep's dirty little zip functions  #endif  #if !LL_WINDOWS diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp index b3a93e3254..f710f1b279 100644 --- a/indra/llcommon/llsys.cpp +++ b/indra/llcommon/llsys.cpp @@ -36,7 +36,7 @@  #ifdef LL_USESYSTEMLIBS  # include <zlib.h>  #else -# include "zlib/zlib.h" +# include "zlib-ng/zlib.h"  #endif  #include "llprocessor.h" diff --git a/indra/llcorehttp/CMakeLists.txt b/indra/llcorehttp/CMakeLists.txt index 6a301ad50d..c591680250 100644 --- a/indra/llcorehttp/CMakeLists.txt +++ b/indra/llcorehttp/CMakeLists.txt @@ -7,7 +7,7 @@ include(GoogleMock)  include(CURL)  include(OpenSSL)  include(NGHTTP2) -include(ZLIB) +include(ZLIBNG)  include(LLCoreHttp)  include(LLAddBuildTest)  include(LLMessage) diff --git a/indra/llimage/CMakeLists.txt b/indra/llimage/CMakeLists.txt index 28b8e8c06d..45fb126b10 100644 --- a/indra/llimage/CMakeLists.txt +++ b/indra/llimage/CMakeLists.txt @@ -9,7 +9,7 @@ include(LLMath)  include(LLVFS)  include(LLKDU)  include(LLImageJ2COJ) -include(ZLIB) +include(ZLIBNG)  include(LLAddBuildTest)  include(bugsplat)  include(Tut) @@ -20,7 +20,7 @@ include_directories(      ${LLMATH_INCLUDE_DIRS}      ${LLVFS_INCLUDE_DIRS}      ${PNG_INCLUDE_DIRS} -    ${ZLIB_INCLUDE_DIRS} +    ${ZLIBNG_INCLUDE_DIRS}      )  set(llimage_SOURCE_FILES @@ -74,7 +74,7 @@ target_link_libraries(llimage      ${LLCOMMON_LIBRARIES}      ${JPEG_LIBRARIES}      ${PNG_LIBRARIES} -    ${ZLIB_LIBRARIES} +    ${ZLIBNG_LIBRARIES}      )  # Add tests diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index 702a1b5238..239b2aa878 100644 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -35,7 +35,7 @@  #ifdef LL_USESYSTEMLIBS  # include <zlib.h>  #else -# include "zlib/zlib.h" +# include "zlib-ng/zlib.h"  #endif  std::string model_names[] = diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 03d2ea06f0..cc27232eae 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -52,7 +52,7 @@ include(UnixInstall)  include(ViewerMiscLibs)  include(ViewerManager)  include(VisualLeakDetector) -include(ZLIB) +include(ZLIBNG)  include(URIPARSER)  if (NOT HAVOK_TPV) @@ -2007,14 +2007,14 @@ endif (WINDOWS)  #  # We generally want the newest version of the library to provide all symbol  # resolution.  To that end, when using static archives, the *_PRELOAD_ARCHIVES -# variables, PNG_PRELOAD_ARCHIVES and ZLIB_PRELOAD_ARCHIVES, get the archives +# variables, PNG_PRELOAD_ARCHIVES and ZLIBNG_PRELOAD_ARCHIVES, get the archives  # dumped into the target binary and runtime lookup will find the most  # modern version.  target_link_libraries(${VIEWER_BINARY_NAME}      ${LEGACY_STDIO_LIBS}      ${PNG_PRELOAD_ARCHIVES} -    ${ZLIB_PRELOAD_ARCHIVES} +    ${ZLIBNG_PRELOAD_ARCHIVES}      ${URIPARSER_PRELOAD_ARCHIVES}      ${GOOGLE_PERFTOOLS_LIBRARIES}      ${LLAUDIO_LIBRARIES} diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 63e48d1dd0..ea8b74d2c0 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -72,7 +72,7 @@  #ifdef LL_USESYSTEMLIBS  #include <zlib.h>  #else -#include "zlib/zlib.h" +#include "zlib-ng/zlib.h"  #endif  #include "object_flags.h" | 
