]>
git.saurik.com Git - wxWidgets.git/blob - distrib/scripts/mac/macbuild-lipo
3 # you need to change this if you run from outside this dir.
4 if [ "$WXROOT" = "" ]; then
8 .
$WXROOT/distrib
/scripts
/includes
/configure_build.inc
10 .
$WXROOT/distrib
/scripts
/mac
/mac_options.inc
14 export CXX
="g++-3.3 -arch ppc"
15 export CC
="gcc-3.3 -arch ppc"
21 # Do another build, but with i386 this time
24 export CXX
="g++-4.0 -arch i386"
25 export CC
="gcc-4.0 -arch i386"
31 # Copy over everything, then remove files we need to replace with lipo'd versions
34 cp -R bld
-i386/.pch bld
/.pch
37 # lipo the files, but make sure not to run it on symbolic links
38 for item
in `cd bld-i386/lib; ls *.dylib`
40 if [ -f bld
-i386/lib
/$item -a ! -L bld
-i386/lib
/$item ]; then
41 lipo
-create bld
-i386/lib
/$item bld
-ppc/lib
/$item -output bld
/lib
/$item
43 cp -R bld
-i386/lib
/$item bld
/lib
47 # make install hacks - the copy operations mess up the timestamps and thus
48 # cause make to erroneously think that the libraries need rebuilt
49 touch bld
/.pch
/wxprec_monodll
/wx
/*.gch
50 touch bld
/.pch
/wxprec_gldll
/wx
/*.gch
54 # one more hack - inplace wx-config has a hardcoded path in it - we need to
55 # change that path from bld-i386 to just bld in case someone wants to build things
56 # in tree. (wxPython does this, for example)
57 python
-c "import os; fname = os.path.abspath('bld/wx-config'); data = open(fname).read(); data = data.replace('bld-i386', 'bld'); open(fname, 'w').write(data)"
60 make prefix
=$INSTALLDIR install
62 if [ "$WXPYTHON" == "1" ]; then
63 make -C contrib
/src
/animate prefix
=$INSTALLDIR install
64 make -C contrib
/src
/gizmos prefix
=$INSTALLDIR install
65 make -C contrib
/src
/stc prefix
=$INSTALLDIR install