6 <!-- ================================================================== -->
7 <!-- Handling of binary compatiblity: -->
8 <!-- ================================================================== -->
11 We use libtool CURRENT:REVISION:AGE versioning scheme. Quoting libtool
12 documentation on how to handle the values:
14 1. Start with version information of `0:0:0' for each new major.minor
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
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').
25 4. If any interfaces have been added, removed, or changed since the
26 last update, increment CURRENT, and set REVISION to 0.
28 5. If any interfaces have been added since the last public release,
31 6. If any interfaces have been removed since the last public release,
34 <set var=
"WX_CURRENT">0</set>
35 <set var=
"WX_REVISION">0</set>
36 <set var=
"WX_AGE">0</set>
39 <!-- ================================================================== -->
40 <!-- Library version number: -->
41 <!-- ================================================================== -->
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>
50 <!-- ================================================================== -->
51 <!-- Derived variables: -->
52 <!-- ================================================================== -->
54 <!-- set misc helper variables: -->
56 <set var=
"WX_RELEASE" make_var=
"1">
57 $(WXVER_MAJOR).$(WXVER_MINOR)
59 <set var=
"WX_RELEASE_NODOT" make_var=
"1">
60 $(WXVER_MAJOR)$(WXVER_MINOR)
62 <set var=
"WX_VERSION" make_var=
"1">
63 $(WX_RELEASE).$(WXVER_RELEASE)
65 <set var=
"WX_VERSION_NODOT" make_var=
"1">
66 $(WX_RELEASE_NODOT)$(WXVER_RELEASE)
69 <set var=
"WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) %
2 ==
0))
</set>
71 <!-- in unstable branch, binary compat. changes with every release, check
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>
76 <set var=
"WXSOVERSION">
77 $(int(WX_CURRENT)-int(WX_AGE)).$(WX_AGE).$(WX_REVISION)
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)
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>