]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/mac/macbuild
Merge build script updates from 2.8 branch.
[wxWidgets.git] / distrib / scripts / mac / macbuild
CommitLineData
3d23c9b7
KO
1#!/bin/sh
2
9d1eeb0b 3# you need to change this if you run from outside this dir.
3d23c9b7 4if [ "$WXROOT" = "" ]; then
cc669f24
KO
5 scriptDir="$(cd $(dirname $0);pwd)"
6 WXROOT=$scriptDir/../../..
3d23c9b7
KO
7fi
8
9. $WXROOT/distrib/scripts/includes/configure_build.inc
10
11. $WXROOT/distrib/scripts/mac/mac_options.inc
12
13# most of this script is shared with other Mac-based and other
14# configure-based build scripts, which is why this looks a little empty.
15
16if [ "$UNIVERSAL" = "1" ]; then
cc669f24 17 OTHER_OPTS="$OTHER_OPTS --enable-universal_binary --with-libjpeg=builtin --with-libpng=builtin"
3d23c9b7
KO
18fi
19
cc669f24
KO
20mkdir -p builds
21cd builds
3d23c9b7
KO
22do_build
23
24make prefix=$INSTALLDIR install
25
cc669f24
KO
26if [ "$WXPYTHON" == "1" ]; then
27 make -C contrib/src/gizmos prefix=$INSTALLDIR install
28 make -C contrib/src/stc prefix=$INSTALLDIR install
29fi
30
31cd $OLDDIR