]> git.saurik.com Git - wxWidgets.git/commitdiff
extra flags for Mingw if needed
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 4 Jul 2003 16:58:02 +0000 (16:58 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 4 Jul 2003 16:58:02 +0000 (16:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/common.bkl
build/bakefiles/config.bkl

index 860205146cb3d454e1d84622efe3dcbf01043f7e..d0d8a7bf3671409836ca83d3fd4414f609af2a8e 100644 (file)
             <define>WINVER=0x0400</define>
             <define>_WIN32_IE=0x0400</define>
             <define>STRICT</define>
+            <cppflags>$(EXTRACFLAGS)</cppflags>
         </if>
+
     </template>
 
     <template id="3rdparty_lib" template="anylib">
index 811fb1e3efabf66baf843fc96a5afa52c45956e1..77522ba1f47322280536d2c36ca5245d777311e4 100644 (file)
@@ -99,6 +99,7 @@
         <set var="TOOLKIT_VERSION"/>
         <set var="SAMPLES_RPATH_FLAG"/>
         <set var="EXTRALIBS"/>
+        <set var="EXTRACFLAGS"/>
 
         <set var="SRCDIR">
             <if cond="BUILDING_LIB=='1'">..</if>
         </set>
         <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 that cames 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>
+    
 </makefile>