]> git.saurik.com Git - wxWidgets.git/commitdiff
Use PLATFORM checks in bakefiles instead of TOOLKIT checks.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Jun 2012 18:44:10 +0000 (18:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Jun 2012 18:44:10 +0000 (18:44 +0000)
No real changes as the output is currently the same for all supported
PLATFORM/TOOLKIT combinations anyhow but prefer checking for PLATFORM to
prepare for the support of GTK toolkit under MSW platform.

Closes #14379.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/build_cfg.bkl
build/bakefiles/common.bkl
build/bakefiles/wx.bkl

index f606fb54e8d3f1237a9d9344aace5aca796b7289..f158dbcb1943a29f6c73c806b0b5a76265b05293 100644 (file)
@@ -8,8 +8,7 @@
     the library.
     -->
 
-    <if cond="FORMAT not in ['autoconf','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj'] and
-              TOOLKIT in ['PM','MSW','MOTIF']">
+    <if cond="FORMAT not in ['autoconf','msvc6prj','msevc4prj','msvs2003prj','msvs2005prj','msvs2008prj']">
 
         <set var="BUILD_CFG_FILE" make_var="1">
             $(SETUPHDIR)$(DIRSEP)build.cfg
index 2ada7a726ed7a1d4aa0148ef2ad07d1968fc8de9..756148cbe9bc23d71afc3745dd8d4d73b50f1a14 100644 (file)
@@ -424,7 +424,7 @@ $(TAB)copy "$(DOLLAR)(InputPath)" $(SETUPHDIR)\wx\setup.h
                     univ/setup.h
                 </msvc-headers-setup-h>
                 <set var="_custom_build_include_wx_msw_setup_h">
-                    <if cond="WXUNIV=='0'">
+                    <if cond="WXUNIV=='0' and TOOLKIT=='MSW'">
                         $(msvc_copy_setup_h_script % 'msw\setup.h')
                     </if>
                 </set>
@@ -614,7 +614,7 @@ $(TAB)$(VC_COMPILER) /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\r
         <define>WXBUILDING</define>
 
         <if cond="WX_DISABLE_PRECOMP_HEADERS=='0'">
-            <if cond="FORMAT!='autoconf' and TOOLKIT in ['MSW','PM','WINCE']">
+            <if cond="FORMAT!='autoconf'">
                 <sources>$(WXTOPDIR)src/common/dummy.cpp</sources>
                 <precomp-headers-gen>
                     $(WXTOPDIR)src/common/dummy.cpp
index 062df3eb45a096dda2214d61a8b80c514eb9d3a7..b806cd704ecd3e972d3d67edaa19e85720aeb35f 100644 (file)
@@ -40,7 +40,7 @@
     <subproject id="samples">
         <installable>no</installable>
         <dir cond="FORMAT=='autoconf'">samples</dir>
-        <dir cond="FORMAT!='autoconf' and TOOLKIT in ['PM','MSW','MOTIF']">../../samples</dir>
+        <dir cond="FORMAT!='autoconf'">../../samples</dir>
     </subproject>
 
     <if cond="FORMAT=='autoconf'">
 
         <set var="SETUP_H_SUBDIR">
             <if cond="WXUNIV=='1'">univ</if>
-            <if cond="WXUNIV=='0' and TOOLKIT!='PM'">$(TOOLKIT_LOWERCASE)</if>
-            <if cond="WXUNIV=='0' and TOOLKIT=='PM'">os2</if>
+            <if cond="WXUNIV=='0' and PLATFORM_OS2!='1'">$(TOOLKIT_LOWERCASE)</if>
+            <if cond="WXUNIV=='0' and PLATFORM_OS2=='1'">os2</if>
         </set>
 
         <copy-file-to-file-if-not-exist id="master_setup.h">
 
 
     <!-- create rcdefs.h on Windows: -->
-    <if cond="FORMAT in ['borland','mingw','msvc','watcom'] and TOOLKIT == 'MSW'">
+    <if cond="FORMAT in ['borland','mingw','msvc','watcom']">
 
         <mkdir id="libdir_setup_wx_msw">
             <depends>libdir_setup_wx</depends>