Skip to content
Snippets Groups Projects
Commit d23f7df8 authored by Andrew Meadows's avatar Andrew Meadows
Browse files

merge

parents cf64ecb4 c132d20a
No related branches found
No related tags found
No related merge requests found
Showing
with 338 additions and 133 deletions
...@@ -37,3 +37,9 @@ db0fe9bb65187f365e58a717dd23d0f4754a9c1d 2.3.0-beta2 ...@@ -37,3 +37,9 @@ db0fe9bb65187f365e58a717dd23d0f4754a9c1d 2.3.0-beta2
6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 2.3.0-beta3 6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 2.3.0-beta3
6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 2.3.0-release 6ad3d6fa35a4e320e9ce442fce2bf9c7fc852556 2.3.0-release
dbc206fc61d89ff4cfe15aade0bf0c7bc7fee1c9 2.4.0-start dbc206fc61d89ff4cfe15aade0bf0c7bc7fee1c9 2.4.0-start
dc6483491b4af559060bccaef8e9045a303212dd 2.4.0-beta1
dc6483491b4af559060bccaef8e9045a303212dd 2.4.0-beta1
3bc1f50a72e117f4d4ad8d555f0c785ea8cc201e 2.4.0-beta1
25bd6007e3d2fc15db9326ed4b18a24a5969a46a 2.4.0-beta2
1ed382c6a08ba3850b6ce9061bc551ddece0ea07 2.4.0-release
a82e5b1e22c7f90e3c7977d146b80588f004ed0d 2.5.0-start
...@@ -14,6 +14,9 @@ public_build = true ...@@ -14,6 +14,9 @@ public_build = true
# Update Public Inworld Build Status Indicators # Update Public Inworld Build Status Indicators
email_status_this_is_os = true email_status_this_is_os = true
# Limit extent of codeticket updates to revisions after...
codeticket_since = 2.2.0-release
# ======================================== # ========================================
# Viewer Development # Viewer Development
# ======================================== # ========================================
...@@ -206,5 +209,29 @@ viewer-tut-teamcity.email = enus@lindenlab.com ...@@ -206,5 +209,29 @@ viewer-tut-teamcity.email = enus@lindenlab.com
viewer-tut-teamcity.build_server = false viewer-tut-teamcity.build_server = false
viewer-tut-teamcity.build_server_tests = false viewer-tut-teamcity.build_server_tests = false
# ========================================
# experience
# ========================================
viewer-experience.public_build = false
viewer-experience.viewer_channel = "Second Life SkyLight Viewer"
viewer-experience.login_channel = "Second Life SkyLight Viewer"
# =================================================================
# asset delivery 2010 projects
# =================================================================
viewer-asset-delivery.viewer_channel = "Second Life Development"
viewer-asset-delivery.login_channel = "Second Life Development"
viewer-asset-delivery.build_viewer_update_version_manager = false
viewer-asset-delivery.email = monty@lindenlab.com
viewer-asset-delivery.build_server = false
viewer-asset-delivery.build_server_tests = false
viewer-asset-delivery-metrics.viewer_channel = "Second Life Development"
viewer-asset-delivery-metrics.login_channel = "Second Life Development"
viewer-asset-delivery-metrics.build_viewer_update_version_manager = false
viewer-asset-delivery-metrics.email = monty@lindenlab.com
viewer-asset-delivery-metrics.build_server = false
viewer-asset-delivery-metrics.build_server_tests = false
# eof # eof
...@@ -59,10 +59,11 @@ pre_build() ...@@ -59,10 +59,11 @@ pre_build()
-t $variant \ -t $variant \
-G "$cmake_generator" \ -G "$cmake_generator" \
configure \ configure \
-DGRID:STRING="$viewer_grid" \ -DGRID:STRING="$viewer_grid" \
-DVIEWER_CHANNEL:STRING="$viewer_channel" \ -DVIEWER_CHANNEL:STRING="$viewer_channel" \
-DVIEWER_LOGIN_CHANNEL:STRING="$login_channel" \ -DVIEWER_LOGIN_CHANNEL:STRING="$login_channel" \
-DINSTALL_PROPRIETARY:BOOL=ON \ -DINSTALL_PROPRIETARY:BOOL=ON \
-DRELEASE_CRASH_REPORTING:BOOL=ON \
-DLOCALIZESETUP:BOOL=ON \ -DLOCALIZESETUP:BOOL=ON \
-DPACKAGE:BOOL=ON \ -DPACKAGE:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
...@@ -169,13 +170,7 @@ do ...@@ -169,13 +170,7 @@ do
mkdir -p "$build_dir" mkdir -p "$build_dir"
if pre_build "$variant" "$build_dir" >> "$build_log" 2>&1 if pre_build "$variant" "$build_dir" >> "$build_log" 2>&1
then then
if $build_link_parallel if $build_coverity
then
begin_section BuildParallel
( build "$variant" "$build_dir" > "$build_dir/build.log" 2>&1 ) &
build_processes="$build_processes $!"
end_section BuildParallel
elif $build_coverity
then then
mkdir -p "$build_dir/cvbuild" mkdir -p "$build_dir/cvbuild"
coverity_config=`cygpath --windows "$coverity_dir/config/coverity_config.xml"` coverity_config=`cygpath --windows "$coverity_dir/config/coverity_config.xml"`
...@@ -197,7 +192,6 @@ do ...@@ -197,7 +192,6 @@ do
begin_section CovAnalyze\ begin_section CovAnalyze\
&&\ &&\
"$coverity_dir"/bin/cov-analyze\ "$coverity_dir"/bin/cov-analyze\
--cxx\
--security\ --security\
--concurrency\ --concurrency\
--dir "$coverity_tmpdir"\ --dir "$coverity_tmpdir"\
...@@ -208,14 +202,14 @@ do ...@@ -208,14 +202,14 @@ do
begin_section CovCommit\ begin_section CovCommit\
&&\ &&\
"$coverity_dir"/bin/cov-commit-defects\ "$coverity_dir"/bin/cov-commit-defects\
--product "$coverity_product"\ --stream "$coverity_product"\
--dir "$coverity_tmpdir"\ --dir "$coverity_tmpdir"\
--remote "$coverity_server"\ --host "$coverity_server"\
--strip-path "$coverity_root"\ --strip-path "$coverity_root"\
--target "$branch/$arch"\ --target "$branch/$arch"\
--version "$revision"\ --version "$revision"\
--description "$repo: $variant $revision"\ --description "$repo: $variant $revision"\
--user admin --password admin\ --user admin --password coverity\
>> "$build_log" 2>&1\ >> "$build_log" 2>&1\
|| record_failure "Coverity Build Failed" || record_failure "Coverity Build Failed"
# since any step could have failed, rely on the enclosing block to close any pending sub-blocks # since any step could have failed, rely on the enclosing block to close any pending sub-blocks
...@@ -226,6 +220,12 @@ do ...@@ -226,6 +220,12 @@ do
then then
upload_item log "$build_dir"/cvbuild/build-log.txt text/plain upload_item log "$build_dir"/cvbuild/build-log.txt text/plain
fi fi
elif $build_link_parallel
then
begin_section BuildParallel
( build "$variant" "$build_dir" > "$build_dir/build.log" 2>&1 ) &
build_processes="$build_processes $!"
end_section BuildParallel
else else
begin_section "Build$variant" begin_section "Build$variant"
build "$variant" "$build_dir" >> "$build_log" 2>&1 build "$variant" "$build_dir" >> "$build_log" 2>&1
......
...@@ -61,19 +61,27 @@ Aimee Trescothick ...@@ -61,19 +61,27 @@ Aimee Trescothick
Alejandro Rosenthal Alejandro Rosenthal
VWR-1184 VWR-1184
Aleric Inglewood Aleric Inglewood
SNOW-240
SNOW-522 SNOW-522
SNOW-626 SNOW-626
SNOW-756 SNOW-756
SNOW-764 SNOW-764
VWR-10001 VWR-10001
VWR-10579
VWR-10759 VWR-10759
VWR-10837 VWR-10837
VWR-12691 VWR-12691
VWR-12984 VWR-12984
VWR-13996 VWR-13996
VWR-14426 VWR-14426
VWR-24247
VWR-24251
VWR-24252
VWR-24254
VWR-24261
SNOW-84 SNOW-84
SNOW-477 SNOW-477
SNOW-744
SNOW-766 SNOW-766
STORM-163 STORM-163
Ales Beaumont Ales Beaumont
...@@ -211,6 +219,8 @@ Catherine Pfeffer ...@@ -211,6 +219,8 @@ Catherine Pfeffer
Celierra Darling Celierra Darling
VWR-1274 VWR-1274
VWR-6975 VWR-6975
Cron Stardust
VWR-10579
Cypren Christenson Cypren Christenson
STORM-417 STORM-417
Dale Glass Dale Glass
...@@ -354,8 +364,15 @@ JB Kraft ...@@ -354,8 +364,15 @@ JB Kraft
Joghert LeSabre Joghert LeSabre
VWR-64 VWR-64
Jonathan Yap Jonathan Yap
VWR-17801 STORM-596
STORM-523
STORM-616 STORM-616
STORM-679
STORM-737
STORM-726
STORM-812
VWR-17801
STORM-785
Kage Pixel Kage Pixel
VWR-11 VWR-11
Ken March Ken March
...@@ -369,6 +386,9 @@ Khyota Wulluf ...@@ -369,6 +386,9 @@ Khyota Wulluf
VWR-9966 VWR-9966
Kitty Barnett Kitty Barnett
VWR-19699 VWR-19699
STORM-288
STORM-799
STORM-800
Kunnis Basiat Kunnis Basiat
VWR-82 VWR-82
VWR-102 VWR-102
...@@ -581,6 +601,7 @@ Robin Cornelius ...@@ -581,6 +601,7 @@ Robin Cornelius
STORM-422 STORM-422
VWR-2488 VWR-2488
VWR-9557 VWR-9557
VWR-10579
VWR-11128 VWR-11128
VWR-12533 VWR-12533
VWR-12587 VWR-12587
...@@ -604,6 +625,7 @@ Sammy Frederix ...@@ -604,6 +625,7 @@ Sammy Frederix
VWR-6186 VWR-6186
Satomi Ahn Satomi Ahn
STORM-501 STORM-501
STORM-229
Scrippy Scofield Scrippy Scofield
VWR-3748 VWR-3748
Seg Baphomet Seg Baphomet
...@@ -728,6 +750,8 @@ Tue Torok ...@@ -728,6 +750,8 @@ Tue Torok
CT-74 CT-74
Twisted Laws Twisted Laws
SNOW-352 SNOW-352
STORM-466
STORM-467
Vadim Bigbear Vadim Bigbear
VWR-2681 VWR-2681
Vector Hastings Vector Hastings
...@@ -768,16 +792,19 @@ WolfPup Lowenhar ...@@ -768,16 +792,19 @@ WolfPup Lowenhar
STORM-102 STORM-102
STORM-103 STORM-103
STORM-143 STORM-143
STORM-255
STORM-256
STORM-288
STORM-535 STORM-535
STORM-544 STORM-544
STORM-654 STORM-654
STORM-674
STORM-776
STORM-825
VWR-20741 VWR-20741
VWR-20933 VWR-20933
Zai Lynch Zai Lynch
VWR-19505 VWR-19505
Wolfpup Lowenhar
STORM-255
STORM-256
Zarkonnen Decosta Zarkonnen Decosta
VWR-253 VWR-253
Zi Ree Zi Ree
......
...@@ -43,6 +43,7 @@ add_subdirectory(${LIBS_OPEN_PREFIX}llaudio) ...@@ -43,6 +43,7 @@ add_subdirectory(${LIBS_OPEN_PREFIX}llaudio)
add_subdirectory(${LIBS_OPEN_PREFIX}llcharacter) add_subdirectory(${LIBS_OPEN_PREFIX}llcharacter)
add_subdirectory(${LIBS_OPEN_PREFIX}llcommon) add_subdirectory(${LIBS_OPEN_PREFIX}llcommon)
add_subdirectory(${LIBS_OPEN_PREFIX}llimage) add_subdirectory(${LIBS_OPEN_PREFIX}llimage)
add_subdirectory(${LIBS_OPEN_PREFIX}llkdu)
add_subdirectory(${LIBS_OPEN_PREFIX}llimagej2coj) add_subdirectory(${LIBS_OPEN_PREFIX}llimagej2coj)
add_subdirectory(${LIBS_OPEN_PREFIX}llinventory) add_subdirectory(${LIBS_OPEN_PREFIX}llinventory)
add_subdirectory(${LIBS_OPEN_PREFIX}llmath) add_subdirectory(${LIBS_OPEN_PREFIX}llmath)
...@@ -53,10 +54,6 @@ add_subdirectory(${LIBS_OPEN_PREFIX}llvfs) ...@@ -53,10 +54,6 @@ add_subdirectory(${LIBS_OPEN_PREFIX}llvfs)
add_subdirectory(${LIBS_OPEN_PREFIX}llwindow) add_subdirectory(${LIBS_OPEN_PREFIX}llwindow)
add_subdirectory(${LIBS_OPEN_PREFIX}llxml) add_subdirectory(${LIBS_OPEN_PREFIX}llxml)
if (EXISTS ${LIBS_CLOSED_DIR}llkdu)
add_subdirectory(${LIBS_CLOSED_PREFIX}llkdu)
endif (EXISTS ${LIBS_CLOSED_DIR}llkdu)
add_subdirectory(${LIBS_OPEN_PREFIX}lscript) add_subdirectory(${LIBS_OPEN_PREFIX}lscript)
if (WINDOWS AND EXISTS ${LIBS_CLOSED_DIR}copy_win_scripts) if (WINDOWS AND EXISTS ${LIBS_CLOSED_DIR}copy_win_scripts)
......
...@@ -4,27 +4,28 @@ ...@@ -4,27 +4,28 @@
include(Variables) include(Variables)
# Portable compilation flags. # Portable compilation flags.
if (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
# The release build should only offer to send crash reports if we're
# building from a Linden internal source tree.
set(release_crash_reports 1)
else (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
set(release_crash_reports 0)
endif (EXISTS ${CMAKE_SOURCE_DIR}/llphysics)
set(CMAKE_CXX_FLAGS_DEBUG "-D_DEBUG -DLL_DEBUG=1") set(CMAKE_CXX_FLAGS_DEBUG "-D_DEBUG -DLL_DEBUG=1")
set(CMAKE_CXX_FLAGS_RELEASE set(CMAKE_CXX_FLAGS_RELEASE
"-DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=${release_crash_reports} -DNDEBUG") "-DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 -D_SECURE_SCL=0 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-DLL_RELEASE=1 -D_SECURE_SCL=0 -DLL_SEND_CRASH_REPORTS=0 -DNDEBUG -DLL_RELEASE_WITH_DEBUG_INFO=1") "-DLL_RELEASE=1 -D_SECURE_SCL=0 -DNDEBUG -DLL_RELEASE_WITH_DEBUG_INFO=1")
# Configure crash reporting
set(RELEASE_CRASH_REPORTING OFF CACHE BOOL "Enable use of crash reporting in release builds")
set(NON_RELEASE_CRASH_REPORTING OFF CACHE BOOL "Enable use of crash reporting in developer builds")
# Don't bother with a MinSizeRel build. if(RELEASE_CRASH_REPORTING)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DLL_SEND_CRASH_REPORTS=1")
endif()
if(NON_RELEASE_CRASH_REPORTING)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DLL_SEND_CRASH_REPORTS=1")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DLL_SEND_CRASH_REPORTS=1")
endif()
# Don't bother with a MinSizeRel build.
set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING set(CMAKE_CONFIGURATION_TYPES "RelWithDebInfo;Release;Debug" CACHE STRING
"Supported build types." FORCE) "Supported build types." FORCE)
......
...@@ -6,6 +6,11 @@ set(DB_FIND_REQUIRED ON) ...@@ -6,6 +6,11 @@ set(DB_FIND_REQUIRED ON)
if (STANDALONE) if (STANDALONE)
include(FindBerkeleyDB) include(FindBerkeleyDB)
else (STANDALONE) else (STANDALONE)
set(DB_LIBRARIES db-4.2) if (LINUX)
# Need to add dependency pthread explicitely to support ld.gold.
set(DB_LIBRARIES db-4.2 pthread)
else (LINUX)
set(DB_LIBRARIES db-4.2)
endif (LINUX)
set(DB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) set(DB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (STANDALONE) endif (STANDALONE)
...@@ -33,6 +33,7 @@ set(cmake_SOURCE_FILES ...@@ -33,6 +33,7 @@ set(cmake_SOURCE_FILES
FindMySQL.cmake FindMySQL.cmake
FindOpenJPEG.cmake FindOpenJPEG.cmake
FindXmlRpcEpi.cmake FindXmlRpcEpi.cmake
FindZLIB.cmake
FMOD.cmake FMOD.cmake
FreeType.cmake FreeType.cmake
GStreamer010Plugin.cmake GStreamer010Plugin.cmake
......
...@@ -10,10 +10,10 @@ else (STANDALONE) ...@@ -10,10 +10,10 @@ else (STANDALONE)
use_prebuilt_binary(curl) use_prebuilt_binary(curl)
if (WINDOWS) if (WINDOWS)
set(CURL_LIBRARIES set(CURL_LIBRARIES
debug libcurld debug libcurld.lib
optimized libcurl) optimized libcurl.lib)
else (WINDOWS) else (WINDOWS)
set(CURL_LIBRARIES curl) set(CURL_LIBRARIES libcurl.a)
endif (WINDOWS) endif (WINDOWS)
set(CURL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) set(CURL_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (STANDALONE) endif (STANDALONE)
...@@ -60,22 +60,6 @@ if(WINDOWS) ...@@ -60,22 +60,6 @@ if(WINDOWS)
set(release_files ${release_files} fmod.dll) set(release_files ${release_files} fmod.dll)
endif (FMOD) endif (FMOD)
#*******************************
# LLKDU
set(internal_llkdu_path "${CMAKE_SOURCE_DIR}/llkdu")
if(NOT EXISTS ${internal_llkdu_path})
if (EXISTS "${debug_src_dir}/llkdu.dll")
set(debug_llkdu_src "${debug_src_dir}/llkdu.dll")
set(debug_llkdu_dst "${SHARED_LIB_STAGING_DIR_DEBUG}/llkdu.dll")
endif (EXISTS "${debug_src_dir}/llkdu.dll")
if (EXISTS "${release_src_dir}/llkdu.dll")
set(release_llkdu_src "${release_src_dir}/llkdu.dll")
set(release_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELEASE}/llkdu.dll")
set(relwithdebinfo_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELWITHDEBINFO}/llkdu.dll")
endif (EXISTS "${release_src_dir}/llkdu.dll")
endif (NOT EXISTS ${internal_llkdu_path})
#******************************* #*******************************
# Copy MS C runtime dlls, required for packaging. # Copy MS C runtime dlls, required for packaging.
# *TODO - Adapt this to support VC9 # *TODO - Adapt this to support VC9
...@@ -174,21 +158,6 @@ elseif(DARWIN) ...@@ -174,21 +158,6 @@ elseif(DARWIN)
# fmod is statically linked on darwin # fmod is statically linked on darwin
set(fmod_files "") set(fmod_files "")
#*******************************
# LLKDU
set(internal_llkdu_path "${CMAKE_SOURCE_DIR}/llkdu")
if(NOT EXISTS ${internal_llkdu_path})
if (EXISTS "${debug_src_dir}/libllkdu.dylib")
set(debug_llkdu_src "${debug_src_dir}/libllkdu.dylib")
set(debug_llkdu_dst "${SHARED_LIB_STAGING_DIR_DEBUG}/libllkdu.dylib")
endif (EXISTS "${debug_src_dir}/libllkdu.dylib")
if (EXISTS "${release_src_dir}/libllkdu.dylib")
set(release_llkdu_src "${release_src_dir}/libllkdu.dylib")
set(release_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELEASE}/libllkdu.dylib")
set(relwithdebinfo_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELWITHDEBINFO}/libllkdu.dylib")
endif (EXISTS "${release_src_dir}/libllkdu.dylib")
endif (NOT EXISTS ${internal_llkdu_path})
elseif(LINUX) elseif(LINUX)
# linux is weird, multiple side by side configurations aren't supported # linux is weird, multiple side by side configurations aren't supported
# and we don't seem to have any debug shared libs built yet anyways... # and we don't seem to have any debug shared libs built yet anyways...
...@@ -242,21 +211,6 @@ elseif(LINUX) ...@@ -242,21 +211,6 @@ elseif(LINUX)
set(release_files ${release_files} "libfmod-3.75.so") set(release_files ${release_files} "libfmod-3.75.so")
endif (FMOD) endif (FMOD)
#*******************************
# LLKDU
set(internal_llkdu_path "${CMAKE_SOURCE_DIR}/llkdu")
if(NOT EXISTS ${internal_llkdu_path})
if (EXISTS "${debug_src_dir}/libllkdu.so")
set(debug_llkdu_src "${debug_src_dir}/libllkdu.so")
set(debug_llkdu_dst "${SHARED_LIB_STAGING_DIR_DEBUG}/libllkdu.so")
endif (EXISTS "${debug_src_dir}/libllkdu.so")
if (EXISTS "${release_src_dir}/libllkdu.so")
set(release_llkdu_src "${release_src_dir}/libllkdu.so")
set(release_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELEASE}/libllkdu.so")
set(relwithdebinfo_llkdu_dst "${SHARED_LIB_STAGING_DIR_RELWITHDEBINFO}/libllkdu.so")
endif (EXISTS "${release_src_dir}/libllkdu.so")
endif(NOT EXISTS ${internal_llkdu_path})
else(WINDOWS) else(WINDOWS)
message(STATUS "WARNING: unrecognized platform for staging 3rd party libs, skipping...") message(STATUS "WARNING: unrecognized platform for staging 3rd party libs, skipping...")
set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-linux") set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-linux")
...@@ -334,40 +288,29 @@ copy_if_different( ...@@ -334,40 +288,29 @@ copy_if_different(
) )
set(third_party_targets ${third_party_targets} ${out_targets}) set(third_party_targets ${third_party_targets} ${out_targets})
#******************************* if (FMOD_SDK_DIR)
# LLKDU copy_if_different(
set(internal_llkdu_path "${CMAKE_SOURCE_DIR}/llkdu") ${FMOD_SDK_DIR}
if(NOT EXISTS ${internal_llkdu_path}) "${CMAKE_CURRENT_BINARY_DIR}/Debug"
if (EXISTS "${debug_llkdu_src}") out_targets
ADD_CUSTOM_COMMAND( ${fmod_files}
OUTPUT ${debug_llkdu_dst} )
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${debug_llkdu_src} ${debug_llkdu_dst} set(all_targets ${all_targets} ${out_targets})
DEPENDS ${debug_llkdu_src} copy_if_different(
COMMENT "Copying llkdu.dll ${SHARED_LIB_STAGING_DIR_DEBUG}" ${FMOD_SDK_DIR}
) "${CMAKE_CURRENT_BINARY_DIR}/Release"
set(third_party_targets ${third_party_targets} $} ${debug_llkdu_dst}) out_targets
endif (EXISTS "${debug_llkdu_src}") ${fmod_files}
)
if (EXISTS "${release_llkdu_src}") set(all_targets ${all_targets} ${out_targets})
ADD_CUSTOM_COMMAND( copy_if_different(
OUTPUT ${release_llkdu_dst} ${FMOD_SDK_DIR}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${release_llkdu_src} ${release_llkdu_dst} "${CMAKE_CURRENT_BINARY_DIR}/RelWithDbgInfo"
DEPENDS ${release_llkdu_src} out_targets
COMMENT "Copying llkdu.dll ${SHARED_LIB_STAGING_DIR_RELEASE}" ${fmod_files}
) )
set(third_party_targets ${third_party_targets} ${release_llkdu_dst}) set(all_targets ${all_targets} ${out_targets})
endif (FMOD_SDK_DIR)
ADD_CUSTOM_COMMAND(
OUTPUT ${relwithdebinfo_llkdu_dst}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${release_llkdu_src} ${relwithdebinfo_llkdu_dst}
DEPENDS ${release_llkdu_src}
COMMENT "Copying llkdu.dll ${SHARED_LIB_STAGING_DIR_RELWITHDEBINFO}"
)
set(third_party_targets ${third_party_targets} ${relwithdebinfo_llkdu_dst})
endif (EXISTS "${release_llkdu_src}")
endif (NOT EXISTS ${internal_llkdu_path})
if(NOT STANDALONE) if(NOT STANDALONE)
add_custom_target( add_custom_target(
......
...@@ -21,7 +21,12 @@ EXEC_PROGRAM(${CMAKE_CXX_COMPILER} ...@@ -21,7 +21,12 @@ EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
OUTPUT_STRIP_TRAILING_WHITESPACE 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) SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson_linux-gcc-${_gcc_COMPILER_VERSION}_libmt.so)
IF (STANDALONE)
# On standalone, assume that the system installed library was compiled with the used compiler.
SET(JSONCPP_NAMES ${JSONCPP_NAMES} libjson.so)
ENDIF (STANDALONE)
FIND_LIBRARY(JSONCPP_LIBRARY FIND_LIBRARY(JSONCPP_LIBRARY
NAMES ${JSONCPP_NAMES} NAMES ${JSONCPP_NAMES}
PATHS /usr/lib /usr/local/lib PATHS /usr/lib /usr/local/lib
......
# -*- cmake -*-
# - Find llqtwebkit
# Find the llqtwebkit includes and library
# This module defines
# LLQTWEBKIT_INCLUDE_DIR, where to find llqtwebkit.h, etc.
# LLQTWEBKIT_LIBRARY, the llqtwebkit library with full path.
# LLQTWEBKIT_FOUND, If false, do not try to use llqtwebkit.
# also defined, but not for general use are
# LLQTWEBKIT_LIBRARIES, the libraries needed to use llqtwebkit.
# LLQTWEBKIT_LIBRARY_DIRS, where to find the llqtwebkit library.
# LLQTWEBKIT_DEFINITIONS - You should add_definitions(${LLQTWEBKIT_DEFINITIONS})
# before compiling code that includes llqtwebkit library files.
# Try to use pkg-config first.
# This allows to have two different libllqtwebkit packages installed:
# one for viewer 2.x and one for viewer 1.x.
include(FindPkgConfig)
if (PKG_CONFIG_FOUND)
if (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)
set(_PACKAGE_ARGS libllqtwebkit>=${LLQtWebkit_FIND_VERSION} REQUIRED)
else (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)
set(_PACKAGE_ARGS libllqtwebkit)
endif (LLQtWebkit_FIND_REQUIRED AND LLQtWebkit_FIND_VERSION)
if (NOT "${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_LESS "2.8")
# As virtually nobody will have a pkg-config file for this, do this check always quiet.
# Unfortunately cmake 2.8 or higher is required for pkg_check_modules to have a 'QUIET'.
set(_PACKAGE_ARGS ${_PACKAGE_ARGS} QUIET)
endif ()
pkg_check_modules(LLQTWEBKIT ${_PACKAGE_ARGS})
endif (PKG_CONFIG_FOUND)
set(LLQTWEBKIT_DEFINITIONS ${LLQTWEBKIT_CFLAGS_OTHER})
find_path(LLQTWEBKIT_INCLUDE_DIR llqtwebkit.h NO_SYSTEM_ENVIRONMENT_PATH HINTS ${LLQTWEBKIT_INCLUDE_DIRS})
find_library(LLQTWEBKIT_LIBRARY NAMES llqtwebkit NO_SYSTEM_ENVIRONMENT_PATH HINTS ${LLQTWEBKIT_LIBRARY_DIRS})
if (NOT PKG_CONFIG_FOUND OR NOT LLQTWEBKIT_FOUND) # If pkg-config couldn't find it, pretend we don't have pkg-config.
set(LLQTWEBKIT_LIBRARIES llqtwebkit)
get_filename_component(LLQTWEBKIT_LIBRARY_DIRS ${LLQTWEBKIT_LIBRARY} PATH)
endif (NOT PKG_CONFIG_FOUND OR NOT LLQTWEBKIT_FOUND)
# Handle the QUIETLY and REQUIRED arguments and set LLQTWEBKIT_FOUND
# to TRUE if all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
LLQTWEBKIT
DEFAULT_MSG
LLQTWEBKIT_LIBRARY
LLQTWEBKIT_INCLUDE_DIR
LLQTWEBKIT_LIBRARIES
LLQTWEBKIT_LIBRARY_DIRS
)
mark_as_advanced(
LLQTWEBKIT_LIBRARY
LLQTWEBKIT_INCLUDE_DIR
LLQTWEBKIT_LIBRARIES
LLQTWEBKIT_LIBRARY_DIRS
LLQTWEBKIT_DEFINITIONS
)
# -*- cmake -*-
# - Find NDOF
# Find the NDOF includes and library
# This module defines
# NDOF_INCLUDE_DIR, where to find ndofdev_external.h, etc.
# NDOF_LIBRARY, the library needed to use NDOF.
# NDOF_FOUND, If false, do not try to use NDOF.
find_path(NDOF_INCLUDE_DIR ndofdev_external.h
PATH_SUFFIXES ndofdev
)
set(NDOF_NAMES ${NDOF_NAMES} ndofdev libndofdev)
find_library(NDOF_LIBRARY
NAMES ${NDOF_NAMES}
)
if (NDOF_LIBRARY AND NDOF_INCLUDE_DIR)
set(NDOF_FOUND "YES")
else (NDOF_LIBRARY AND NDOF_INCLUDE_DIR)
set(NDOF_FOUND "NO")
endif (NDOF_LIBRARY AND NDOF_INCLUDE_DIR)
if (NDOF_FOUND)
if (NOT NDOF_FIND_QUIETLY)
message(STATUS "Found NDOF: Library in '${NDOF_LIBRARY}' and header in '${NDOF_INCLUDE_DIR}' ")
endif (NOT NDOF_FIND_QUIETLY)
else (NDOF_FOUND)
if (NDOF_FIND_REQUIRED)
message(FATAL_ERROR " * * *\nCould not find NDOF library!\nIf you don't need Space Navigator Joystick support you can skip this test by configuring with -DNDOF:BOOL=OFF\n * * *")
endif (NDOF_FIND_REQUIRED)
endif (NDOF_FOUND)
mark_as_advanced(
NDOF_LIBRARY
NDOF_INCLUDE_DIR
)
...@@ -3,12 +3,11 @@ ...@@ -3,12 +3,11 @@
# - Find Tut # - Find Tut
# Find the Tut unit test framework includes and library # Find the Tut unit test framework includes and library
# This module defines # This module defines
# TUT_INCLUDE_DIR, where to find tut.h, etc. # TUT_INCLUDE_DIR, where to find tut/tut.hpp.
# TUT_FOUND, If false, do not try to use Tut. # TUT_FOUND, If false, do not try to use Tut.
find_path(TUT_INCLUDE_DIR tut.h find_path(TUT_INCLUDE_DIR tut/tut.hpp
/usr/local/include/ NO_SYSTEM_ENVIRONMENT_PATH
/usr/include
) )
if (TUT_INCLUDE_DIR) if (TUT_INCLUDE_DIR)
......
# -*- 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
)
...@@ -205,6 +205,9 @@ FUNCTION(LL_ADD_INTEGRATION_TEST ...@@ -205,6 +205,9 @@ FUNCTION(LL_ADD_INTEGRATION_TEST
endif(TEST_DEBUG) endif(TEST_DEBUG)
ADD_EXECUTABLE(INTEGRATION_TEST_${testname} ${source_files}) ADD_EXECUTABLE(INTEGRATION_TEST_${testname} ${source_files})
SET_TARGET_PROPERTIES(INTEGRATION_TEST_${testname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${EXE_STAGING_DIR}") SET_TARGET_PROPERTIES(INTEGRATION_TEST_${testname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${EXE_STAGING_DIR}")
if(STANDALONE)
SET_TARGET_PROPERTIES(INTEGRATION_TEST_${testname} PROPERTIES COMPILE_FLAGS -I"${TUT_INCLUDE_DIR}")
endif(STANDALONE)
# Add link deps to the executable # Add link deps to the executable
if(TEST_DEBUG) if(TEST_DEBUG)
......
...@@ -13,7 +13,14 @@ set(LLCOMMON_INCLUDE_DIRS ...@@ -13,7 +13,14 @@ set(LLCOMMON_INCLUDE_DIRS
${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
) )
set(LLCOMMON_LIBRARIES llcommon) if (LINUX)
# In order to support using ld.gold on linux, we need to explicitely
# specify all libraries that llcommon uses.
# llcommon uses `clock_gettime' which is provided by librt on linux.
set(LLCOMMON_LIBRARIES llcommon rt)
else (LINUX)
set(LLCOMMON_LIBRARIES llcommon)
endif (LINUX)
add_definitions(${TCMALLOC_FLAG}) add_definitions(${TCMALLOC_FLAG})
......
# -*- cmake -*- # -*- cmake -*-
include(Prebuilt) include(Prebuilt)
# USE_KDU can be set when launching cmake or develop.py 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
if (INSTALL_PROPRIETARY AND NOT STANDALONE) if (INSTALL_PROPRIETARY AND NOT STANDALONE)
use_prebuilt_binary(kdu) set(USE_KDU ON)
set(LLKDU_LIBRARY llkdu)
endif (INSTALL_PROPRIETARY AND NOT STANDALONE) endif (INSTALL_PROPRIETARY AND NOT STANDALONE)
if (USE_KDU)
use_prebuilt_binary(kdu)
if (WINDOWS)
set(KDU_LIBRARY kdu.lib)
else (WINDOWS)
set(KDU_LIBRARY libkdu.a)
endif (WINDOWS)
set(KDU_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/kdu)
set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu)
set(LLKDU_LIBRARIES llkdu)
endif (USE_KDU)
...@@ -5,4 +5,10 @@ set(LLPLUGIN_INCLUDE_DIRS ...@@ -5,4 +5,10 @@ set(LLPLUGIN_INCLUDE_DIRS
${LIBS_OPEN_DIR}/llplugin ${LIBS_OPEN_DIR}/llplugin
) )
set(LLPLUGIN_LIBRARIES llplugin) if (LINUX)
# In order to support using ld.gold on linux, we need to explicitely
# specify all libraries that llplugin uses.
set(LLPLUGIN_LIBRARIES llplugin pthread)
else (LINUX)
set(LLPLUGIN_LIBRARIES llplugin)
endif (LINUX)
# -*- cmake -*- # -*- cmake -*-
include(Prebuilt) include(Prebuilt)
use_prebuilt_binary(ndofdev) set(NDOF ON CACHE BOOL "Use NDOF space navigator joystick library.")
if (WINDOWS OR DARWIN OR LINUX) if (NDOF)
if (STANDALONE)
set(NDOF_FIND_REQUIRED ON)
include(FindNDOF)
else (STANDALONE)
use_prebuilt_binary(ndofdev)
if (WINDOWS)
set(NDOF_LIBRARY libndofdev)
elseif (DARWIN OR LINUX)
set(NDOF_LIBRARY ndofdev)
endif (WINDOWS)
set(NDOF_INCLUDE_DIR ${ARCH_PREBUILT_DIRS}/include/ndofdev)
set(NDOF_FOUND 1)
endif (STANDALONE)
endif (NDOF)
if (NDOF_FOUND)
add_definitions(-DLIB_NDOF=1) add_definitions(-DLIB_NDOF=1)
endif (WINDOWS OR DARWIN OR LINUX) include_directories(${NDOF_INCLUDE_DIR})
else (NDOF_FOUND)
message(STATUS "Building without N-DoF joystick support")
set(NDOF_INCLUDE_DIR "")
set(NDOF_LIBRARY "")
endif (NDOF_FOUND)
if (WINDOWS)
set(NDOF_LIBRARY libndofdev)
elseif (DARWIN OR LINUX)
set(NDOF_LIBRARY ndofdev)
endif (WINDOWS)
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