]> git.saurik.com Git - wxWidgets.git/blame - distrib/scripts/mac/macbuild-framework
handle error in GetDataSize()
[wxWidgets.git] / distrib / scripts / mac / macbuild-framework
CommitLineData
39796bac
KO
1#!/bin/sh
2
3# TODO: Get these from somewhere...
4MAJOR_VERSION=2
5MINOR_VERSION=9
6REVISION=0
7BRANCH="$MAJOR_VERSION.$MINOR_VERSION"
8RELEASE="$BRANCH.$REVISION"
9
10if [ "$WXROOT" = "" ]; then
11 scriptDir="$(cd $(dirname $0);pwd)"
12 WXROOT=$scriptDir/../../..
13fi
14
15export INSTALLDIR=/Library/Frameworks/wx.Framework/Versions/$BRANCH
16rm -rf $INSTALLDIR
17
18mkdir -p builds
19cd builds
20$scriptDir/macbuild universal unicode wxpython
21
22cd $INSTALLDIR
23
24ln -s bin Resources
25ln -s lib/libwx_macud-$RELEASE.dylib ./wx
26ln -s include Headers
27cd include
28
29ln -s wx-$BRANCH/wx wx
30touch wx.h
31
32echo "#ifndef __WX_FRAMEWORK_HEADER__" 1>> wx.h
33echo "#define __WX_FRAMEWORK_HEADER__" 1>> wx.h
34echo "" 1>> wx.h
35echo "" 1>> wx.h
36
37for header in `ls wx/*.h`
38do
39 echo "#include <$header>" 1>> wx.h
40done
41
42echo "" 1>> wx.h
43echo "" 1>> wx.h
44echo "#endif // __WX_FRAMEWORK_HEADER__" 1>> wx.h
45
46cd ..
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
58cd $INSTALLDIR/..
59ln -s $BRANCH Current