checkin of ODE library. Do not modify the ODE source code; instead, follow the
development of ode at http://q12.org and periodically copy the q12.org ODE sourcecode into this tree to update the Blender ODE. This ODE has not been changed from q12.org and is provided here merely as a convenience to Blender developers.
This commit is contained in:
42
extern/ode/dist/tools/build4
vendored
Executable file
42
extern/ode/dist/tools/build4
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# build all four precision/release configurations and log the build messages
|
||||
# (used for debugging).
|
||||
|
||||
PLATFORM=unix-gcc
|
||||
SETTINGS=config/user-settings
|
||||
|
||||
if [ ! -f ode/src/ode.cpp ]; then
|
||||
echo "run this from the ODE root directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
function build() {
|
||||
echo -e "$PRECISION $MODE\n\n" >> BUILD_LOG
|
||||
cat <<END > $SETTINGS
|
||||
PLATFORM=$PLATFORM
|
||||
PRECISION=$PRECISION
|
||||
BUILD=$MODE
|
||||
END
|
||||
make clean
|
||||
make >> BUILD_LOG 2>&1
|
||||
echo -e "\n\n---------------------------------------------\n\n" >> BUILD_LOG
|
||||
}
|
||||
|
||||
echo > BUILD_LOG
|
||||
|
||||
PRECISION=SINGLE
|
||||
MODE=debug
|
||||
build
|
||||
PRECISION=SINGLE
|
||||
MODE=release
|
||||
build
|
||||
PRECISION=DOUBLE
|
||||
MODE=debug
|
||||
build
|
||||
PRECISION=DOUBLE
|
||||
MODE=release
|
||||
build
|
||||
|
||||
make clean
|
||||
rm -f $SETTINGS
|
43
extern/ode/dist/tools/build4.bat
vendored
Executable file
43
extern/ode/dist/tools/build4.bat
vendored
Executable file
@@ -0,0 +1,43 @@
|
||||
@echo off
|
||||
rem build all four precision/release configurations and log the build messages
|
||||
rem (used for debugging).
|
||||
|
||||
setlocal
|
||||
|
||||
set PLATFORM=cygwin
|
||||
set SETTINGS=config\user-settings
|
||||
|
||||
echo SINGLE debug > BUILD_LOG
|
||||
echo PLATFORM=%PLATFORM%> %SETTINGS%
|
||||
echo PRECISION=SINGLE>> %SETTINGS%
|
||||
echo BUILD=debug>> %SETTINGS%
|
||||
make clean
|
||||
make >> BUILD_LOG
|
||||
echo --------------------------------------------- >> BUILD_LOG
|
||||
|
||||
echo DOUBLE debug >> BUILD_LOG
|
||||
echo PLATFORM=%PLATFORM%> %SETTINGS%
|
||||
echo PRECISION=DOUBLE>> %SETTINGS%
|
||||
echo BUILD=debug>> %SETTINGS%
|
||||
make clean
|
||||
make >> BUILD_LOG
|
||||
echo --------------------------------------------- >> BUILD_LOG
|
||||
|
||||
echo SINGLE release >> BUILD_LOG
|
||||
echo PLATFORM=%PLATFORM%> %SETTINGS%
|
||||
echo PRECISION=SINGLE>> %SETTINGS%
|
||||
echo BUILD=release>> %SETTINGS%
|
||||
make clean
|
||||
make >> BUILD_LOG
|
||||
echo --------------------------------------------- >> BUILD_LOG
|
||||
|
||||
echo DOUBLE release >> BUILD_LOG
|
||||
echo PLATFORM=%PLATFORM%> %SETTINGS%
|
||||
echo PRECISION=DOUBLE>> %SETTINGS%
|
||||
echo BUILD=release>> %SETTINGS%
|
||||
make clean
|
||||
make >> BUILD_LOG
|
||||
echo --------------------------------------------- >> BUILD_LOG
|
||||
|
||||
make clean
|
||||
del %SETTINGS%
|
45
extern/ode/dist/tools/make_distribution
vendored
Executable file
45
extern/ode/dist/tools/make_distribution
vendored
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
|
||||
VER=0.03
|
||||
# VER=`date +%y%m%d`
|
||||
|
||||
if [ ! -f ode/src/ode.cpp ]; then
|
||||
echo "run this from the ODE root directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ODE_DIR=`pwd`
|
||||
|
||||
cd /tmp
|
||||
if [ -d /tmp/ode-$VER ]; then
|
||||
echo "remove /tmp/ode-$VER first"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir /tmp/ode-$VER
|
||||
cp -av $ODE_DIR/* /tmp/ode-$VER
|
||||
find /tmp/ode-$VER -type d -name CVS -exec rm -rf {} \; -print
|
||||
find /tmp/ode-$VER -type f -name *~ -exec rm -f {} \; -print
|
||||
rmdir /tmp/ode-$VER/build
|
||||
|
||||
cd /tmp/ode-$VER
|
||||
make clean
|
||||
cp config/user-settings.example config/user-settings
|
||||
|
||||
cd ode/doc
|
||||
./doccer ode.doc > ode.html
|
||||
|
||||
cd /tmp/ode-$VER
|
||||
echo -e "\n\nMake any modifications you want, then exit the shell:"
|
||||
bash
|
||||
|
||||
cd /tmp
|
||||
tar cfvz ode-$VER.tgz ode-$VER
|
||||
rm -rf /tmp/ode-$VER
|
||||
|
||||
echo -e "\ntype <return> to exit or 'c' to copy to q12"
|
||||
read Q
|
||||
if [ $Q ]; then
|
||||
echo copying...
|
||||
scp1 ode-$VER.tgz q12.org:~/q12/ode/release/
|
||||
fi
|
11
extern/ode/dist/tools/process_deps
vendored
Executable file
11
extern/ode/dist/tools/process_deps
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
$a = join ('',<STDIN>);
|
||||
$a =~ s/\\\n/ /g; # join continued lines
|
||||
$a =~ s/(^\S+:)/$ARGV[0]$1/gm; # put prefix in front of rules
|
||||
$a =~ s/\s+\/\S+/ /g; # remove absolute path dependencies
|
||||
$a =~ s/\s+\n/\n/g; # remove whitespace at end of lines
|
||||
$a =~ s/[ \t]+/ /g; # clean up interior whitespace
|
||||
$a =~ s/ / \\\n /g; # put back line continuations
|
||||
|
||||
print $a;
|
Reference in New Issue
Block a user