]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/includes/configure_build.inc
First attempt at adding the files in the build/os2 and build/mgl dirs.
[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
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
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 \
25 --enable-display \
26 --enable-geometry \
27 --enable-debug_flag \
28 --enable-optimise \
29 --disable-debugreport "
30
31
32do_build(){
33 OPTS=""
34 if [ "$WXPYTHON" == "1" ]; then
35 OPTS="$WXPYTHON_OPTS"
36 fi
37
38 if [ "$DEBUG" == "1" ]; then
39 OPTS="$OPTS $DEBUG_OPTS "
40 fi
41
42 if [ "$UNICODE" == "1" ]; then
43 OPTS="$OPTS $UNICODE_OPTS "
44 fi
45
46
47
48 if [ "$STATIC" == "1" ]; then
49 OPTS="$OPTS --enable-static"
50 fi
51
52 OPTS="$OPTS $OTHER_OPTS"
53
54 $WXROOT/configure --prefix=$BUILDPREFIX $OPTS
55 make
56
57 # build the libs wxPython needs
58 if [ "$WXPYTHON" == "1" ]; then
59 make -C contrib/src/animate
60 make -C contrib/src/gizmos
61 make -C contrib/src/stc
62 fi
63}