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 -->
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: -->
<__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,