X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1646ae22293797443bb53db40eea5fa48bd91e43..3d23c9b7d9977707bfe9d83d1b30cb5147126b3c:/distrib/scripts/unix/unixbuild diff --git a/distrib/scripts/unix/unixbuild b/distrib/scripts/unix/unixbuild new file mode 100755 index 0000000000..c80b9eba66 --- /dev/null +++ b/distrib/scripts/unix/unixbuild @@ -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 \ No newline at end of file