]>
Commit | Line | Data |
---|---|---|
05a0bcde | 1 | <?xml version="1.0" ?> |
05a0bcde VS |
2 | |
3 | <makefile> | |
f36086d1 | 4 | |
05a0bcde VS |
5 | <!-- ================================================================== --> |
6 | <!-- Handling of binary compatiblity: --> | |
7 | <!-- ================================================================== --> | |
8 | ||
31da10de | 9 | <!-- |
5c173ba3 VZ |
10 | We use libtool CURRENT:REVISION:AGE versioning scheme. Here are the |
11 | rules for updating the values below, this should be done whenever wx | |
12 | version (wx/version.h) changes (we abbreviate WX_CURRENT:REVISION:AGE | |
13 | as C:R:A respectively): | |
f36086d1 | 14 | |
5c173ba3 | 15 | 0. Set C:R:A = 0:0:0 if major or minor version has changed. |
f36086d1 | 16 | |
5c173ba3 VZ |
17 | 1. If any API has been removed or otherwise changed in backwards |
18 | incompatible way, then change C:R:A to C+1:0:0 | |
f36086d1 | 19 | |
5c173ba3 | 20 | 2. Else, if any API has been added, change C:R:A to C+1:0:A+1 |
f36086d1 | 21 | |
5c173ba3 VZ |
22 | 3. Else, i.e. if there were no changes at all to API but only internal |
23 | changes, change C:R:A to C:R+1:A | |
31da10de | 24 | --> |
e7bdf0ac | 25 | <set var="WX_CURRENT">0</set> |
31da10de | 26 | <set var="WX_REVISION">0</set> |
25bb1412 | 27 | <set var="WX_AGE">0</set> |
05a0bcde VS |
28 | |
29 | ||
30 | <!-- ================================================================== --> | |
31 | <!-- Library version number: --> | |
32 | <!-- ================================================================== --> | |
33 | ||
34 | <!-- extract wx version number from wx/version.h: --> | |
35 | <set var="WXVER_MAJOR">$(wxwin.getVersionMajor())</set> | |
36 | <set var="WXVER_MINOR">$(wxwin.getVersionMinor())</set> | |
37 | <set var="WXVER_RELEASE">$(wxwin.getVersionRelease())</set> | |
38 | ||
39 | ||
40 | ||
41 | <!-- ================================================================== --> | |
42 | <!-- Derived variables: --> | |
43 | <!-- ================================================================== --> | |
44 | ||
45 | <!-- set misc helper variables: --> | |
46 | ||
47 | <set var="WX_RELEASE" make_var="1"> | |
48 | $(WXVER_MAJOR).$(WXVER_MINOR) | |
49 | </set> | |
50 | <set var="WX_RELEASE_NODOT" make_var="1"> | |
51 | $(WXVER_MAJOR)$(WXVER_MINOR) | |
52 | </set> | |
53 | <set var="WX_VERSION" make_var="1"> | |
54 | $(WX_RELEASE).$(WXVER_RELEASE) | |
55 | </set> | |
56 | <set var="WX_VERSION_NODOT" make_var="1"> | |
57 | $(WX_RELEASE_NODOT)$(WXVER_RELEASE) | |
58 | </set> | |
59 | ||
60 | <set var="WX_STABLE_BRANCH">$(int(int(WXVER_MINOR) % 2 == 0))</set> | |
31da10de VS |
61 | |
62 | <!-- in unstable branch, binary compat. changes with every release, check | |
63 | for it: --> | |
64 | <if cond="WX_STABLE_BRANCH=='0' and int(WX_CURRENT)!=int(WXVER_RELEASE)"> | |
65 | <error>Forgot to update WX_CURRENT/WX_REVISION/WX_AGE?</error> | |
66 | </if> | |
05a0bcde | 67 | <set var="WXSOVERSION"> |
31da10de | 68 | $(int(WX_CURRENT)-int(WX_AGE)).$(WX_AGE).$(WX_REVISION) |
05a0bcde | 69 | </set> |
31da10de VS |
70 | |
71 | <!-- FIXME: until libtool scheme is implemented in bakefile --> | |
72 | <set var="WXMACVERSION_CMD"> | |
73 | <if cond="PLATFORM_MACOSX=='1'"> | |
6ce8b848 VZ |
74 | <!-- Version can't be 0, so add 1 to it to force it to be non null --> |
75 | -compatibility_version $(int(WX_AGE)+1).0 -current_version $(int(WX_AGE)+1).$(WX_REVISION) | |
31da10de VS |
76 | </if> |
77 | </set> | |
78 | ||
05a0bcde VS |
79 | <set var="WXWIN32DLLVERSION"> |
80 | <if cond="WX_STABLE_BRANCH=='1'">$(WX_RELEASE_NODOT)</if> | |
81 | <if cond="WX_STABLE_BRANCH=='0'">$(WX_VERSION_NODOT)</if> | |
82 | </set> | |
83 | ||
84 | </makefile> |