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