build_wx.sh 710 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. svn co -r 70933 http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets
  3. cd wxWidgets
  4. case $OSTYPE in
  5. darwin*)
  6. export CC=clang CXX=clang++ CFLAGS="-stdlib=libc++" CXXFLAGS="-stdlib=libc++" CPPFLAGS="-stdlib=libc++"
  7. BACKEND="osx_cocoa"
  8. ADD_OPTS=--with-macosx-version-min=10.7 --enable-stl
  9. ;;
  10. linux*)
  11. BACKEND="gtk"
  12. ;;
  13. esac
  14. mkdir build-local
  15. cd build-local
  16. ../configure --with-$BACKEND --disable-shared --enable-unicode --disable-compat28 --disable-exceptions --disable-fswatcher --without-regex --without-expat --disable-xml --disable-ribbon --disable-propgrid --disable-stc --disable-html --disable-richtext --without-libjpeg --without-libtiff --disable-webview --disable-markup $ADD_OPTS
  17. make