]> git.saurik.com Git - wxWidgets.git/blob - build/bakefiles/version.bkl
don't put odbc lib twice in the generated makefile (part of patch 1303833)
[wxWidgets.git] / build / bakefiles / version.bkl
1 <?xml version="1.0" ?>
2 <!-- $Id$ -->
3
4 <makefile>
5
6 <!-- ================================================================== -->
7 <!-- Handling of binary compatiblity: -->
8 <!-- ================================================================== -->
9
10 <!--
11 We use libtool CURRENT:REVISION:AGE versioning scheme. Quoting libtool
12 documentation on how to handle the values:
13
14 1. Start with version information of `0:0:0' for each libtool library.
15
16 2. Update the version information only immediately before a public
17 release of your software. More frequent updates are unnecessary,
18 and only guarantee that the current interface number gets larger
19 faster.
20
21 3. If the library source code has changed at all since the last
22 update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
23
24 4. If any interfaces have been added, removed, or changed since the
25 last update, increment CURRENT, and set REVISION to 0.
26
27 5. If any interfaces have been added since the last public release,
28 then increment AGE.
29
30 6. If any interfaces have been removed since the last public release,
31 then set AGE to 0.
32 -->
33 <set var="WX_CURRENT">2</set>
34 <set var="WX_REVISION">0</set>
35 <set var="WX_AGE">2</set>
36
37
38 <!-- ================================================================== -->
39 <!-- Library version number: -->
40 <!-- ================================================================== -->
41
42 <!-- extract wx version number from wx/version.h: -->
43 <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set>
44 <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set>
45 <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set>
46
47
48
49 <!-- ================================================================== -->
50 <!-- Derived variables: -->
51 <!-- ================================================================== -->
52
53 <!-- set misc helper variables: -->
54
55 <set var="WX_RELEASE" make_var="1">
56 $(WXVER_MAJOR).$(WXVER_MINOR)
57 </set>
58 <set var="WX_RELEASE_NODOT" make_var="1">
59 $(WXVER_MAJOR)$(WXVER_MINOR)
60 </set>
61 <set var="WX_VERSION" make_var="1">
62 $(WX_RELEASE).$(WXVER_RELEASE)
63 </set>
64 <set var="WX_VERSION_NODOT" make_var="1">
65 $(WX_RELEASE_NODOT)$(WXVER_RELEASE)
66 </set>
67
68 <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set>
69
70 <!-- in unstable branch, binary compat. changes with every release, check
71 for it: -->
72 <if cond="WX_STABLE_BRANCH=='0' and int(WX_CURRENT)!=int(WXVER_RELEASE)">
73 <error>Forgot to update WX_CURRENT/WX_REVISION/WX_AGE?</error>
74 </if>
75 <set var="WXSOVERSION">
76 $(int(WX_CURRENT)-int(WX_AGE)).$(WX_AGE).$(WX_REVISION)
77 </set>
78
79 <!-- FIXME: until libtool scheme is implemented in bakefile -->
80 <set var="WXMACVERSION_CMD">
81 <if cond="PLATFORM_MACOSX=='1'">
82 -compatibility_version $(WX_AGE).0 -current_version $(WX_AGE).$(WX_REVISION)
83 </if>
84 </set>
85
86 <set var="WXWIN32DLLVERSION">
87 <if cond="WX_STABLE_BRANCH=='1'">$(WX_RELEASE_NODOT)</if>
88 <if cond="WX_STABLE_BRANCH=='0'">$(WX_VERSION_NODOT)</if>
89 </set>
90
91 </makefile>