]> git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/mac/macbuild-framework
Add Wonderful World of wxWidgets 3.0.
[wxWidgets.git] / distrib / scripts / mac / macbuild-framework
1 #!/bin/sh
2
3 # TODO: Get these from somewhere...
4 MAJOR_VERSION=2
5 MINOR_VERSION=9
6 REVISION=0
7 BRANCH="$MAJOR_VERSION.$MINOR_VERSION"
8 RELEASE="$BRANCH.$REVISION"
9
10 if [ "$WXROOT" = "" ]; then
11 scriptDir="$(cd $(dirname $0);pwd)"
12 WXROOT=$scriptDir/../../..
13 fi
14
15 export INSTALLDIR=/Library/Frameworks/wx.Framework/Versions/$BRANCH
16 rm -rf $INSTALLDIR
17
18 mkdir -p builds
19 cd builds
20 $scriptDir/macbuild universal unicode wxpython
21
22 cd $INSTALLDIR
23
24 ln -s bin Resources
25 ln -s lib/libwx_macud-$RELEASE.dylib ./wx
26 ln -s include Headers
27 cd include
28
29 ln -s wx-$BRANCH/wx wx
30 touch wx.h
31
32 echo "#ifndef __WX_FRAMEWORK_HEADER__" 1>> wx.h
33 echo "#define __WX_FRAMEWORK_HEADER__" 1>> wx.h
34 echo "" 1>> wx.h
35 echo "" 1>> wx.h
36
37 for header in `ls wx/*.h`
38 do
39 echo "#include <$header>" 1>> wx.h
40 done
41
42 echo "" 1>> wx.h
43 echo "" 1>> wx.h
44 echo "#endif // __WX_FRAMEWORK_HEADER__" 1>> wx.h
45
46 cd ..
47
48 # keep the gl library there since we link against it.
49 #rm lib/libwx_macud-$MAJOR_VERSION.$MINOR_VERSION.*
50
51 #mkdir Resources
52 #cp bin/wx-config Resources/wx-config
53 #cp bin/wxrc Resources/wxrc
54 #rm -rf bin
55 #rm -rf lib/wx/config
56 #mv share Resources/share
57
58 cd $INSTALLDIR/..
59 ln -s $BRANCH Current