]> git.saurik.com Git - wxWidgets.git/commitdiff
make test_for_selected_wxbuild target optional (patch 1696363)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2007 21:45:11 +0000 (21:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Apr 2007 21:45:11 +0000 (21:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

build/bakefiles/wxpresets/presets/wx.bkl
build/bakefiles/wxpresets/presets/wx_unix.bkl
build/bakefiles/wxpresets/presets/wx_win32.bkl

index 77b6d32a6b5efa3fe82d948ffadd8a596bf166f1..043deeb4983a704ec721276f54964a7b19e227a2 100644 (file)
         base core net xml odbc xrc html adv media gl dbgrid qa aui richtext stc
     </set>
 
+    <!-- if you define this variable to 0 before including wx presets, the
+         "test_for_selected_wxbuild" target which is added by default in win32 and GNU 
+         makefiles, won't be added.
+         This is useful when e.g. you want to have wxWidgets as an optional
+         dependency and thus you don't want to perform that check unconditionally.
+    -->
+    <set var="WX_TEST_FOR_SELECTED_WXBUILD" overwrite="0">
+        1
+    </set>
+
     <!-- this is a temporary variable until there is non general    -->
     <!-- function in bakefiles for returning native markup for      -->
     <!-- reading envrionment variables                              -->
index e6fca52769318c1e65bfb9e27a0e634a955c3959..77272f6a65f43c32b6254090c504717edd35f109 100644 (file)
@@ -185,12 +185,14 @@ Format-specific notes:
                          that simply creating the following target; if it fails the make
                          program will halt with the wx-config error message...
         -->
-        <action id="test_for_selected_wxbuild">
-            <dependency-of>all</dependency-of>
-
-            <!-- Use @ to hide to the user that we're running wx-config... -->
-            <command>@$(DOLLAR)(WX_CONFIG) $(WX_CONFIG_FLAGS)</command>
-        </action>
+        <if cond="WX_TEST_FOR_SELECTED_WXBUILD=='1'">
+            <action id="test_for_selected_wxbuild">
+                <dependency-of>all</dependency-of>
+
+                <!-- Use @ to hide to the user that we're running wx-config... -->
+                <command>@$(DOLLAR)(WX_CONFIG) $(WX_CONFIG_FLAGS)</command>
+            </action>
+        </if>
 
         <!-- we need this but the trick used in default-values above
              prevents bakefile from detecting it: -->
index 624046d8bf171d66fe11798a856dea2469f7052c..bd209cf9bc24fa0ee2c357cab7a05345cdaa507c 100644 (file)
         <__wx-syslibs/>
     </template>
 
-    <if cond="FORMAT_SUPPORTS_ACTIONS=='1'">
+    <if cond="FORMAT_SUPPORTS_ACTIONS=='1' and WX_TEST_FOR_SELECTED_WXBUILD=='1'">
 
         <!--
             VERY IMPORTANT: before starting to build all targets of the generated makefile,