From 39796bac005655d40063b89046dabec7933f4d68 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 17 Sep 2007 15:41:48 +0000 Subject: [PATCH] Adding prototype script for creating a wx Mac framework from a configure-based wxPython build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- distrib/scripts/mac/macbuild-framework | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 distrib/scripts/mac/macbuild-framework diff --git a/distrib/scripts/mac/macbuild-framework b/distrib/scripts/mac/macbuild-framework new file mode 100755 index 0000000000..cf142f91d4 --- /dev/null +++ b/distrib/scripts/mac/macbuild-framework @@ -0,0 +1,59 @@ +#!/bin/sh + +# TODO: Get these from somewhere... +MAJOR_VERSION=2 +MINOR_VERSION=9 +REVISION=0 +BRANCH="$MAJOR_VERSION.$MINOR_VERSION" +RELEASE="$BRANCH.$REVISION" + +if [ "$WXROOT" = "" ]; then + scriptDir="$(cd $(dirname $0);pwd)" + WXROOT=$scriptDir/../../.. +fi + +export INSTALLDIR=/Library/Frameworks/wx.Framework/Versions/$BRANCH +rm -rf $INSTALLDIR + +mkdir -p builds +cd builds +$scriptDir/macbuild universal unicode wxpython + +cd $INSTALLDIR + +ln -s bin Resources +ln -s lib/libwx_macud-$RELEASE.dylib ./wx +ln -s include Headers +cd include + +ln -s wx-$BRANCH/wx wx +touch wx.h + +echo "#ifndef __WX_FRAMEWORK_HEADER__" 1>> wx.h +echo "#define __WX_FRAMEWORK_HEADER__" 1>> wx.h +echo "" 1>> wx.h +echo "" 1>> wx.h + +for header in `ls wx/*.h` +do + echo "#include <$header>" 1>> wx.h +done + +echo "" 1>> wx.h +echo "" 1>> wx.h +echo "#endif // __WX_FRAMEWORK_HEADER__" 1>> wx.h + +cd .. + +# keep the gl library there since we link against it. +#rm lib/libwx_macud-$MAJOR_VERSION.$MINOR_VERSION.* + +#mkdir Resources +#cp bin/wx-config Resources/wx-config +#cp bin/wxrc Resources/wxrc +#rm -rf bin +#rm -rf lib/wx/config +#mv share Resources/share + +cd $INSTALLDIR/.. +ln -s $BRANCH Current \ No newline at end of file -- 2.45.2