1 # Definitions for MacOSX compilation of wxWidgets.
2 # (c) 2011 Angel Vidal ( kry@amule.org )
3 # Public domain. Use at your own risk.
7 pn
"-- Begin wxWidgets def section --"
9 if [ "$WXVERSION" == "" ]; then
10 pc
$BLUE "\tAutomatically setting wxWidgets version to 2.8.x - set WXVERSION to your desired version (accepted values are 2.8 and svn right now) if you want to use a different one."
16 WXSVNROOT
="branches/WX_2_8_BRANCH"
17 WXFOLDER
="wxWidgets-2.8"
26 pc
$RED "Valid WXVERSION values are 2.8 and svn."
31 pc
$GREEN "\tUsing wxWidgets $WXVERSION"
33 if [ "$WXPORT" = "" ]; then
34 pc
$BLUE "\tAutomatically selecting the $AUTOPORT port for wxWidgets $WXVERSION - set WXPORT to your desired port (accepted values are carbon and cocoa right now) if you want to use a different one."
40 if [ "$WXVERSION" == "2.8" ]; then
41 pc
$RED "The $WXWIDGETS port on wxWidgets $WXVERSION is unusable for this application. Please select a different port, or a different wxWidgets version."
44 PORTFLAGS
="--with-cocoa"
47 PORTFLAGS
="--with-carbon"
50 pc
$RED "Valid WXPORT values are cocoa and carbon."
55 pc
$GREEN "\tUsing wxWidgets $WXPORT port."
58 if [ "$SLIMWX" == "" ]; then
59 pc
$BLUE "\tAutomatically selecting full wx compilation. Set SLIMWX to YES to compile only parts used by the application, which can result in a smaller binary (but can fail if the script hasn't been updated after adding new class usage)"
65 pc
$GREEN "\tUsing minimal wxWidgets compilation."
66 SLIM_WX_FLAGS
="--without-odbc --without-expat --without-libtiff --without-libjpg \
67 --without-libmspack --without-sdl --without-gnomeprint --without-gnomevfs --without-opengl \
68 --without-dmalloc --without-themes --disable-sdltest --disable-gtktest \
69 --disable-pnm --disable-iff --disable-tga --disable-pcx \
70 --disable-dragimage --disable-metafiles --disable-joystick \
71 --disable-splines --disable-miniframe --disable-wizarddlg \
72 --disable-tipdlg --disable-numberdlg --disable-finddlg --disable-choicedlg \
73 --disable-popupwin --disable-tipwindow --disable-toolbook \
74 --disable-treebook --disable-tabdialog--disable-searchctrl \
75 --disable-odcombobox --disable-listbook --disable-hyperlink \
76 --disable-dataviewctrl --disable-grid --enable-fontpicker \
77 --disable-display --disable-datepick --disable-collpane --disable-choicebook \
78 --disable-caret --disable-calendar --disable-bmpcombobox --disable-animatectrl \
79 --disable-metafile --disable-postscript --disable-graphics_ctx --disable-richtext \
80 --disable-webkit --disable-mdidoc --disable-mdi --disable-aui \
81 --disable-htmlhelp --disable-html --disable-mshtmlhelp --disable-help --disable-variant \
82 --disable-printfposparam --disable-gstreamer8 --disable-mediactrl \
83 --disable-tarstream --disable-mslu --disable-ole \
84 --disable-dynamicloader --disable-dynlib --disable-dialupman --disable-apple_ieee \
85 --disable-palette --disable-compat26 --disable-docview --disable-aboutdlg"
88 pc
$GREEN "\tUsing full wxWidgets compilation."
92 pc
$RED "Valid SLIMWX values are YES and NO."
97 EXTRA_WXFLAGS
="$PORTFLAGS $SLIMWXFLAGS --with-libpng --with-regex --enable-gif --enable-accesibility --enable-progressdlg \
98 --enable-textdlg --enable-busyinfo --enable-fontdlg --enable-filedlg --enable-coldlg \
99 --enable-treectrl --enable-slider --enable-listbox --enable-gauge --enable-filepicker \
100 --enable-dirpicker --enable-colourpicker --enable-checklst --enable-printarch \
101 --enable-protocol --enable-protocol-http --enable-protocol-ftp --enable-protocol-file \
102 --enable-sound --enable-unicode --enable-stopwatch --enable-snglinst --enable-ipc \
103 --enable-sockets --enable-protocols --enable-ftp --enable-config --with-zlib --enable-textfile \
104 --enable-textbuf --enable-url --enable-datetime --enable-http --enable-fileproto"
107 pn
"-- End wxWidgets def section --"