]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/includes/configure_build.inc
don't use WPARAM in the header (build fix after r59336)
[wxWidgets.git] / distrib / scripts / includes / configure_build.inc
CommitLineData
3d23c9b7
KO
1
2if [ "$INSTALLDIR" = "" ]; then
3 INSTALLDIR=$BUILDDIR/install
4 mkdir -p $INSTALLDIR
5fi
6
9d1eeb0b 7# wxPython needs this option so that it can build extensions that store the
3d23c9b7
KO
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
9d1eeb0b 10# we do this by setting the "official" prefix at build time, and later
3d23c9b7
KO
11if [ "$BUILDPREFIX" = "" ]; then
12 BUILDPREFIX=$INSTALLDIR
13fi
14
15
16DEBUG_OPTS="--enable-debug"
17
18UNICODE_OPTS="--enable-unicode"
19
20ANSI_OPTS="--enable-ansi"
21
22WXPYTHON_OPTS="--enable-monolithic \
23 --with-opengl \
24 --enable-sound \
eb499cb0 25 --enable-mediactrl \
3d23c9b7
KO
26 --enable-display \
27 --enable-geometry \
28 --enable-debug_flag \
29 --enable-optimise \
30 --disable-debugreport "
9d1eeb0b
VZ
31
32
3d23c9b7
KO
33do_build(){
34 OPTS=""
35 if [ "$WXPYTHON" == "1" ]; then
36 OPTS="$WXPYTHON_OPTS"
37 fi
9d1eeb0b 38
3d23c9b7
KO
39 if [ "$DEBUG" == "1" ]; then
40 OPTS="$OPTS $DEBUG_OPTS "
41 fi
9d1eeb0b 42
3d23c9b7
KO
43 if [ "$UNICODE" == "1" ]; then
44 OPTS="$OPTS $UNICODE_OPTS "
45 fi
9d1eeb0b
VZ
46
47
48
3d23c9b7
KO
49 if [ "$STATIC" == "1" ]; then
50 OPTS="$OPTS --enable-static"
51 fi
9d1eeb0b 52
3d23c9b7 53 OPTS="$OPTS $OTHER_OPTS"
9d1eeb0b 54
3d23c9b7
KO
55 $WXROOT/configure --prefix=$BUILDPREFIX $OPTS
56 make
9d1eeb0b 57}