<include file="plugins_deps.bkl"/>
- <!-- ================================================================== -->
- <!-- wxWidgets version numbers: -->
- <!-- ================================================================== -->
-
- <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set>
- <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set>
- <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set>
- <set var="WX_RELEASE" make_var="1">
- $(WXVER_MAJOR).$(WXVER_MINOR)
- </set>
- <set var="WX_RELEASE_NODOT" make_var="1">
- $(WXVER_MAJOR)$(WXVER_MINOR)
- </set>
- <set var="WX_VERSION" make_var="1">
- $(WX_RELEASE).$(WXVER_RELEASE)
- </set>
- <set var="WX_VERSION_NODOT" make_var="1">
- $(WX_RELEASE_NODOT)$(WXVER_RELEASE)
- </set>
-
- <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set>
- <set var="WXSOVERSION">
- <if cond="WX_STABLE_BRANCH=='1'">0.0.0</if>
- <if cond="WX_STABLE_BRANCH=='0'">$(WXVER_RELEASE).0.0</if>
- </set>
- <set var="WXMACVERSION">$(WX_VERSION)</set>
- <set var="WXWIN32DLLVERSION">
- <if cond="WX_STABLE_BRANCH=='1'">$(WX_RELEASE_NODOT)</if>
- <if cond="WX_STABLE_BRANCH=='0'">$(WX_VERSION_NODOT)</if>
- </set>
+ <!-- wxWidgets version numbers logic: -->
+ <include file="version.bkl"/>
<!-- ================================================================== -->
</if>
<set var="LIBTYPE_SUFFIX" make_var="1">
- <if cond="FORMAT!='autoconf' and SHARED=='0'">lib</if>
- <if cond="FORMAT!='autoconf' and SHARED=='1'">dll</if>
+ <if cond="FORMAT!='autoconf' and SHARED=='0' and PLATFORM_WIN32=='1'">lib</if>
+ <if cond="FORMAT!='autoconf' and SHARED=='1' and PLATFORM_WIN32=='1'">dll</if>
+ <if cond="FORMAT=='watcom' and SHARED=='0' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_lib</if>
+ <if cond="FORMAT=='watcom' and SHARED=='1' and PLATFORM_WIN32=='0'">$(TOOLKIT_LOWERCASE)_dll</if>
</set>
<set var="LIBDIRNAME" make_var="1">
<if cond="DEBUG_INFO=='0'">off</if>
</set>
<set var="DEBUGRUNTIME">
- <if cond="DEBUG_RUNTIME_LIBS=='default'">$(DEBUGINFO)</if>
+ <if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='debug'">on</if>
+ <if cond="DEBUG_RUNTIME_LIBS=='default' and BUILD=='release'">off</if>
<if cond="DEBUG_RUNTIME_LIBS=='0'">off</if>
<if cond="DEBUG_RUNTIME_LIBS=='1'">on</if>
</set>
</set>
<set var="RTTI_DEFINE">
- <if cond="USE_RTTI=='0'">wxNO_RTTI</if>
+ <if cond="USE_RTTI=='0'">wxNO_RTTI</if>
</set>
<set var="EXCEPTIONS_DEFINE">
- <if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if>
+ <if cond="USE_EXCEPTIONS=='0'">wxNO_EXCEPTIONS</if>
</set>
<set var="THREAD_DEFINE">
- <if cond="USE_THREADS=='0'">wxNO_THREADS</if>
+ <if cond="USE_THREADS=='0'">wxNO_THREADS</if>
</set>
<set var="DEBUG_DEFINE">
</if>
<define>$(NO_VC_CRTDBG)</define>
<define>$(WIN32_WINNT)</define>
+ <if cond="FORMAT=='msevc4prj'">
+ <!-- hack to make eVC4 default project still compatible with eVC3 environment -->
+ <set var="_ldlibs">$(_ldlibs.replace('ccrtrtti.lib', ''))</set>
+ </if>
</template>
<template id="anylib">
<define-tag name="msvc-headers" rules="dll,lib">
<if cond="IS_MSVC_PRJ">
- <msvc-project-files>
- $(addPrefixToList('include\', wxwin.headersOnly(value)))
- </msvc-project-files>
+ <!-- FIXME: remove this once we require >=bkl-0.1.9 -->
+ <if cond="BAKEFILE_VERSION in ['0.1.7', '0.1.8']">
+ <msvc-project-files>
+ $(addPrefixToList('include\', wxwin.headersOnly(value)))
+ </msvc-project-files>
+ </if>
+ <if cond="BAKEFILE_VERSION not in ['0.1.7', '0.1.8']">
+ <msvc-project-files>
+ $(addPrefixToList('include\\', wxwin.headersOnly(value)))
+ </msvc-project-files>
+ </if>
</if>
</define-tag>
<ldlibs>$(EXTRALIBS_FOR_BASE)</ldlibs>
+ <!-- system libraries on os2: -->
+ <if cond="FORMAT!='autoconf' and PLATFORM_OS2=='1'">
+ <if cond="FORMAT=='watcom'">
+ <sys-lib>upm32</sys-lib>
+ </if>
+ </if>
+
<!-- system libraries on windows: -->
- <if cond="FORMAT!='autoconf'">
+ <if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1'">
<sys-lib>$(UNICOWS_LIB)</sys-lib>
<if cond="FORMAT=='borland'">
<sys-lib>ole2w32</sys-lib>
<dllname>$(WXDLLNAME)</dllname>
<version>$(WX_VERSION)</version>
<so_version>$(WXSOVERSION)</so_version>
- <mac_version>$(WXMACVERSION)</mac_version>
+
+ <!-- FIXME: until libtool scheme is implemented in bakefile -->
+ <ldflags cond="FORMAT=='autoconf'">$(WXMACVERSION_CMD)</ldflags>
<!-- version info resources: -->
<if cond="FORMAT not in ['rpmspec','wx24dsp']"> <!-- FIXME: fix for bkl-0.1.7 only, remove the cond later -->
$(TOP_SRCDIR)include
</res-include>
</if>
- <win32-res>src/msw/version.rc</win32-res>
+ <win32-res>$(WXTOPDIR)src/msw/version.rc</win32-res>
</template>
<template id="wx_3rdparty_dependencies_gui" cond="USE_GUI=='1'">