Skip to content
Snippets Groups Projects
Commit bfeaae9e authored by Merov Linden's avatar Merov Linden
Browse files

STORM-1023, STORM-1022 : pull into viewer-autobuild2010

parents fef21534 7f70bd69
No related branches found
No related tags found
No related merge requests found
# -*- cmake -*- # -*- cmake -*-
set(FMOD ON CACHE BOOL "Use FMOD sound library.") # FMOD can be set when launching the make using the argument -DFMOD:BOOL=ON
# When building using proprietary binaries though (i.e. having access to LL private servers),
# we always build with FMOD.
# Open source devs should use the -DFMOD:BOOL=ON then if they want to build with FMOD, whether
# they are using STANDALONE or not.
if (INSTALL_PROPRIETARY)
set(FMOD ON CACHE BOOL "Use FMOD sound library.")
endif (INSTALL_PROPRIETARY)
if (FMOD) if (FMOD)
if (STANDALONE) if (STANDALONE)
# In that case, we use the version of the library installed on the system
set(FMOD_FIND_REQUIRED ON) set(FMOD_FIND_REQUIRED ON)
include(FindFMOD) include(FindFMOD)
else (STANDALONE) else (STANDALONE)
if (INSTALL_PROPRIETARY) if (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
include(Prebuilt) # If the path have been specified in the arguments, use that
use_prebuilt_binary(fmod) set(FMOD_LIBRARIES ${FMOD_LIBRARY})
endif (INSTALL_PROPRIETARY) MESSAGE(STATUS "Using FMOD path: ${FMOD_LIBRARIES}, ${FMOD_INCLUDE_DIR}")
else (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
if (WINDOWS) # If not, we're going to try to get the package listed in autobuild.xml
set(FMOD_LIBRARY fmod) # Note: if you're not using INSTALL_PROPRIETARY, the package URL should be local (file:/// URL)
elseif (DARWIN) # as accessing the private LL location will fail if you don't have the credential
set(FMOD_LIBRARY fmod) include(Prebuilt)
elseif (LINUX) use_prebuilt_binary(fmod)
set(FMOD_LIBRARY fmod-3.75) if (WINDOWS)
endif (WINDOWS) set(FMOD_LIBRARY fmod)
elseif (DARWIN)
SET(FMOD_LIBRARIES ${FMOD_LIBRARY}) set(FMOD_LIBRARY fmod)
set(FMOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include) elseif (LINUX)
set(FMOD_LIBRARY fmod-3.75)
endif (WINDOWS)
set(FMOD_LIBRARIES ${FMOD_LIBRARY})
set(FMOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
endif (FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
endif (STANDALONE) endif (STANDALONE)
endif (FMOD) endif (FMOD)
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
FIND_PATH(FMOD_INCLUDE_DIR fmod.h PATH_SUFFIXES fmod) FIND_PATH(FMOD_INCLUDE_DIR fmod.h PATH_SUFFIXES fmod)
SET(FMOD_NAMES ${FMOD_NAMES} fmod fmodvc fmod-3.75) SET(FMOD_NAMES ${FMOD_NAMES} fmod fmodvc fmodex fmod-3.75)
FIND_LIBRARY(FMOD_LIBRARY FIND_LIBRARY(FMOD_LIBRARY
NAMES ${FMOD_NAMES} NAMES ${FMOD_NAMES}
PATH_SUFFIXES fmod PATH_SUFFIXES fmod
......
# -*- cmake -*- # -*- cmake -*-
include(Prebuilt)
# USE_KDU can be set when launching cmake as an option using the argument -DUSE_KDU:BOOL=ON # USE_KDU can be set when launching cmake as an option using the argument -DUSE_KDU:BOOL=ON
# When building using proprietary binaries though (i.e. having access to LL private servers), we always build with KDU # When building using proprietary binaries though (i.e. having access to LL private servers),
if (INSTALL_PROPRIETARY AND NOT STANDALONE) # we always build with KDU
set(USE_KDU ON) if (INSTALL_PROPRIETARY)
endif (INSTALL_PROPRIETARY AND NOT STANDALONE) set(USE_KDU ON CACHE BOOL "Use Kakadu library.")
endif (INSTALL_PROPRIETARY)
if (USE_KDU) if (USE_KDU)
include(Prebuilt)
use_prebuilt_binary(kdu) use_prebuilt_binary(kdu)
if (WINDOWS) if (WINDOWS)
set(KDU_LIBRARY kdu.lib) set(KDU_LIBRARY kdu.lib)
......
...@@ -11,38 +11,21 @@ macro (use_prebuilt_binary _binary) ...@@ -11,38 +11,21 @@ macro (use_prebuilt_binary _binary)
if(${CMAKE_BINARY_DIR}/temp/sentinel_installed IS_NEWER_THAN ${CMAKE_BINARY_DIR}/temp/${_binary}_installed) if(${CMAKE_BINARY_DIR}/temp/sentinel_installed IS_NEWER_THAN ${CMAKE_BINARY_DIR}/temp/${_binary}_installed)
if(INSTALL_PROPRIETARY) if(INSTALL_PROPRIETARY)
include(FindSCP) include(FindSCP)
if(DEBUG_PREBUILT)
message("cd ${CMAKE_SOURCE_DIR} && ${AUTOBUILD_EXECUTABLE} install
--install-dir=${AUTOBUILD_INSTALL_DIR}
#--scp="${SCP_EXECUTABLE}"
--skip-license-check
${_binary} ")
endif(DEBUG_PREBUILT)
execute_process(COMMAND "${AUTOBUILD_EXECUTABLE}"
install
--install-dir=${AUTOBUILD_INSTALL_DIR}
#--scp="${SCP_EXECUTABLE}"
--skip-license-check
${_binary}
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
RESULT_VARIABLE ${_binary}_installed
)
else(INSTALL_PROPRIETARY)
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
)
endif(INSTALL_PROPRIETARY) endif(INSTALL_PROPRIETARY)
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
)
file(WRITE ${CMAKE_BINARY_DIR}/temp/${_binary}_installed "${${_binary}_installed}") file(WRITE ${CMAKE_BINARY_DIR}/temp/${_binary}_installed "${${_binary}_installed}")
else(${CMAKE_BINARY_DIR}/temp/sentinel_installed IS_NEWER_THAN ${CMAKE_BINARY_DIR}/temp/${_binary}_installed) else(${CMAKE_BINARY_DIR}/temp/sentinel_installed IS_NEWER_THAN ${CMAKE_BINARY_DIR}/temp/${_binary}_installed)
set(${_binary}_installed 0) set(${_binary}_installed 0)
......
...@@ -48,6 +48,7 @@ include_directories( ...@@ -48,6 +48,7 @@ include_directories(
${LLAUDIO_INCLUDE_DIRS} ${LLAUDIO_INCLUDE_DIRS}
${LLCHARACTER_INCLUDE_DIRS} ${LLCHARACTER_INCLUDE_DIRS}
${LLCOMMON_INCLUDE_DIRS} ${LLCOMMON_INCLUDE_DIRS}
${FMOD_INCLUDE_DIR}
${LLIMAGE_INCLUDE_DIRS} ${LLIMAGE_INCLUDE_DIRS}
${LLKDU_INCLUDE_DIRS} ${LLKDU_INCLUDE_DIRS}
${LLINVENTORY_INCLUDE_DIRS} ${LLINVENTORY_INCLUDE_DIRS}
......
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