diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-27 20:26:07 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-10-27 20:26:07 (GMT) |
commit | 0a9c4c2e8f10de0323503fd5f2b11f31314b380c (patch) | |
tree | 2d5f6c0659df463b103fe376af72ce5ab173b5cf /contrib/build-scripts | |
parent | 1e42b29439d247598d58aac10f62c77cf2f31f12 (diff) | |
download | uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.zip uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.tar.gz uscxml-0a9c4c2e8f10de0323503fd5f2b11f31314b380c.tar.bz2 |
Added XML node to DataModel::evalAsBool signature to enable script caching
Diffstat (limited to 'contrib/build-scripts')
-rwxr-xr-x | contrib/build-scripts/build-libevent-linux.sh | 2 | ||||
-rwxr-xr-x | contrib/build-scripts/build-v8-linux.sh | 58 | ||||
-rwxr-xr-x | contrib/build-scripts/build-v8-mac.sh | 70 |
3 files changed, 129 insertions, 1 deletions
diff --git a/contrib/build-scripts/build-libevent-linux.sh b/contrib/build-scripts/build-libevent-linux.sh index 1bd2808..cdb6115 100755 --- a/contrib/build-scripts/build-libevent-linux.sh +++ b/contrib/build-scripts/build-libevent-linux.sh @@ -1,7 +1,7 @@ #!/bin/bash # -# build libevent for MacOSX +# build libevent for linux # # exit on error diff --git a/contrib/build-scripts/build-v8-linux.sh b/contrib/build-scripts/build-v8-linux.sh new file mode 100755 index 0000000..5991e1c --- /dev/null +++ b/contrib/build-scripts/build-v8-linux.sh @@ -0,0 +1,58 @@ +#!/bin/bash + +# +# build libevent for linux +# + +# exit on error +set -e + +ME=`basename $0` +DIR="$( cd "$( dirname "$0" )" && pwd )" +CPUARCH=`uname -m` +DEST_DIR="${DIR}/../prebuilt/linux-${CPUARCH}/gnu" +PWD=`pwd` + +if [ ! -f src/v8.h ]; then + echo + echo "Cannot find src/v8.h" + echo "Run script from within v8 directory" + echo + exit +fi + +if [ ! -f ../depot_tools/update_depot_tools ]; then + echo + echo "Cannot find ../depot_tools/update_depot_tools" + echo "Checkout depot_tools as a sibling directory" + echo "svn co http://src.chromium.org/svn/trunk/tools/depot_tools" + echo + exit +fi + +DEPOT_PATH="${PWD}/../depot_tools" +export PATH="${DEPOT_PATH}:${PATH}" + +if [ "${CPUARCH}" = "x86_64" ]; then + make x64.debug + make x64.release + + cp ./out/x64.debug/obj.target/tools/gyp/libv8_base.x64.a ${DEST_DIR}/lib/libv8_base_d.a + cp ./out/x64.debug/obj.target/tools/gyp/libv8_snapshot.a ${DEST_DIR}/lib/libv8_snapshot_d.a + cp ./out/x64.release/obj.target/tools/gyp/libv8_base.x64.a ${DEST_DIR}/lib/libv8_base.a + cp ./out/x64.release/obj.target/tools/gyp/libv8_snapshot.a ${DEST_DIR}/lib/libv8_snapshot.a + +fi + +if [ "${CPUARCH}" = "i686" ]; then + make ia32.debug + make ia32.release + + cp ./out/ia32.debug/obj.target/tools/gyp/libv8_base.ia32.a ${DEST_DIR}/lib/libv8_base_d.a + cp ./out/ia32.debug/obj.target/tools/gyp/libv8_snapshot.a ${DEST_DIR}/lib/libv8_snapshot_d.a + cp ./out/ia32.release/obj.target/tools/gyp/libv8_base.ia32.a ${DEST_DIR}/lib/libv8_base.a + cp ./out/ia32.release/obj.target/tools/gyp/libv8_snapshot.a ${DEST_DIR}/lib/libv8_snapshot.a + +fi + +cp include/* ${DEST_DIR}/include diff --git a/contrib/build-scripts/build-v8-mac.sh b/contrib/build-scripts/build-v8-mac.sh new file mode 100755 index 0000000..4d5aa62 --- /dev/null +++ b/contrib/build-scripts/build-v8-mac.sh @@ -0,0 +1,70 @@ +#!/bin/bash + +# +# build v8 for MacOSX +# http://code.google.com/p/v8/wiki/BuildingWithGYP +# + +# exit on error +set -e + +ME=`basename $0` +DIR="$( cd "$( dirname "$0" )" && pwd )" +MACOSX_VER=`/usr/bin/sw_vers -productVersion` +MACOSX_COMP=(`echo $MACOSX_VER | tr '.' ' '`) +DEST_DIR="${DIR}/../prebuilt/darwin-i386/${MACOSX_COMP[0]}.${MACOSX_COMP[1]}/gnu" +PWD=`pwd` + +export MACOSX_DEPLOYMENT_TARGET=10.6 + +if [ ! -f src/v8.h ]; then + echo + echo "Cannot find src/v8.h" + echo "Run script from within v8 directory" + echo + exit +fi + +if [ ! -f ../depot_tools/update_depot_tools ]; then + echo + echo "Cannot find ../depot_tools/update_depot_tools" + echo "Checkout depot_tools as a sibling directory" + echo "svn co http://src.chromium.org/svn/trunk/tools/depot_tools" + echo + exit +fi + +DEPOT_PATH="${PWD}/../depot_tools" +export PATH="${DEPOT_PATH}:${PATH}" + +make dependencies + +make ia32.release +make ia32.debug + +make x64.release +make x64.debug + +cp include/* ${DEST_DIR}/include + +lipo -create \ + ./out/x64.release/libv8_base.x64.a \ + ./out/ia32.release/libv8_base.ia32.a \ + -output ${DEST_DIR}/lib/libv8_base.a + +lipo -create \ + ./out/x64.release/libv8_snapshot.a \ + ./out/ia32.release/libv8_snapshot.a \ + -output ${DEST_DIR}/lib/libv8_snapshot.a + +lipo -create \ + ./out/x64.debug/libv8_base.x64.a \ + ./out/ia32.debug/libv8_base.ia32.a \ + -output ${DEST_DIR}/lib/libv8_base_d.a + +lipo -create \ + ./out/x64.debug/libv8_snapshot.a \ + ./out/ia32.debug/libv8_snapshot.a \ + -output ${DEST_DIR}/lib/libv8_snapshot_d.a + + |