summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autobuild.xml12
-rwxr-xr-xbuild.sh56
-rw-r--r--indra/cmake/Havok.cmake17
-rw-r--r--indra/cmake/LLPhysicsExtensions.cmake18
-rwxr-xr-xpackage_physicsextensions.sh52
-rw-r--r--package_physicsextensions.xml292
6 files changed, 68 insertions, 379 deletions
diff --git a/autobuild.xml b/autobuild.xml
index ee1933791a..7d5dbb4dcf 100644
--- a/autobuild.xml
+++ b/autobuild.xml
@@ -1254,11 +1254,11 @@
<key>archive</key>
<map>
<key>hash</key>
- <string>993c34b85bfb4e2eb7983c3e4e86c391</string>
+ <string>4a9a12f396c4486cf9a456b251397150</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
- <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/llphysicsextensions-source/rev/262057/arch/Darwin/installer/llphysicsextensions_source-0.2-darwin-20120717.tar.bz2</string>
+ <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/oz_llphysicsextensions-source/rev/262209/arch/Darwin/installer/llphysicsextensions_source-0.3-darwin-20120720.tar.bz2</string>
</map>
<key>name</key>
<string>darwin</string>
@@ -1268,9 +1268,9 @@
<key>archive</key>
<map>
<key>hash</key>
- <string>40d9b5a2de930e73dd18ded97ddf5232</string>
+ <string>156abe6878ff3427c1c21d8cb6f9f3c5</string>
<key>url</key>
- <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/llphysicsextensions-source/rev/262057/arch/Linux/installer/llphysicsextensions_source-0.2-linux-20120718.tar.bz2</string>
+ <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/oz_llphysicsextensions-source/rev/262209/arch/Linux/installer/llphysicsextensions_source-0.3-linux-20120720.tar.bz2</string>
</map>
<key>name</key>
<string>linux</string>
@@ -1280,9 +1280,9 @@
<key>archive</key>
<map>
<key>hash</key>
- <string>1ed0d8c8ecdb6c8d3068a789415d9747</string>
+ <string>d123648105c8c363ef4b445bef983fd5</string>
<key>url</key>
- <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/llphysicsextensions-source/rev/262057/arch/CYGWIN/installer/llphysicsextensions_source-0.2-windows-20120717.tar.bz2</string>
+ <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/oz_llphysicsextensions-source/rev/262209/arch/CYGWIN/installer/llphysicsextensions_source-0.3-windows-20120720.tar.bz2</string>
</map>
<key>name</key>
<string>windows</string>
diff --git a/build.sh b/build.sh
index 37c5f1bce9..b5876738e6 100755
--- a/build.sh
+++ b/build.sh
@@ -81,16 +81,43 @@ pre_build()
end_section "Pre$variant"
}
+package_llphysicsextensions_tpv()
+{
+ begin_section "PhysicsExtensions_TPV"
+ tpv_status=0
+ if [ "$variant" = "Release" ]
+ then
+ llpetpvcfg=$build_dir/packages/llphysicsextensions/autobuild-tpv.xml
+ "$AUTOBUILD" build --verbose --config-file $llpetpvcfg -c Tpv
+
+ # capture the package file name for use in upload later...
+ PKGTMP=`mktemp -t pgktpv.XXXXXX`
+ trap "rm $PKGTMP* 2>/dev/null" 0
+ "$AUTOBUILD" package --verbose --config-file $llpetpvcfg > $PKGTMP
+ tpv_status=$?
+ sed -n -e 's/^wrote *//p' $PKGTMP > $build_dir/llphysicsextensions_package
+ else
+ echo "Do not provide llphysicsextensions_tpv for $variant"
+ llphysicsextensions_package=""
+ fi
+ end_section "PhysicsExtensions_TPV"
+ return $tpv_status
+}
+
build()
{
local variant="$1"
if $build_viewer
then
begin_section "Viewer$variant"
-
check_for "Before 'autobuild build'" ${build_dir}/packages/dictionaries
- if "$AUTOBUILD" build --no-configure -c $variant
+ "$AUTOBUILD" build --no-configure -c $variant
+ viewer_build_ok=$?
+ end_section "Viewer$variant"
+ package_llphysicsextensions_tpv
+ tpvlib_build_ok=$?
+ if [ $viewer_build_ok -eq 0 -a $tpvlib_build_ok -eq 0 ]
then
echo true >"$build_dir"/build_ok
else
@@ -98,7 +125,6 @@ build()
fi
check_for "After 'autobuild configure'" ${build_dir}/packages/dictionaries
- end_section "Viewer$variant"
fi
}
@@ -215,11 +241,6 @@ do
mkdir -p "$build_dir"
mkdir -p "$build_dir/tmp"
- # Install packages.
- begin_section "AutobuildInstall"
- "$AUTOBUILD" install --verbose --skip-license-check
- end_section "AutobuildInstall"
-
if pre_build "$variant" "$build_dir" >> "$build_log" 2>&1
then
if $build_link_parallel
@@ -289,21 +310,22 @@ then
upload_item quicklink "$package" binary/octet-stream
[ -f summary.json ] && upload_item installer summary.json text/plain
- # Upload crash reporter files and symbolfile for public llphysicsextensions build.
case "$last_built_variant" in
Release)
+ # Upload crash reporter files
for symbolfile in $symbolfiles
do
upload_item symbolfile "$build_dir/$symbolfile" binary/octet-stream
done
-
- mapfilepath=$build_dir/newview
- gzip $mapfilepath/secondlife-bin.MAP
- mapfile=secondlife-bin-$arch.MAP.gz
- mv $mapfilepath/secondlife-bin.MAP.gz $mapfilepath/$mapfile
- upload_item mapfile "$mapfilepath/$mapfile" binary/octet-stream
- echo "Uploaded mapfile for $last_built_variant"
-
+
+ # Upload the llphysicsextensions_tpv package, if one was produced
+ if [ -r "$build_dir/llphysicsextensions_package" ]
+ then
+ llphysicsextensions_package=$(cat $build_dir/llphysicsextensions_package)
+ upload_item private_artifact "$llphysicsextensions_package" binary/octet-stream
+ else
+ echo "No llphysicsextensions_package"
+ fi
;;
*)
echo "Skipping mapfile for $last_built_variant"
diff --git a/indra/cmake/Havok.cmake b/indra/cmake/Havok.cmake
index 49b348e9f7..5c0768abfa 100644
--- a/indra/cmake/Havok.cmake
+++ b/indra/cmake/Havok.cmake
@@ -7,13 +7,16 @@ list(APPEND Havok_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/havok/Demo)
set(HAVOK_DEBUG_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug/havok-fulldebug)
set(HAVOK_RELEASE_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release/havok)
-if (LL_DEBUG_HAVOK AND NOT WIN32)
- set(HAVOK_RELWITHDEBINFO_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug/havok-fulldebug)
-else (LL_DEBUG_HAVOK AND NOT WIN32)
- # Always link relwithdebinfo to havok-hybrid on windows.
- set(HAVOK_RELWITHDEBINFO_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug/havok-hybrid)
-endif (LL_DEBUG_HAVOK AND NOT WIN32)
-
+if (LL_DEBUG_HAVOK)
+ if (WIN32)
+ # Always link relwithdebinfo to havok-hybrid on windows.
+ set(HAVOK_RELWITHDEBINFO_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug/havok-hybrid)
+ else (WIN32)
+ set(HAVOK_RELWITHDEBINFO_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/debug/havok-fulldebug)
+ endif (WIN32)
+else (LL_DEBUG_HAVOK)
+ set(HAVOK_RELWITHDEBINFO_LIBRARY_PATH ${LIBS_PREBUILT_DIR}/lib/release/havok)
+endif (LL_DEBUG_HAVOK)
set(HAVOK_LIBS
hkBase
diff --git a/indra/cmake/LLPhysicsExtensions.cmake b/indra/cmake/LLPhysicsExtensions.cmake
index 72ac35e02b..e6afee762e 100644
--- a/indra/cmake/LLPhysicsExtensions.cmake
+++ b/indra/cmake/LLPhysicsExtensions.cmake
@@ -1,22 +1,30 @@
# -*- cmake -*-
include(Prebuilt)
-# Note that the use_prebuilt_binary macros below do not in fact include binaries;
-# the llphysicsextensions_* packages are source only and are built here.
-# The source package and the stub package both build libraries of the same name.
+# There are three possible solutions to provide the llphysicsextensions:
+# - The full source package, selected by -DHAVOK:BOOL=ON
+# - The stub source package, selected by -DHAVOK:BOOL=OFF
+# - The prebuilt package available to those with sublicenses, selected by -DHAVOK_TPV:BOOL=ON
-# Using the real wrapper or the stub can be controlled with -DHAVOK:BOOL={ON,OFF}
-# the default
if (INSTALL_PROPRIETARY)
set(HAVOK ON CACHE BOOL "Use Havok physics library")
endif (INSTALL_PROPRIETARY)
+
+# Note that the use_prebuilt_binary macros below do not in fact include binaries;
+# the llphysicsextensions_* packages are source only and are built here.
+# The source package and the stub package both build libraries of the same name.
+
if (HAVOK)
include(Havok)
use_prebuilt_binary(llphysicsextensions_source)
set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/src)
set(LLPHYSICSEXTENSIONS_LIBRARIES llphysicsextensions)
+elseif (HAVOK_TPV)
+ use_prebuilt_binary(llphysicsextensions_tpv)
+ set(LLPHYSICSEXTENSIONS_LIBRARIES llphysicsextensions_tpv)
+
else (HAVOK)
use_prebuilt_binary(llphysicsextensions_stub)
set(LLPHYSICSEXTENSIONS_SRC_DIR ${LIBS_PREBUILT_DIR}/llphysicsextensions/stub)
diff --git a/package_physicsextensions.sh b/package_physicsextensions.sh
deleted file mode 100755
index 5b4c23ecc9..0000000000
--- a/package_physicsextensions.sh
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-
-cd "$(dirname "$0")"
-
-# turn on verbose debugging output for parabuild logs.
-set -x
-# make errors fatal
-set -e
-
-if [ -z "$AUTOBUILD" ] ; then
- fail
-fi
-
-if [ "$OSTYPE" = "cygwin" ] ; then
- export AUTOBUILD="$(cygpath -u $AUTOBUILD)"
-fi
-
-# load autbuild provided shell functions and variables
-eval "$("$AUTOBUILD" source_environment)"
-
-projectDir="$(pwd)"
-
-#directories we need the headers from
-projects="llcommon llimage llmath llrender"
-
-source="$projectDir/indra"
-
-stage="$projectDir/stage/include"
-mkdir -p $stage
-
-for project in $projects
-do
- dstIncludeDir="$stage/$project"
- mkdir -p $dstIncludeDir
- headers="$source/$project/*.h"
- cp $headers "$dstIncludeDir"
- headers="$source/$project/*.inl"
- # not all projects have .inl files
- files=$(ls $headers 2> /dev/null | wc -l)
- if [ "$files" != "0" ] ; then
- cp $headers "$dstIncludeDir"
- fi
-done
-
-# Copy the license files into place for packaging
-srcLicenseDir="$projectDir/doc"
-dstLicenseDir="$projectDir/stage/LICENSES"
-
-mkdir -p "$dstLicenseDir"
-cp "$srcLicenseDir/LGPL-licence.txt" "$dstLicenseDir/LGPL-licence.txt"
-
-pass
diff --git a/package_physicsextensions.xml b/package_physicsextensions.xml
deleted file mode 100644
index 0bde6ad770..0000000000
--- a/package_physicsextensions.xml
+++ /dev/null
@@ -1,292 +0,0 @@
-<?xml version="1.0" ?>
-<llsd>
-<map>
- <key>package_description</key>
- <map>
- <key>description</key>
- <string>include files referenced in the llphysicsextensions</string>
- <key>license</key>
- <string>LGPL</string>
- <key>license_file</key>
- <string>LICENSES/LGPL-licence.txt</string>
- <key>name</key>
- <string>pathfinding_includes</string>
- <key>platforms</key>
- <map>
- <key>common</key>
- <map>
- <key>build_directory</key>
- <string>stage</string>
- <key>configurations</key>
- <map>
- <key>Debug</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>True</string>
- <key>name</key>
- <string>Debug</string>
- </map>
- <key>Release</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>True</string>
- <key>name</key>
- <string>Release</string>
- </map>
- <key>RelWithDebInfo</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>True</string>
- <key>name</key>
- <string>RelWithDebInfo</string>
- </map>
- </map>
- <key>name</key>
- <string>common</string>
- </map>
- <key>darwin</key>
- <map>
- <key>build_directory</key>
- <string>stage</string>
- <key>configurations</key>
- <map>
- <key>Debug</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>Debug</string>
- </map>
- <key>Release</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>Release</string>
- </map>
- <key>RelWithDebInfo</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>RelWithDebInfo</string>
- </map>
- </map>
- <key>name</key>
- <string>darwin</string>
- </map>
- <key>linux</key>
- <map>
- <key>build_directory</key>
- <string>stage</string>
- <key>configurations</key>
- <map>
- <key>Debug</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>name</key>
- <string>Debug</string>
- </map>
- <key>Release</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>name</key>
- <string>Release</string>
- </map>
- <key>RelWithDebInfo</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>name</key>
- <string>RelWithDebInfo</string>
- </map>
- </map>
- <key>manifest</key>
- <array>
- <string>include</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>linux</string>
- </map>
- <key>windows</key>
- <map>
- <key>build_directory</key>
- <string>stage</string>
- <key>configurations</key>
- <map>
- <key>Debug</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>Debug</string>
- </map>
- <key>Release</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>Release</string>
- </map>
- <key>RelWithDebInfo</key>
- <map>
- <key>build</key>
- <map>
- <key>command</key>
- <string>bash</string>
- <key>options</key>
- <array>
- <string>-c ../package_physicsextensions.sh</string>
- </array>
- </map>
- <key>default</key>
- <string>true</string>
- <key>manifest</key>
- <array>
- <string>include/</string>
- <string>LICENSES</string>
- </array>
- <key>name</key>
- <string>RelWithDebInfo</string>
- </map>
- </map>
- <key>name</key>
- <string>windows</string>
- </map>
- </map>
- <key>version</key>
- <string>1.0</string>
- </map>
- <key>type</key>
- <string>autobuild</string>
- <key>version</key>
- <string>1.2</string>
- </map>
-</llsd>