Initial implementation of wxWidgets build scripts for Mac and Unix. To run tests, just run dobuilds in mac and unix dirs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2006-05-03 04:36:17 +00:00
parent 1646ae2229
commit 3d23c9b7d9
7 changed files with 323 additions and 0 deletions

44
distrib/scripts/unix/dobuilds Executable file
View File

@@ -0,0 +1,44 @@
#!/bin/sh
HOMEDIR="$PWD"
BUILDDIR_ROOT="$PWD/builds"
BUILDDIR_CARBON="$BUILDDIR_ROOT/carbon"
BUILDDIR_COCOA="$BUILDDIR_ROOT/cocoa"
mkdir -p $BUILDDIR_CARBON
mkdir -p $BUILDDIR_COCOA
cd $BUILDDIR_CARBON
BUILDDIR=$BUILDDIR_CARBON
export WXROOT="$HOMEDIR/../../.."
export INSTALLDIR="$BUILDDIR/install-ansi"
$HOMEDIR/macbuild
export INSTALLDIR="$BUILDDIR/install-unicode"
$HOMEDIR/macbuild unicode
export INSTALLDIR="$BUILDDIR/install-static-ansi"
$HOMEDIR/macbuild static
export INSTALLDIR="$BUILDDIR/install-static-unicode"
$HOMEDIR/macbuild static unicode
cd $BUILDDIR_COCOA
BUILDDIR=$BUILDDIR_COCOA
export INSTALLDIR="$BUILDDIR/install-ansi"
$HOMEDIR/macbuild cocoa
export INSTALLDIR="$BUILDDIR/install-unicode"
$HOMEDIR/macbuild cocoa unicode
export INSTALLDIR="$BUILDDIR/install-static-ansi"
$HOMEDIR/macbuild cocoa static
export INSTALLDIR="$BUILDDIR/install-static-unicode"
$HOMEDIR/macbuild cocoa static unicode
cd $HOMEDIR

47
distrib/scripts/unix/unixbuild Executable file
View File

@@ -0,0 +1,47 @@
#!/bin/sh
# you need to change this if you run from outside this dir.
if [ "$WXROOT" = "" ]; then
WXROOT=../../..
fi
. $WXROOT/distrib/scripts/includes/configure_build.inc
WXPYTHON=0
UNICODE=0
DEBUG=0
STATIC=0
PORT=""
# Process command line options.
for i in "$@"; do
case "$i" in
unicode) UNICODE=1 ;;
ansi) UNICODE=0 ;;
debug) DEBUG=1 ;;
wxpython) WXPYTHON=1 ;;
gtk2) PORT="gtk2" ;;
gtk) PORT="gtk" ;;
x11) PORT="x11" ;;
motif) PORT="motif" ;;
static) STATIC=1 ;;
*)
usage
exit
;;
esac
done
OTHER_OPTS="--with-$PORT "
do_build
make prefix=$INSTALLDIR install
if [ "$WXPYTHON" == "1" ]; then
make -C contrib/src/animate prefix=$INSTALLDIR install
make -C contrib/src/gizmos prefix=$INSTALLDIR install
make -C contrib/src/stc prefix=$INSTALLDIR install
fi
cd $OLDDIR