]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/unix/unixbuild
[ 1577675 ] Fix for GTK warnings in wxNotebook::DoRemovePage
[wxWidgets.git] / distrib / scripts / unix / unixbuild
1 #!/bin/sh
2
3 # you need to change this if you run from outside this dir.
4 if [ "$WXROOT" = "" ]; then
5 WXROOT=../../..
6 fi
7
8 . $WXROOT/distrib/scripts/includes/configure_build.inc
9
10 WXPYTHON=0
11 UNICODE=0
12 DEBUG=0
13 STATIC=0
14 PORT=""
15
16 # Process command line options.
17 for 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
33 done
34
35 OTHER_OPTS="--with-$PORT "
36
37 do_build
38
39 make prefix=$INSTALLDIR install
40
41 if [ "$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
45 fi
46
47 cd $OLDDIR