]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/includes/configure_build.inc
added CreateSeparatedButtonSizer(), changed signature and semantics of CreateButtonSi...
[wxWidgets.git] / distrib / scripts / includes / configure_build.inc
1
2 if [ "$INSTALLDIR" = "" ]; then
3 INSTALLDIR=$BUILDDIR/install
4 mkdir -p $INSTALLDIR
5 fi
6
7 # wxPython needs this option so that it can build extensions that store the
8 # right install_name (e.g. /usr/local/lib) even if the files aren't actually
9 # in /usr/local/lib at the time they're being linked against
10 # we do this by setting the "official" prefix at build time, and later
11 if [ "$BUILDPREFIX" = "" ]; then
12 BUILDPREFIX=$INSTALLDIR
13 fi
14
15
16 DEBUG_OPTS="--enable-debug"
17
18 UNICODE_OPTS="--enable-unicode"
19
20 ANSI_OPTS="--enable-ansi"
21
22 WXPYTHON_OPTS="--enable-monolithic \
23 --with-opengl \
24 --enable-sound \
25 --enable-mediactrl \
26 --enable-display \
27 --enable-geometry \
28 --enable-debug_flag \
29 --enable-optimise \
30 --disable-debugreport "
31
32
33 do_build(){
34 OPTS=""
35 if [ "$WXPYTHON" == "1" ]; then
36 OPTS="$WXPYTHON_OPTS"
37 fi
38
39 if [ "$DEBUG" == "1" ]; then
40 OPTS="$OPTS $DEBUG_OPTS "
41 fi
42
43 if [ "$UNICODE" == "1" ]; then
44 OPTS="$OPTS $UNICODE_OPTS "
45 fi
46
47
48
49 if [ "$STATIC" == "1" ]; then
50 OPTS="$OPTS --enable-static"
51 fi
52
53 OPTS="$OPTS $OTHER_OPTS"
54
55 $WXROOT/configure --prefix=$BUILDPREFIX $OPTS
56 make
57
58 # build the libs wxPython needs
59 if [ "$WXPYTHON" == "1" ]; then
60 make -C contrib/src/animate
61 make -C contrib/src/gizmos
62 make -C contrib/src/stc
63 fi
64 }