Skip to content
Snippets Groups Projects
Commit e29d3aa2 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Remove jsoncpp

parent c7b2847e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,6 @@ set(cmake_SOURCE_FILES ...@@ -29,7 +29,6 @@ set(cmake_SOURCE_FILES
FindGLH.cmake FindGLH.cmake
FindGoogleBreakpad.cmake FindGoogleBreakpad.cmake
FindHUNSPELL.cmake FindHUNSPELL.cmake
FindJsonCpp.cmake
FindNDOF.cmake FindNDOF.cmake
FindOpenJPEG.cmake FindOpenJPEG.cmake
FindURIPARSER.cmake FindURIPARSER.cmake
...@@ -44,7 +43,6 @@ set(cmake_SOURCE_FILES ...@@ -44,7 +43,6 @@ set(cmake_SOURCE_FILES
Havok.cmake Havok.cmake
Hunspell.cmake Hunspell.cmake
JPEG.cmake JPEG.cmake
JsonCpp.cmake
LLAddBuildTest.cmake LLAddBuildTest.cmake
LLAppearance.cmake LLAppearance.cmake
LLAudio.cmake LLAudio.cmake
......
# -*- cmake -*-
# - Find JSONCpp
# Find the JSONCpp includes and library
# This module defines
# JSONCPP_INCLUDE_DIR, where to find json.h, etc.
# JSONCPP_LIBRARIES, the libraries needed to use jsoncpp.
# JSONCPP_FOUND, If false, do not try to use jsoncpp.
# also defined, but not for general use are
# JSONCPP_LIBRARY, where to find the jsoncpp library.
FIND_PATH(JSONCPP_INCLUDE_DIR jsoncpp/json.h
/usr/local/include
/usr/include
)
# Get the GCC compiler version
EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE _gcc_COMPILER_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Try to find a library that was compiled with the same compiler version as we currently use.
SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson_linux-gcc-${_gcc_COMPILER_VERSION}_libmt.so)
IF (USESYSTEMLIBS)
# On standalone, assume that the system installed library was compiled with the used compiler.
SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson.so)
ENDIF (USESYSTEMLIBS)
FIND_LIBRARY(JSONCPP_LIBRARY
NAMES ${JSONCPP_NAMES}
PATHS /usr/lib /usr/local/lib
)
IF (JSONCPP_LIBRARY AND JSONCPP_INCLUDE_DIR)
SET(JSONCPP_LIBRARIES ${JSONCPP_LIBRARY})
SET(JSONCPP_FOUND "YES")
ELSE (JSONCPP_LIBRARY AND JSONCPP_INCLUDE_DIR)
SET(JSONCPP_FOUND "NO")
ENDIF (JSONCPP_LIBRARY AND JSONCPP_INCLUDE_DIR)
IF (JSONCPP_FOUND)
IF (NOT JSONCPP_FIND_QUIETLY)
MESSAGE(STATUS "Found JSONCpp: ${JSONCPP_LIBRARIES}")
ENDIF (NOT JSONCPP_FIND_QUIETLY)
ELSE (JSONCPP_FOUND)
IF (JSONCPP_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find JSONCpp library")
ENDIF (JSONCPP_FIND_REQUIRED)
ENDIF (JSONCPP_FOUND)
# Deprecated declarations.
SET (NATIVE_JSONCPP_INCLUDE_PATH ${JSONCPP_INCLUDE_DIR} )
GET_FILENAME_COMPONENT (NATIVE_JSONCPP_LIB_PATH ${JSONCPP_LIBRARY} PATH)
MARK_AS_ADVANCED(
JSONCPP_LIBRARY
JSONCPP_INCLUDE_DIR
)
# -*- cmake -*-
include(Prebuilt)
set(JSONCPP_FIND_QUIETLY ON)
set(JSONCPP_FIND_REQUIRED ON)
if (USESYSTEMLIBS)
include(FindJsonCpp)
else (USESYSTEMLIBS)
use_prebuilt_binary(jsoncpp)
if (WINDOWS)
set(JSONCPP_LIBRARIES
debug json_libmdd.lib
optimized json_libmd.lib)
elseif (DARWIN)
set(JSONCPP_LIBRARIES libjson_darwin_libmt.a)
elseif (LINUX)
set(JSONCPP_LIBRARIES libjson_linux-gcc-4.1.3_libmt.a)
endif (WINDOWS)
set(JSONCPP_INCLUDE_DIR "${LIBS_PREBUILT_DIR}/include/jsoncpp" "${LIBS_PREBUILT_DIR}/include/json")
endif (USESYSTEMLIBS)
...@@ -4,10 +4,10 @@ project(llcommon) ...@@ -4,10 +4,10 @@ project(llcommon)
include(00-Common) include(00-Common)
include(LLCommon) include(LLCommon)
include(LLMath)
include(Linking) include(Linking)
include(Boost) include(Boost)
include(LLSharedLibs) include(LLSharedLibs)
include(JsonCpp)
include(GoogleBreakpad) include(GoogleBreakpad)
include(Copy3rdPartyLibs) include(Copy3rdPartyLibs)
include(ZLIB) include(ZLIB)
...@@ -16,7 +16,7 @@ include(URIPARSER) ...@@ -16,7 +16,7 @@ include(URIPARSER)
include_directories( include_directories(
${EXPAT_INCLUDE_DIRS} ${EXPAT_INCLUDE_DIRS}
${LLCOMMON_INCLUDE_DIRS} ${LLCOMMON_INCLUDE_DIRS}
${JSONCPP_INCLUDE_DIR} ${LLMATH_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS}
${BREAKPAD_INCLUDE_DIRECTORIES} ${BREAKPAD_INCLUDE_DIRECTORIES}
${URIPARSER_INCLUDE_DIRS} ${URIPARSER_INCLUDE_DIRS}
...@@ -290,7 +290,6 @@ target_link_libraries( ...@@ -290,7 +290,6 @@ target_link_libraries(
${APRUTIL_LIBRARIES} ${APRUTIL_LIBRARIES}
${APR_LIBRARIES} ${APR_LIBRARIES}
${EXPAT_LIBRARIES} ${EXPAT_LIBRARIES}
${JSONCPP_LIBRARIES}
${ZLIB_LIBRARIES} ${ZLIB_LIBRARIES}
${WINDOWS_LIBRARIES} ${WINDOWS_LIBRARIES}
${BOOST_FIBER_LIBRARY} ${BOOST_FIBER_LIBRARY}
......
...@@ -13,7 +13,6 @@ include(LLAddBuildTest) ...@@ -13,7 +13,6 @@ include(LLAddBuildTest)
include(Python) include(Python)
include(Tut) include(Tut)
include(Python) include(Python)
include(JsonCpp)
include_directories (${CMAKE_CURRENT_SOURCE_DIR}) include_directories (${CMAKE_CURRENT_SOURCE_DIR})
...@@ -23,7 +22,6 @@ include_directories( ...@@ -23,7 +22,6 @@ include_directories(
${LLMATH_INCLUDE_DIRS} ${LLMATH_INCLUDE_DIRS}
${LLMESSAGE_INCLUDE_DIRS} ${LLMESSAGE_INCLUDE_DIRS}
${LLVFS_INCLUDE_DIRS} ${LLVFS_INCLUDE_DIRS}
${JSONCPP_INCLUDE_DIR}
) )
set(llmessage_SOURCE_FILES set(llmessage_SOURCE_FILES
...@@ -210,7 +208,6 @@ target_link_libraries( ...@@ -210,7 +208,6 @@ target_link_libraries(
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${LLVFS_LIBRARIES} ${LLVFS_LIBRARIES}
${LLMATH_LIBRARIES} ${LLMATH_LIBRARIES}
${JSONCPP_LIBRARIES}
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}
${CRYPTO_LIBRARIES} ${CRYPTO_LIBRARIES}
${NGHTTP2_LIBRARIES} ${NGHTTP2_LIBRARIES}
...@@ -228,7 +225,6 @@ target_link_libraries( ...@@ -228,7 +225,6 @@ target_link_libraries(
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${LLVFS_LIBRARIES} ${LLVFS_LIBRARIES}
${LLMATH_LIBRARIES} ${LLMATH_LIBRARIES}
${JSONCPP_LIBRARIES}
${OPENSSL_LIBRARIES} ${OPENSSL_LIBRARIES}
${CRYPTO_LIBRARIES} ${CRYPTO_LIBRARIES}
${NGHTTP2_LIBRARIES} ${NGHTTP2_LIBRARIES}
...@@ -263,7 +259,6 @@ if (LINUX) ...@@ -263,7 +259,6 @@ if (LINUX)
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${LLMESSAGE_LIBRARIES} ${LLMESSAGE_LIBRARIES}
${LLCOREHTTP_LIBRARIES} ${LLCOREHTTP_LIBRARIES}
${JSONCPP_LIBRARIES}
${BOOST_FIBER_LIBRARY} ${BOOST_FIBER_LIBRARY}
${BOOST_CONTEXT_LIBRARY} ${BOOST_CONTEXT_LIBRARY}
rt rt
...@@ -278,7 +273,6 @@ else (LINUX) ...@@ -278,7 +273,6 @@ else (LINUX)
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${LLMESSAGE_LIBRARIES} ${LLMESSAGE_LIBRARIES}
${LLCOREHTTP_LIBRARIES} ${LLCOREHTTP_LIBRARIES}
${JSONCPP_LIBRARIES}
${BOOST_FIBER_LIBRARY} ${BOOST_FIBER_LIBRARY}
${BOOST_CONTEXT_LIBRARY} ${BOOST_CONTEXT_LIBRARY}
) )
......
...@@ -20,7 +20,6 @@ include(EXPAT) ...@@ -20,7 +20,6 @@ include(EXPAT)
include(FMODSTUDIO) include(FMODSTUDIO)
include(GLOD) include(GLOD)
include(Hunspell) include(Hunspell)
include(JsonCpp)
include(LLAppearance) include(LLAppearance)
include(LLAudio) include(LLAudio)
include(LLCA) include(LLCA)
...@@ -70,7 +69,6 @@ endif(USE_FMODSTUDIO) ...@@ -70,7 +69,6 @@ endif(USE_FMODSTUDIO)
include_directories( include_directories(
${DBUSGLIB_INCLUDE_DIRS} ${DBUSGLIB_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS}
${JSONCPP_INCLUDE_DIR}
${GLOD_INCLUDE_DIR} ${GLOD_INCLUDE_DIR}
${LLAUDIO_INCLUDE_DIRS} ${LLAUDIO_INCLUDE_DIRS}
${LLCHARACTER_INCLUDE_DIRS} ${LLCHARACTER_INCLUDE_DIRS}
...@@ -2089,7 +2087,6 @@ target_link_libraries(${VIEWER_BINARY_NAME} ...@@ -2089,7 +2087,6 @@ target_link_libraries(${VIEWER_BINARY_NAME}
${FMODWRAPPER_LIBRARY} # must come after LLAudio ${FMODWRAPPER_LIBRARY} # must come after LLAudio
${GLOD_LIBRARIES} ${GLOD_LIBRARIES}
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
${JSONCPP_LIBRARIES}
${SDL_LIBRARY} ${SDL_LIBRARY}
${SMARTHEAP_LIBRARY} ${SMARTHEAP_LIBRARY}
${UI_LIBRARIES} ${UI_LIBRARIES}
...@@ -2471,7 +2468,6 @@ if (LL_TESTS) ...@@ -2471,7 +2468,6 @@ if (LL_TESTS)
set(test_libs set(test_libs
${LLCOMMON_LIBRARIES} ${LLCOMMON_LIBRARIES}
${JSONCPP_LIBRARIES}
${CURL_LIBRARIES} ${CURL_LIBRARIES}
${NGHTTP2_LIBRARIES} ${NGHTTP2_LIBRARIES}
) )
......
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
// Bugsplat (http://bugsplat.com) crash reporting tool // Bugsplat (http://bugsplat.com) crash reporting tool
#ifdef LL_BUGSPLAT #ifdef LL_BUGSPLAT
#include "BugSplat.h" #include "BugSplat.h"
#include "reader.h" // JsonCpp
#include "llagent.h" // for agent location #include "llagent.h" // for agent location
#include "llviewerregion.h" #include "llviewerregion.h"
#include "llvoavatarself.h" // for agent name #include "llvoavatarself.h" // for agent name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment