Skip to content
Snippets Groups Projects
Commit bf7801ae authored by Oz Linden's avatar Oz Linden
Browse files

merging in latest viewer-development

parents eacd9d5d 4d040e3c
No related branches found
No related tags found
No related merge requests found
Showing
with 2800 additions and 163 deletions
...@@ -11,7 +11,9 @@ syntax: glob ...@@ -11,7 +11,9 @@ syntax: glob
*.DS_Store *.DS_Store
LICENSES LICENSES
indra/.distcc indra/.distcc
indra/build-darwin-* build-linux-*
build-darwin-*
build-vc80/
indra/build-vc[0-9]* indra/build-vc[0-9]*
indra/CMakeFiles indra/CMakeFiles
indra/lib/mono/1.0/*.dll indra/lib/mono/1.0/*.dll
......
...@@ -234,5 +234,8 @@ viewer-asset-delivery-metrics.email = monty@lindenlab.com ...@@ -234,5 +234,8 @@ viewer-asset-delivery-metrics.email = monty@lindenlab.com
viewer-asset-delivery-metrics.build_server = false viewer-asset-delivery-metrics.build_server = false
viewer-asset-delivery-metrics.build_server_tests = false viewer-asset-delivery-metrics.build_server_tests = false
#==============================================================================
# viewer-autobuild
#==============================================================================
viewer-autobuild.build_link_parallel = false
# eof # eof
This diff is collapsed.
...@@ -22,7 +22,7 @@ build_dir_Darwin() ...@@ -22,7 +22,7 @@ build_dir_Darwin()
build_dir_Linux() build_dir_Linux()
{ {
echo viewer-linux-i686-$(echo $1 | tr A-Z a-z) echo build-linux-i686
} }
build_dir_CYGWIN() build_dir_CYGWIN()
...@@ -50,47 +50,18 @@ installer_CYGWIN() ...@@ -50,47 +50,18 @@ installer_CYGWIN()
pre_build() pre_build()
{ {
local variant="$1" local variant="$1"
local build_dir="$2"
begin_section "Pre$variant" begin_section "Pre$variant"
#export PATH="/cygdrive/c/Program Files/Microsoft Visual Studio 8/Common7/IDE/:$PATH" "$AUTOBUILD" configure -c $variant -- -DPACKAGE:BOOL=ON -DRELEASE_CRASH_REPORTING:BOOL=ON
python develop.py \
--incredibuild \
--unattended \
-t $variant \
-G "$cmake_generator" \
configure \
-DGRID:STRING="$viewer_grid" \
-DVIEWER_CHANNEL:STRING="$viewer_channel" \
-DVIEWER_LOGIN_CHANNEL:STRING="$login_channel" \
-DINSTALL_PROPRIETARY:BOOL=ON \
-DRELEASE_CRASH_REPORTING:BOOL=ON \
-DLOCALIZESETUP:BOOL=ON \
-DPACKAGE:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
-DLL_TESTS:BOOL="$run_tests"
end_section "Pre$variant" end_section "Pre$variant"
} }
build() build()
{ {
local variant="$1" local variant="$1"
local build_dir="$2"
if $build_viewer if $build_viewer
then then
begin_section "Viewer$variant" begin_section "Viewer$variant"
if python develop.py \ if "$AUTOBUILD" build -c $variant
--incredibuild \
--unattended \
-t $variant \
-G "$cmake_generator" \
build package
# && \
# python develop.py \
# --incredibuild \
# --unattended \
# -t $variant \
# -G "$cmake_generator" \
# build package
then then
echo true >"$build_dir"/build_ok echo true >"$build_dir"/build_ok
else else
...@@ -110,6 +81,7 @@ build_docs() ...@@ -110,6 +81,7 @@ build_docs()
end_section Docs end_section Docs
} }
# Check to see if we were invoked from the wrapper, if not, re-exec ourselves from there # Check to see if we were invoked from the wrapper, if not, re-exec ourselves from there
if [ "x$arch" = x ] if [ "x$arch" = x ]
then then
...@@ -117,15 +89,11 @@ then ...@@ -117,15 +89,11 @@ then
if [ -x "$top/../buildscripts/hg/bin/build.sh" ] if [ -x "$top/../buildscripts/hg/bin/build.sh" ]
then then
exec "$top/../buildscripts/hg/bin/build.sh" "$top" exec "$top/../buildscripts/hg/bin/build.sh" "$top"
elif [ -r "$top/README" ]
then
cat "$top/README"
exit 1
else else
cat <<EOF cat <<EOF
This script, if called in a development environment, requires that the branch This script, if called in a development environment, requires that the branch
independent build script repository be checked out next to this repository. independent build script repository be checked out next to this repository.
This repository is located at http://hg.secondlife.com/buildscripts This repository is located at http://hg.lindenlab.com/parabuild/buildscripts
EOF EOF
exit 1 exit 1
fi fi
...@@ -151,8 +119,32 @@ fi ...@@ -151,8 +119,32 @@ fi
# First three parts only, $revision will be appended automatically. # First three parts only, $revision will be appended automatically.
build_viewer_update_version_manager_version=`scripts/get_version.py --viewer-version | sed 's/\.[0-9]*$//'` build_viewer_update_version_manager_version=`scripts/get_version.py --viewer-version | sed 's/\.[0-9]*$//'`
export autobuild_dir="$here/../../../autobuild/bin/"
if [ -d "$autobuild_dir" ]
then
export AUTOBUILD="$autobuild_dir"autobuild
if [ -x "$AUTOBUILD" ]
then
# *HACK - bash doesn't know how to pass real pathnames to native windows python
case "$arch" in
CYGWIN) AUTOBUILD=$(cygpath -u $AUTOBUILD.cmd) ;;
esac
else
record_failure "Not executable: $AUTOBUILD"
exit 1
fi
else
record_failure "Not found: $autobuild_dir"
exit 1
fi
# load autbuild provided shell functions and variables
eval "$("$AUTOBUILD" source_environment)"
# Install packages.
"$AUTOBUILD" install --skip-license-check
# Now run the build # Now run the build
cd indra
succeeded=true succeeded=true
build_processes= build_processes=
last_built_variant= last_built_variant=
...@@ -171,57 +163,7 @@ do ...@@ -171,57 +163,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_coverity if $build_link_parallel
then
mkdir -p "$build_dir/cvbuild"
coverity_config=`cygpath --windows "$coverity_dir/config/coverity_config.xml"`
coverity_tmpdir=`cygpath --windows "$build_dir/cvbuild"`
coverity_root=`cygpath --windows "$top/latest"`
case "$variant" in
Release)
begin_section Coverity
begin_section CovBuild
"$coverity_dir"/bin/cov-build\
--verbose 4 \
--config "$coverity_config"\
--dir "$coverity_tmpdir"\
python develop.py -t $variant -G "$cmake_generator" build "$coverity_product"\
>> "$build_log" 2>&1\
&&\
end_section CovBuild\
&&\
begin_section CovAnalyze\
&&\
"$coverity_dir"/bin/cov-analyze\
--security\
--concurrency\
--dir "$coverity_tmpdir"\
>> "$build_log" 2>&1\
&&\
end_section CovAnalyze\
&&\
begin_section CovCommit\
&&\
"$coverity_dir"/bin/cov-commit-defects\
--stream "$coverity_product"\
--dir "$coverity_tmpdir"\
--host "$coverity_server"\
--strip-path "$coverity_root"\
--target "$branch/$arch"\
--version "$revision"\
--description "$repo: $variant $revision"\
--user admin --password coverity\
>> "$build_log" 2>&1\
|| record_failure "Coverity Build Failed"
# since any step could have failed, rely on the enclosing block to close any pending sub-blocks
end_section Coverity
;;
esac
if test -r "$build_dir"/cvbuild/build-log.txt
then
upload_item log "$build_dir"/cvbuild/build-log.txt text/plain
fi
elif $build_link_parallel
then then
begin_section BuildParallel begin_section BuildParallel
( build "$variant" "$build_dir" > "$build_dir/build.log" 2>&1 ) & ( build "$variant" "$build_dir" > "$build_dir/build.log" 2>&1 ) &
...@@ -229,10 +171,7 @@ do ...@@ -229,10 +171,7 @@ do
end_section BuildParallel 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" 2>&1 | tee -a "$build_log" | grep --line-buffered "^##teamcity"
begin_section Tests
grep --line-buffered "^##teamcity" "$build_log"
end_section Tests
if `cat "$build_dir/build_ok"` if `cat "$build_dir/build_ok"`
then then
echo so far so good. echo so far so good.
...@@ -261,15 +200,13 @@ then ...@@ -261,15 +200,13 @@ then
begin_section "Build$variant" begin_section "Build$variant"
build_dir=`build_dir_$arch $variant` build_dir=`build_dir_$arch $variant`
build_dir_stubs="$build_dir/win_setup/$variant" build_dir_stubs="$build_dir/win_setup/$variant"
tee -a $build_log < "$build_dir/build.log" | grep --line-buffered "^##teamcity"
if `cat "$build_dir/build_ok"` if `cat "$build_dir/build_ok"`
then then
echo so far so good. echo so far so good.
else else
record_failure "Parallel build of \"$variant\" failed." record_failure "Parallel build of \"$variant\" failed."
fi fi
begin_section Tests
tee -a $build_log < "$build_dir/build.log" | grep --line-buffered "^##teamcity"
end_section Tests
end_section "Build$variant" end_section "Build$variant"
done done
end_section WaitParallel end_section WaitParallel
...@@ -290,7 +227,6 @@ then ...@@ -290,7 +227,6 @@ then
succeeded=$build_coverity succeeded=$build_coverity
else else
upload_item installer "$package" binary/octet-stream upload_item installer "$package" binary/octet-stream
upload_item quicklink "$package" binary/octet-stream
# Upload crash reporter files. # Upload crash reporter files.
case "$last_built_variant" in case "$last_built_variant" in
......
...@@ -395,7 +395,11 @@ Jonathan Yap ...@@ -395,7 +395,11 @@ Jonathan Yap
STORM-869 STORM-869
VWR-17801 VWR-17801
VWR-24347 VWR-24347
STORM-844
STORM-975 STORM-975
STORM-643
STORM-960
STORM-953
Kage Pixel Kage Pixel
VWR-11 VWR-11
Ken March Ken March
......
...@@ -103,7 +103,7 @@ if (VIEWER) ...@@ -103,7 +103,7 @@ if (VIEWER)
endif (VIEWER) endif (VIEWER)
# Linux builds the viewer and server in 2 separate projects # Linux builds the viewer and server in 2 separate projects
# In order for ./develop.py build server to work on linux, # In order for build server to work on linux,
# the viewer project needs a server target. # the viewer project needs a server target.
# This is not true for mac and windows. # This is not true for mac and windows.
if (LINUX) if (LINUX)
......
...@@ -38,21 +38,15 @@ else (STANDALONE) ...@@ -38,21 +38,15 @@ else (STANDALONE)
set(APR_selector "a") set(APR_selector "a")
set(APRUTIL_selector "a") set(APRUTIL_selector "a")
endif (LLCOMMON_LINK_SHARED) endif (LLCOMMON_LINK_SHARED)
set(APR_LIBRARIES set(APR_LIBRARIES libapr-1.${APR_selector})
debug ${ARCH_PREBUILT_DIRS_DEBUG}/libapr-1.${APR_selector} set(APRUTIL_LIBRARIES libaprutil-1.${APRUTIL_selector})
optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libapr-1.${APR_selector}
)
set(APRUTIL_LIBRARIES
debug ${ARCH_PREBUILT_DIRS_DEBUG}/libaprutil-1.${APRUTIL_selector}
optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libaprutil-1.${APRUTIL_selector}
)
set(APRICONV_LIBRARIES iconv) set(APRICONV_LIBRARIES iconv)
else (WINDOWS) else (WINDOWS)
set(APR_LIBRARIES apr-1) set(APR_LIBRARIES apr-1)
set(APRUTIL_LIBRARIES aprutil-1) set(APRUTIL_LIBRARIES aprutil-1)
set(APRICONV_LIBRARIES iconv) set(APRICONV_LIBRARIES iconv)
endif (WINDOWS) endif (WINDOWS)
set(APR_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/apr-1) set(APR_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/apr-1)
if (LINUX) if (LINUX)
if (VIEWER) if (VIEWER)
......
...@@ -85,7 +85,6 @@ source_group("Shared Rules" FILES ${cmake_SOURCE_FILES}) ...@@ -85,7 +85,6 @@ source_group("Shared Rules" FILES ${cmake_SOURCE_FILES})
set(master_SOURCE_FILES set(master_SOURCE_FILES
../CMakeLists.txt ../CMakeLists.txt
../develop.py
) )
if (SERVER) if (SERVER)
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
# VisualStudio. # VisualStudio.
include(CMakeCopyIfDifferent) include(CMakeCopyIfDifferent)
include(Linking)
################################################################### ###################################################################
# set up platform specific lists of files that need to be copied # set up platform specific lists of files that need to be copied
...@@ -16,7 +17,7 @@ if(WINDOWS) ...@@ -16,7 +17,7 @@ if(WINDOWS)
#******************************* #*******************************
# VIVOX - *NOTE: no debug version # VIVOX - *NOTE: no debug version
set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32") set(vivox_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
set(vivox_files set(vivox_files
SLVoice.exe SLVoice.exe
libsndfile-1.dll libsndfile-1.dll
...@@ -30,9 +31,7 @@ if(WINDOWS) ...@@ -30,9 +31,7 @@ if(WINDOWS)
#******************************* #*******************************
# Misc shared libs # Misc shared libs
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables set(debug_src_dir "${ARCH_PREBUILT_DIRS_DEBUG}")
# or ARCH_PREBUILT_DIRS
set(debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug")
set(debug_files set(debug_files
openjpegd.dll openjpegd.dll
libapr-1.dll libapr-1.dll
...@@ -40,14 +39,13 @@ if(WINDOWS) ...@@ -40,14 +39,13 @@ if(WINDOWS)
libapriconv-1.dll libapriconv-1.dll
) )
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables set(release_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
# or ARCH_PREBUILT_DIRS
set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release")
set(release_files set(release_files
openjpeg.dll openjpeg.dll
libapr-1.dll libapr-1.dll
libaprutil-1.dll libaprutil-1.dll
libapriconv-1.dll libapriconv-1.dll
dbghelp.dll
) )
if(USE_GOOGLE_PERFTOOLS) if(USE_GOOGLE_PERFTOOLS)
...@@ -128,7 +126,7 @@ elseif(DARWIN) ...@@ -128,7 +126,7 @@ elseif(DARWIN)
set(SHARED_LIB_STAGING_DIR_RELWITHDEBINFO "${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/Resources") set(SHARED_LIB_STAGING_DIR_RELWITHDEBINFO "${SHARED_LIB_STAGING_DIR}/RelWithDebInfo/Resources")
set(SHARED_LIB_STAGING_DIR_RELEASE "${SHARED_LIB_STAGING_DIR}/Release/Resources") set(SHARED_LIB_STAGING_DIR_RELEASE "${SHARED_LIB_STAGING_DIR}/Release/Resources")
set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/universal-darwin") set(vivox_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
set(vivox_files set(vivox_files
SLVoice SLVoice
libsndfile.dylib libsndfile.dylib
...@@ -137,14 +135,10 @@ elseif(DARWIN) ...@@ -137,14 +135,10 @@ elseif(DARWIN)
libvivoxplatform.dylib libvivoxplatform.dylib
libvivoxsdk.dylib libvivoxsdk.dylib
) )
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables set(debug_src_dir "${ARCH_PREBUILT_DIRS_DEBUG}")
# or ARCH_PREBUILT_DIRS
set(debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_debug")
set(debug_files set(debug_files
) )
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables set(release_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
# or ARCH_PREBUILT_DIRS
set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release")
set(release_files set(release_files
libapr-1.0.3.7.dylib libapr-1.0.3.7.dylib
libapr-1.dylib libapr-1.dylib
...@@ -167,7 +161,7 @@ elseif(LINUX) ...@@ -167,7 +161,7 @@ elseif(LINUX)
set(SHARED_LIB_STAGING_DIR_RELWITHDEBINFO "${SHARED_LIB_STAGING_DIR}") set(SHARED_LIB_STAGING_DIR_RELWITHDEBINFO "${SHARED_LIB_STAGING_DIR}")
set(SHARED_LIB_STAGING_DIR_RELEASE "${SHARED_LIB_STAGING_DIR}") set(SHARED_LIB_STAGING_DIR_RELEASE "${SHARED_LIB_STAGING_DIR}")
set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-linux") set(vivox_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
set(vivox_files set(vivox_files
libsndfile.so.1 libsndfile.so.1
libortp.so libortp.so
...@@ -178,12 +172,12 @@ elseif(LINUX) ...@@ -178,12 +172,12 @@ elseif(LINUX)
) )
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables # *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables
# or ARCH_PREBUILT_DIRS # or ARCH_PREBUILT_DIRS
set(debug_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-linux/lib_debug") set(debug_src_dir "${ARCH_PREBUILT_DIRS_DEBUG}")
set(debug_files set(debug_files
) )
# *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables # *TODO - update this to use LIBS_PREBUILT_DIR and LL_ARCH_DIR variables
# or ARCH_PREBUILT_DIRS # or ARCH_PREBUILT_DIRS
set(release_src_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-linux/lib_release_client") set(release_src_dir "${ARCH_PREBUILT_DIRS_RELEASE}")
# *FIX - figure out what to do with duplicate libalut.so here -brad # *FIX - figure out what to do with duplicate libalut.so here -brad
set(release_files set(release_files
libapr-1.so.0 libapr-1.so.0
......
...@@ -10,7 +10,7 @@ elseif (LINUX) ...@@ -10,7 +10,7 @@ elseif (LINUX)
use_prebuilt_binary(dbusglib) use_prebuilt_binary(dbusglib)
set(DBUSGLIB_FOUND ON FORCE BOOL) set(DBUSGLIB_FOUND ON FORCE BOOL)
set(DBUSGLIB_INCLUDE_DIRS set(DBUSGLIB_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 ${LIBS_PREBUILT_DIR}/include/glib-2.0
) )
# We don't need to explicitly link against dbus-glib itself, because # We don't need to explicitly link against dbus-glib itself, because
# the viewer probes for the system's copy at runtime. # the viewer probes for the system's copy at runtime.
......
# -*- cmake -*-
#
# Find the autobuild tool
#
# Output variables:
#
# AUTOBUILD_EXECUTABLE - path to autobuild or pautobuild executable
# *TODO - if cmake was executed by autobuild, autobuild will have set the AUTOBUILD env var
# update this to check for that case
IF (NOT AUTOBUILD_EXECUTABLE)
IF(WIN32)
SET(AUTOBUILD_EXE_NAMES autobuild.cmd autobuild.exe)
ELSE(WIN32)
SET(AUTOBUILD_EXE_NAMES autobuild)
ENDIF(WIN32)
SET(AUTOBUILD_EXECUTABLE)
FIND_PROGRAM(
AUTOBUILD_EXECUTABLE
NAMES ${AUTOBUILD_EXE_NAMES}
PATHS
ENV PATH
${CMAKE_SOURCE_DIR}/..
${CMAKE_SOURCE_DIR}/../..
${CMAKE_SOURCE_DIR}/../../..
PATH_SUFFIXES "/autobuild/bin/"
)
IF (AUTOBUILD_EXECUTABLE)
GET_FILENAME_COMPONENT(_autobuild_name ${AUTOBUILD_EXECUTABLE} NAME_WE)
MESSAGE(STATUS "Using autobuild at: ${AUTOBUILD_EXECUTABLE}")
ELSE (AUTOBUILD_EXECUTABLE)
IF (AUTOBUILD_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find autobuild executable")
ENDIF (AUTOBUILD_FIND_REQUIRED)
ENDIF (AUTOBUILD_EXECUTABLE)
MARK_AS_ADVANCED(AUTOBUILD_EXECUTABLE)
ENDIF (NOT AUTOBUILD_EXECUTABLE)
...@@ -9,7 +9,7 @@ else (STANDALONE) ...@@ -9,7 +9,7 @@ else (STANDALONE)
use_prebuilt_binary(freetype) use_prebuilt_binary(freetype)
if (LINUX) if (LINUX)
set(FREETYPE_INCLUDE_DIRS set(FREETYPE_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) ${LIBS_PREBUILT_DIR}/include)
else (LINUX) else (LINUX)
set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
endif (LINUX) endif (LINUX)
......
...@@ -13,9 +13,9 @@ elseif (LINUX) ...@@ -13,9 +13,9 @@ elseif (LINUX)
set(GSTREAMER010_FOUND ON FORCE BOOL) set(GSTREAMER010_FOUND ON FORCE BOOL)
set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL) set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL)
set(GSTREAMER010_INCLUDE_DIRS set(GSTREAMER010_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 ${LIBS_PREBUILT_DIR}/include/gstreamer-0.10
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 ${LIBS_PREBUILT_DIR}/include/glib-2.0
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 ${LIBS_PREBUILT_DIR}/include/libxml2
) )
# We don't need to explicitly link against gstreamer itself, because # We don't need to explicitly link against gstreamer itself, because
# LLMediaImplGStreamer probes for the system's copy at runtime. # LLMediaImplGStreamer probes for the system's copy at runtime.
......
...@@ -4,7 +4,6 @@ include(Prebuilt) ...@@ -4,7 +4,6 @@ include(Prebuilt)
if (STANDALONE) if (STANDALONE)
include(FindGooglePerfTools) include(FindGooglePerfTools)
else (STANDALONE) else (STANDALONE)
use_prebuilt_binary(google)
if (WINDOWS) if (WINDOWS)
use_prebuilt_binary(google-perftools) use_prebuilt_binary(google-perftools)
set(TCMALLOC_LIBRARIES set(TCMALLOC_LIBRARIES
...@@ -13,11 +12,12 @@ else (STANDALONE) ...@@ -13,11 +12,12 @@ else (STANDALONE)
set(GOOGLE_PERFTOOLS_FOUND "YES") set(GOOGLE_PERFTOOLS_FOUND "YES")
endif (WINDOWS) endif (WINDOWS)
if (LINUX) if (LINUX)
use_prebuilt_binary(google)
set(TCMALLOC_LIBRARIES tcmalloc) set(TCMALLOC_LIBRARIES tcmalloc)
set(STACKTRACE_LIBRARIES stacktrace) set(STACKTRACE_LIBRARIES stacktrace)
set(PROFILER_LIBRARIES profiler) set(PROFILER_LIBRARIES profiler)
set(GOOGLE_PERFTOOLS_INCLUDE_DIR set(GOOGLE_PERFTOOLS_INCLUDE_DIR
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) ${LIBS_PREBUILT_DIR}/include)
set(GOOGLE_PERFTOOLS_FOUND "YES") set(GOOGLE_PERFTOOLS_FOUND "YES")
endif (LINUX) endif (LINUX)
endif (STANDALONE) endif (STANDALONE)
......
# -*- 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 # 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), we always build with KDU
if (INSTALL_PROPRIETARY AND NOT STANDALONE) if (INSTALL_PROPRIETARY AND NOT STANDALONE)
set(USE_KDU ON) set(USE_KDU ON)
...@@ -14,7 +14,7 @@ if (USE_KDU) ...@@ -14,7 +14,7 @@ if (USE_KDU)
else (WINDOWS) else (WINDOWS)
set(KDU_LIBRARY libkdu.a) set(KDU_LIBRARY libkdu.a)
endif (WINDOWS) endif (WINDOWS)
set(KDU_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/kdu) set(KDU_INCLUDE_DIR ${AUTOBUILD_INSTALL_DIR}/include/kdu)
set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu) set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu)
set(LLKDU_LIBRARIES llkdu) set(LLKDU_LIBRARIES llkdu)
endif (USE_KDU) endif (USE_KDU)
# -*- cmake -*- # -*- cmake -*-
include(Variables)
if (NOT STANDALONE) if (NOT STANDALONE)
set(ARCH_PREBUILT_DIRS ${AUTOBUILD_INSTALL_DIR}/lib)
set(ARCH_PREBUILT_DIRS_RELEASE ${AUTOBUILD_INSTALL_DIR}/lib/release)
set(ARCH_PREBUILT_DIRS_DEBUG ${AUTOBUILD_INSTALL_DIR}/lib/debug)
if (WINDOWS) if (WINDOWS)
set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib) set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/release) set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
set(ARCH_PREBUILT_DIRS_DEBUG ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib/debug)
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs CACHE FILEPATH "Location of staged DLLs")
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs CACHE FILEPATH "Location of staged executables")
elseif (LINUX) elseif (LINUX)
if (VIEWER) set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/lib)
set(ARCH_PREBUILT_DIRS ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release_client) set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/bin)
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})
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/lib CACHE FILEPATH "Location of staged .sos")
set(EXE_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs/bin CACHE FILEPATH "Location of staged executables")
elseif (DARWIN) elseif (DARWIN)
set(ARCH_PREBUILT_DIRS_RELEASE ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/lib_release) set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs)
set(ARCH_PREBUILT_DIRS ${ARCH_PREBUILT_DIRS_RELEASE}) set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs/\$(CONFIGURATION)")
set(ARCH_PREBUILT_DIRS_DEBUG ${ARCH_PREBUILT_DIRS_RELEASE})
set(SHARED_LIB_STAGING_DIR ${CMAKE_BINARY_DIR}/sharedlibs CACHE FILEPATH "Location of staged DLLs")
set(EXE_STAGING_DIR "${CMAKE_BINARY_DIR}/sharedlibs/\$(CONFIGURATION)" CACHE FILEPATH "Location of staged executables")
endif (WINDOWS) endif (WINDOWS)
endif (NOT STANDALONE) endif (NOT STANDALONE)
link_directories(${ARCH_PREBUILT_DIRS}) # Autobuild packages must provide 'release' versions of libraries, but may provide versions for
# specific build types. AUTOBUILD_LIBS_INSTALL_DIRS lists first the build type directory and then
# the 'release' directory (as a default fallback).
# *NOTE - we have to take special care to use CMAKE_CFG_INTDIR on IDE generators (like mac and
# windows) and CMAKE_BUILD_TYPE on Makefile based generators (like linux). The reason for this is
# that CMAKE_BUILD_TYPE is essentially meaningless at configuration time for IDE generators and
# CMAKE_CFG_INTDIR is meaningless at build time for Makefile generators
if(WINDOWS OR DARWIN)
# the cmake xcode and VS generators implicitly append ${CMAKE_CFG_INTDIR} to the library paths for us
# fortunately both windows and darwin are case insensitive filesystems so this works.
set(AUTOBUILD_LIBS_INSTALL_DIRS "${AUTOBUILD_INSTALL_DIR}/lib/")
else(WINDOWS OR DARWIN)
# else block is for linux and any other makefile based generators
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
set(AUTOBUILD_LIBS_INSTALL_DIRS ${AUTOBUILD_INSTALL_DIR}/lib/${CMAKE_BUILD_TYPE_LOWER})
endif(WINDOWS OR DARWIN)
list(APPEND AUTOBUILD_LIBS_INSTALL_DIRS ${ARCH_PREBUILT_DIRS_RELEASE})
link_directories(${AUTOBUILD_LIBS_INSTALL_DIRS})
if (LINUX) if (LINUX)
set(DL_LIBRARY dl) set(DL_LIBRARY dl)
......
...@@ -37,9 +37,9 @@ IF (DARWIN) ...@@ -37,9 +37,9 @@ IF (DARWIN)
ELSE (DARWIN) ELSE (DARWIN)
SET(MONO_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) SET(MONO_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
SET(GLIB_2_0_PLATFORM_INCLUDE_DIR SET(GLIB_2_0_PLATFORM_INCLUDE_DIR
${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0) ${LIBS_PREBUILT_DIR}/include/glib-2.0)
SET(GLIB_2_0_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/glib-2.0) SET(GLIB_2_0_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/glib-2.0)
INCLUDE_DIRECTORIES( INCLUDE_DIRECTORIES(
......
...@@ -7,7 +7,7 @@ use_prebuilt_binary(mysql) ...@@ -7,7 +7,7 @@ use_prebuilt_binary(mysql)
if (LINUX) if (LINUX)
if (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1") if (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
set(MYSQL_LIBRARIES mysqlclient) set(MYSQL_LIBRARIES mysqlclient)
set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
else (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1") else (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
# Use the native MySQL library on a 64-bit system. # Use the native MySQL library on a 64-bit system.
set(MYSQL_FIND_QUIETLY ON) set(MYSQL_FIND_QUIETLY ON)
...@@ -16,9 +16,9 @@ if (LINUX) ...@@ -16,9 +16,9 @@ if (LINUX)
endif (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1") endif (WORD_SIZE EQUAL 32 OR DEBIAN_VERSION STREQUAL "3.1")
elseif (WINDOWS) elseif (WINDOWS)
set(MYSQL_LIBRARIES mysqlclient) set(MYSQL_LIBRARIES mysqlclient)
set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
elseif (DARWIN) elseif (DARWIN)
set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) set(MYSQL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
set(MYSQL_LIBRARIES set(MYSQL_LIBRARIES
optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libmysqlclient.a optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libmysqlclient.a
debug ${ARCH_PREBUILT_DIRS_DEBUG}/libmysqlclient.a debug ${ARCH_PREBUILT_DIRS_DEBUG}/libmysqlclient.a
......
...@@ -15,7 +15,7 @@ if (OPENAL) ...@@ -15,7 +15,7 @@ if (OPENAL)
pkg_check_modules(OPENAL_LIB REQUIRED openal) pkg_check_modules(OPENAL_LIB REQUIRED openal)
pkg_check_modules(FREEALUT_LIB REQUIRED freealut) pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
else (STANDALONE) else (STANDALONE)
use_prebuilt_binary(openal-soft) use_prebuilt_binary(openal_soft)
endif (STANDALONE) endif (STANDALONE)
set(OPENAL_LIBRARIES set(OPENAL_LIBRARIES
openal openal
......
...@@ -5,5 +5,5 @@ if (NOT STANDALONE) ...@@ -5,5 +5,5 @@ if (NOT STANDALONE)
use_prebuilt_binary(GL) use_prebuilt_binary(GL)
# possible glh_linear should have its own .cmake file instead # possible glh_linear should have its own .cmake file instead
use_prebuilt_binary(glh_linear) use_prebuilt_binary(glh_linear)
set(GLEXT_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include) set(GLEXT_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
endif (NOT STANDALONE) endif (NOT STANDALONE)
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