<!-- In MSVC these are the different build -->
<!-- configurations you can have (in the build menu), -->
<!-- and in autoconf is enabled with enable-xxx=xx. -->
- <!-- For other compilers a seperate configuration -->
+ <!-- For other compilers a separate configuration -->
<!-- file is created (such as config.gcc on gcc) -->
<!-- which has several options a user can modify. -->
<!-- -->
<!-- is not constant, i.e. if it cannot be determined -->
<!-- by bakefile itself. -->
+ <!-- this is a temporary variable until there is non general -->
+ <!-- function in bakefiles for returning native markup for -->
+ <!-- reading envrionment variables -->
+ <set var="ENV_VAR">
+ <if cond="FORMAT=='watcom'">%</if>
+ <if cond="FORMAT!='watcom'"></if>
+ </set>
+
<!-- The directory where wxWidgets is installed: -->
+ <set var="WX_DIR_DEFAULT" overwrite="0">$(DOLLAR)($(ENV_VAR)WXWIN)</set>
<option name="WX_DIR" category="path">
- <default-value>$(DOLLAR)(WXWIN)</default-value>
+ <default-value>$(WX_DIR_DEFAULT)</default-value>
<description>
The directory where wxWidgets library is installed
</description>
<!-- This is a standard option that determines -->
<!-- whether the user wants to build this library as -->
<!-- a dll or as a static library. -->
+ <set var="WX_SHARED_DEFAULT" overwrite="0">0</set>
<option name="WX_SHARED">
<values>0,1</values>
<values-description>,DLL</values-description>
- <default-value>0</default-value>
+ <default-value>$(WX_SHARED_DEFAULT)</default-value>
<description>
Use DLL build of wx library to use?
</description>
<!-- Configuration for building the bakefile with -->
<!-- unicode strings or not (unicode or ansi). -->
+ <set var="WX_UNICODE_DEFAULT" overwrite="0">0</set>
<option name="WX_UNICODE">
<values>0,1</values>
<values-description>,Unicode</values-description>
- <default-value>0</default-value>
+ <default-value>$(WX_UNICODE_DEFAULT)</default-value>
<description>
Compile Unicode build of wxWidgets?
</description>
</option>
+ <set var="WX_DEBUG_DEFAULT" overwrite="0">1</set>
<option name="WX_DEBUG">
<values>0,1</values>
<values-description>,Debug</values-description>
- <default-value>1</default-value>
+ <default-value>$(WX_DEBUG_DEFAULT)</default-value>
<description>
Use debug build of wxWidgets (define __WXDEBUG__)?
</description>
</option>
+ <set var="WX_VERSION_DEFAULT" overwrite="0">26</set>
<option name="WX_VERSION">
- <default-value>25</default-value>
+ <default-value>$(WX_VERSION_DEFAULT)</default-value>
<description>
Version of the wx library to build against.
</description>
<!-- -->
<!-- The "base class" of all our build targets -->
<!-- This links with the appropriate native -->
- <!-- libraries required by the platform, the libaries -->
+ <!-- libraries required by the platform, the libraries -->
<!-- we want for our stuff, and the wxWindows libs. -->
<if cond="value=='base'">
<sys-lib>wxbase$(WX_VERSION)$(WXLIBPOSTFIX)</sys-lib>
</if>
- <if cond="value in ['net','xml']">
+ <if cond="value in ['net','xml', 'odbc']">
<sys-lib>wxbase$(WX_VERSION)$(WXLIBPOSTFIX)_$(value)</sys-lib>
</if>
<if cond="value not in ['base','net','xml']">
<define-tag name="__wx-libs-point" rules="exe,dll,module"/>
<tag-info name="wx-lib"
position="before:__wx-libs-point"/>
+ <tag-info name="__wx-syslibs"
+ position="after:__wx-libs-point"/>
<!-- template for static wx libraries: -->
<include>$(WX_DIR)/include</include>
</template>
-
- <!-- template for wx executables/dlls: -->
- <template id="wx" template="wx-lib">
- <lib-path>$(WX_DIR)$(WXLIBPATH)</lib-path>
-
- <!-- wx libs must come before 3rd party and sys libs, this is
- the place where the hack explained above is carried on: -->
- <__wx-libs-point/>
-
+
+ <!-- this ugly tag contains all sys-lib tags used by "wx" template,
+ in order to make sure they are not reorder when wx-lib is moved
+ after __wx-libs-point: -->
+ <define-tag name="__wx-syslibs" rules="exe,dll,module">
<!-- wx 3rd party libs, always use them: -->
<sys-lib>wxtiff$(WX3RDPARTLIBPOSTFIX)</sys-lib>
<sys-lib>wxjpeg$(WX3RDPARTLIBPOSTFIX)</sys-lib>
<if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
<sys-lib>oleacc</sys-lib>
</if>
+ </define-tag>
+
+ <!-- template for wx executables/dlls: -->
+ <template id="wx" template="wx-lib">
+ <lib-path>$(WX_DIR)$(WXLIBPATH)</lib-path>
+
+ <!-- wx libs must come before 3rd party and sys libs, this is
+ the place where the hack explained above is carried on: -->
+ <__wx-libs-point/>
+ <__wx-syslibs/>
</template>
</makefile>