Skip to content

Commit 22002d9

Browse files
smcvslouken
authored andcommitted
docs/release_checklist.md: Document how/where to bump version numbers
Signed-off-by: Simon McVittie <smcv@collabora.com>
1 parent d4b82bf commit 22002d9

File tree

4 files changed

+46
-18
lines changed

4 files changed

+46
-18
lines changed

CMakeLists.txt

+1-8
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,7 @@ set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
5656
include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
5757
include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
5858

59-
# General settings
60-
# Edit include/SDL_version.h and change the version, then:
61-
# SDL_MICRO_VERSION += 1;
62-
# SDL_INTERFACE_AGE += 1;
63-
# SDL_BINARY_AGE += 1;
64-
# if any functions have been added, set SDL_INTERFACE_AGE to 0.
65-
# if backwards compatibility has been broken,
66-
# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
59+
# See docs/release_checklist.md
6760
set(SDL_MAJOR_VERSION 2)
6861
set(SDL_MINOR_VERSION 0)
6962
set(SDL_MICRO_VERSION 23)

configure.ac

+1-10
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,7 @@ dnl Save the CFLAGS to see whether they were passed in or generated
1010
orig_CFLAGS="$CFLAGS"
1111

1212
dnl Set various version strings - taken gratefully from the GTk sources
13-
#
14-
# Making releases:
15-
# Edit include/SDL_version.h and change the version, then:
16-
# SDL_MICRO_VERSION += 1;
17-
# SDL_INTERFACE_AGE += 1;
18-
# SDL_BINARY_AGE += 1;
19-
# if any functions have been added, set SDL_INTERFACE_AGE to 0.
20-
# if backwards compatibility has been broken,
21-
# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
22-
#
13+
# See docs/release_checklist.md
2314
SDL_MAJOR_VERSION=2
2415
SDL_MINOR_VERSION=0
2516
SDL_MICRO_VERSION=23

docs/doxyfile

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ EXCLUDE = ../include/SDL_opengles2_gl2ext.h \
640640
../include/SDL_opengles.h \
641641
../include/SDL_opengl.h \
642642
../include/SDL_egl.h \
643+
./release_checklist.md \
643644

644645

645646
# The EXCLUDE_SYMLINKS tag can be used select whether or not files or

docs/release_checklist.md

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Release checklist
2+
3+
* Update `WhatsNew.txt`
4+
5+
* Bump version number to 2.0.EVEN for stable release
6+
7+
* `configure.ac`, `CMakeLists.txt`: `SDL_*_VERSION`
8+
* `Xcode/SDL/Info-Framework.plist`: `CFBundleShortVersionString`,
9+
`CFBundleVersion`
10+
* `Makefile.os2`: `VERSION`
11+
* `build-scripts/winrtbuild.ps1`: `$SDLVersion`
12+
* `include/SDL_version.h`: `SDL_*_VERSION`, `SDL_PATCHLEVEL`
13+
* `src/main/windows/version.rc`: `FILEVERSION`, `PRODUCTVERSION`,
14+
`FileVersion`, `ProductVersion`
15+
16+
* Bump ABI version information
17+
18+
* `configure.ac`: `CMakeLists.txt`: `SDL_INTERFACE_AGE`, `SDL_BINARY_AGE`
19+
* `SDL_INTERFACE_AGE += 1`
20+
* `SDL_BINARY_AGE += 1`
21+
* if any functions have been added, set `SDL_INTERFACE_AGE` to 0
22+
* if backwards compatibility has been broken,
23+
set both `SDL_BINARY_AGE` and `SDL_INTERFACE_AGE` to 0
24+
* `Xcode/SDL/SDL.xcodeproj/project.pbxproj`: `DYLIB_CURRENT_VERSION`,
25+
`DYLIB_COMPATIBILITY_VERSION`
26+
* increment second number in `DYLIB_CURRENT_VERSION`
27+
* if any functions have been added, increment first number in
28+
`DYLIB_CURRENT_VERSION` and set second number to 0
29+
* if backwards compatibility has been broken,
30+
increase `DYLIB_COMPATIBILITY_VERSION` (?)
31+
32+
* Regenerate `configure`
33+
34+
* Do the release
35+
36+
* Bump version number to 2.0.ODD for next development version
37+
38+
* Same places as listed above
39+
40+
* Bump ABI version information
41+
42+
* Same places as listed above
43+
* initially assume that there is no new ABI

0 commit comments

Comments
 (0)