]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/scripts/unix/unixbuild
.svn not CVS files should be skipped
[wxWidgets.git] / distrib / scripts / unix / unixbuild
... / ...
CommitLineData
1#!/bin/sh
2
3# you need to change this if you run from outside this dir.
4if [ "$WXROOT" = "" ]; then
5 WXROOT=../../..
6fi
7
8. $WXROOT/distrib/scripts/includes/configure_build.inc
9
10WXPYTHON=0
11UNICODE=0
12DEBUG=0
13STATIC=0
14PORT=""
15
16# Process command line options.
17for i in "$@"; do
18 case "$i" in
19 unicode) UNICODE=1 ;;
20 ansi) UNICODE=0 ;;
21 debug) DEBUG=1 ;;
22 wxpython) WXPYTHON=1 ;;
23 gtk2) PORT="gtk2" ;;
24 gtk) PORT="gtk" ;;
25 x11) PORT="x11" ;;
26 motif) PORT="motif" ;;
27 static) STATIC=1 ;;
28 *)
29 usage
30 exit
31 ;;
32 esac
33done
34
35OTHER_OPTS="--with-$PORT "
36
37do_build
38
39make prefix=$INSTALLDIR install
40
41if [ "$WXPYTHON" == "1" ]; then
42 make -C contrib/src/animate prefix=$INSTALLDIR install
43 make -C contrib/src/gizmos prefix=$INSTALLDIR install
44 make -C contrib/src/stc prefix=$INSTALLDIR install
45fi
46
47cd $OLDDIR