<?xml version="1.0" ?>
-<!-- $Id$ -->
<!--
Presents for building wxWidgets applications using Autoconf or GNU toosets.
of the WX_* options in wx.bkl -->
<unset var="WX_SHARED"/>
<unset var="WX_UNICODE"/>
- <unset var="WX_DEBUG"/>
<unset var="WX_PORT"/>
<unset var="WX_VERSION"/>
</option>
<set var="WX_PORT_DEFAULT" overwrite="0">
- $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 1)
+ $(DOLLAR)(shell $(WX_CONFIG) --query-toolkit)
</set>
<option name="WX_PORT">
- <values>gtk1,gtk2,msw,x11,motif,mgl,mac,dfb</values>
+ <values>gtk1,gtk2,msw,x11,motif,osx_cocoa,osx_carbon,dfb</values>
<default-value force="1">$(WX_PORT_DEFAULT)</default-value>
<description>
Port of the wx library to build against
</option>
<set var="WX_SHARED_DEFAULT" overwrite="0">
- $(DOLLAR)(shell if test -z `$(WX_CONFIG) --selected-config | cut -d '-' -f 5`; then echo 1; else echo 0; fi)
+ $(DOLLAR)(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
</set>
<option name="WX_SHARED">
<values>0,1</values>
</option>
<set var="WX_UNICODE_DEFAULT" overwrite="0">
- $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 2 | sed 's/unicode/1/;s/ansi/0/')
+ $(DOLLAR)(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
</set>
<option name="WX_UNICODE">
<values>0,1</values>
</description>
</option>
- <set var="WX_DEBUG_DEFAULT" overwrite="0">
- $(DOLLAR)(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 3 | sed 's/debug/1/;s/release/0/')
- </set>
- <option name="WX_DEBUG">
- <values>0,1</values>
- <values-description>Release,Debug</values-description>
- <default-value force="1">$(WX_DEBUG_DEFAULT)</default-value>
- <description>
- Use debug build of wxWidgets (define __WXDEBUG__)?
- </description>
- </option>
-
<set var="WX_VERSION_DEFAULT" overwrite="0">
- $(DOLLAR)(shell $(WX_CONFIG) --selected-config | sed -e 's/.*-\([0-9]*\)\.\([0-9]*\)$$/\1\2/')
+ $(DOLLAR)(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
</set>
<option name="WX_VERSION">
<default-value>$(WX_VERSION_DEFAULT)</default-value>
a win32 makefile: i.e. a makefile where you can select the wanted
wxWidgets build using the WX_* options.
- The difference with win32 makefiles is that WX_DEBUG, WX_UNICODE and
+ The difference with win32 makefiles is that WX_PORT, WX_UNICODE and
WX_SHARED options have a smart default value which is created using
the installed wx-config or the wx-config given using WX_CONFIG option
-->
- <set var="WX_CONFIG_DEBUG_FLAG">
- <if cond="WX_DEBUG=='0'">--debug=no</if>
- <if cond="WX_DEBUG=='1'">--debug=yes</if>
- </set>
<set var="WX_CONFIG_UNICODE_FLAG">
<if cond="WX_UNICODE=='0'">--unicode=no</if>
<if cond="WX_UNICODE=='1'">--unicode=yes</if>
</set>
<set var="WX_CONFIG_FLAGS" make_var="1">
- $(WX_CONFIG_DEBUG_FLAG) $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG)
+ $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG)
$(WX_CONFIG_PORT_FLAG) $(WX_CONFIG_VERSION_FLAG)
</set>
+ <set var="DEFAULT_CXX">`$(DOLLAR)(WX_CONFIG) --cxx`</set>
<set var="WX_CFLAGS">`$(DOLLAR)(WX_CONFIG) --cflags $(WX_CONFIG_FLAGS)`</set>
<set var="WX_CXXFLAGS">`$(DOLLAR)(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)`</set>
<set var="WX_CPPFLAGS">`$(DOLLAR)(WX_CONFIG) --cppflags $(WX_CONFIG_FLAGS)`</set>