+ <option name="RUNTIME_LIBS">
+ <values>dynamic,static</values>
+ <default-value>dynamic</default-value>
+ <description>
+Version of C runtime library to use. You can change this to
+static if SHARED=0, but it is highly recommended to not do
+it if SHARED=1 unless you know what you are doing.
+ </description>
+ </option>
+
+ <set var="WXTOPDIR"/> <!-- to be overridden on bakefile cmd line -->
+
+ <set var="TOOLKIT" overwrite="0">
+ <if cond="FORMAT=='msevc4prj'">WINCE</if>
+ <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE</if>
+ <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003'">WINCE</if>
+ <if cond="FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='win32'">MSW</if>
+ <if cond="FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='win32'">MSW</if>
+ <if cond="FORMAT not in ['msevc4prj','msvs2005prj','msvs2008prj'] and PLATFORM_WIN32=='1'">MSW</if>
+ <if cond="PLATFORM_MSDOS=='1'">MGL</if>
+ <if cond="PLATFORM_OS2=='1'">PM</if>
+ </set>
+ <set var="TOOLKIT_LOWERCASE">$(TOOLKIT.lower())</set>
+ <set var="TOOLKIT_VERSION"/>
+ <set var="HOST_SUFFIX"/>
+ <set var="EXTRACFLAGS"/>
+ <set var="EXTRALIBS"/>
+ <set var="EXTRALIBS_XML"/>
+ <set var="EXTRALIBS_HTML"/>
+ <set var="EXTRALIBS_MEDIA"/>
+ <set var="EXTRALIBS_GUI"/>
+ <set var="EXTRALIBS_OPENGL">
+ <if cond="COMPILER=='wat' and TOOLKIT=='MSW'">opengl32.lib glu32.lib</if>
+ <if cond="COMPILER in ['vc','evc']">opengl32.lib glu32.lib</if>
+ <if cond="COMPILER=='gcc'">-lopengl32 -lglu32</if>
+ </set>
+ <set var="EXTRALIBS_SDL"/>
+ <set var="EXTRALIBS_GNOMEPRINT"/>
+
+ <set var="WITH_PLUGIN_SDL">0</set>
+
+ <if cond="BUILDING_LIB=='1'">
+ <set-srcdir>../..</set-srcdir>
+ </if>
+ <set var="TOP_SRCDIR">$(SRCDIR)/$(WXTOPDIR)</set>
+ </if>
+
+ <if cond="FORMAT=='mingw'">
+ <option name="GCC_VERSION">
+ <values>3,2.95</values>
+ <default-value>3</default-value>
+ <description>
+Set the version of your Mingw installation here.
+ "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
+ "2.95" ... for Mingw 1.1 or any of the older versions
+ </description>
+ </option>
+ <set var="GCCFLAGS">
+ <if cond="GCC_VERSION=='2.95'">-fvtable-thunks</if>
+ </set>
+ <set var="EXTRACFLAGS">$(GCCFLAGS) -DHAVE_W32API_H</set>
+ </if>
+
+
+ <!-- ================================================================== -->
+ <!-- Project files - hardcode some defaults -->
+ <!-- ================================================================== -->
+
+ <if cond="FORMAT_SUPPORTS_CONDITIONS=='0'">
+ <set var="RUNTIME_LIBS">dynamic</set>
+ <set var="OFFICIAL_BUILD">0</set>
+ <set var="USE_AUI">1</set>
+ <set var="USE_RIBBON">1</set>
+ <set var="USE_PROPGRID">1</set>
+ <set var="USE_RICHTEXT">1</set>
+ <set var="USE_STC">1</set>
+ <set var="USE_HTML">1</set>
+ <set var="USE_MEDIA">1</set>
+ <set var="USE_XRC">1</set>
+ <set var="USE_OPENGL">1</set>
+ <set var="USE_QA">1</set>
+ <set var="MONOLITHIC">0</set>
+ <set var="USE_GUI">1</set>
+ <set var="USE_EXCEPTIONS">1</set>
+ <set var="USE_RTTI">1</set>
+ <set var="USE_THREADS">1</set>
+ <set var="USE_CAIRO">0</set>
+ <set var="DEBUG_INFO">$(DEBUG_INFO_DEFAULT)</set>
+ <set var="DEBUG_FLAG">default</set>
+ <set var="MSLU">0</set>
+ </if>
+
+
+ <!-- DigitalMars make is braindead, it doesn't have conditional
+ processing: -->
+ <if cond="FORMAT=='dmars'">
+ <set var="RUNTIME_LIBS">static</set>
+ <set var="BUILD">debug</set>
+ <set var="SHARED">0</set>
+ <set var="WXUNIV">0</set>
+ <set var="UNICODE">1</set>
+ <!-- Free version does not distribute OpenGL,
+ in commercial distribution better use dmars_smake format -->
+ <set var="USE_OPENGL">0</set>
+ </if>
+
+ <!-- No need for wxUniv on embedded devices (yet): -->
+ <if cond="FORMAT=='msevc4prj' or (FORMAT=='msvs2005prj' and MSVS_PLATFORMS=='pocketpc2003') or (FORMAT=='msvs2008prj' and MSVS_PLATFORMS=='pocketpc2003')">
+ <set var="WXUNIV">0</set>
+ <!-- Uploading debug reports from PDAs seems impractical -->
+ <set var="USE_QA">0</set>
+ <set var="MONOLITHIC">1</set> <!-- sic! -->
+ <set var="USE_OPENGL">0</set> <!-- need OpenGL ES support first -->
+ <!-- RTTI and exceptions need separate cccrtti.lib with eVC4 -->
+ <if cond="FORMAT=='msevc4prj'">
+ <set var="USE_RTTI">0</set>
+ <set var="USE_EXCEPTIONS">0</set>
+ </if>
+ </if>
+
+ <!-- Need for wxUniv within wxMGL: -->
+ <if cond="FORMAT!='autoconf' and TOOLKIT=='MGL'">
+ <set var="WXUNIV">1</set>
+ <set var="USE_THREADS">0</set>
+ <set var="RUNTIME_LIBS">static</set>