浏览代码

docs/release_checklist.md: Document how/where to bump version numbers

Signed-off-by: Simon McVittie <[email protected]>
Simon McVittie 3 年之前
父节点
当前提交
22002d9155
共有 4 个文件被更改,包括 46 次插入18 次删除
  1. 1 8
      CMakeLists.txt
  2. 1 10
      configure.ac
  3. 1 0
      docs/doxyfile
  4. 43 0
      docs/release_checklist.md

+ 1 - 8
CMakeLists.txt

@@ -56,14 +56,7 @@ set(CMAKE_MODULE_PATH "${SDL2_SOURCE_DIR}/cmake")
 include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
 include(${SDL2_SOURCE_DIR}/cmake/macros.cmake)
 include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
 include(${SDL2_SOURCE_DIR}/cmake/sdlchecks.cmake)
 
 
-# General settings
-# Edit include/SDL_version.h and change the version, then:
-#   SDL_MICRO_VERSION += 1;
-#   SDL_INTERFACE_AGE += 1;
-#   SDL_BINARY_AGE += 1;
-# if any functions have been added, set SDL_INTERFACE_AGE to 0.
-# if backwards compatibility has been broken,
-# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
+# See docs/release_checklist.md
 set(SDL_MAJOR_VERSION 2)
 set(SDL_MAJOR_VERSION 2)
 set(SDL_MINOR_VERSION 0)
 set(SDL_MINOR_VERSION 0)
 set(SDL_MICRO_VERSION 23)
 set(SDL_MICRO_VERSION 23)

+ 1 - 10
configure.ac

@@ -10,16 +10,7 @@ dnl Save the CFLAGS to see whether they were passed in or generated
 orig_CFLAGS="$CFLAGS"
 orig_CFLAGS="$CFLAGS"
 
 
 dnl Set various version strings - taken gratefully from the GTk sources
 dnl Set various version strings - taken gratefully from the GTk sources
-#
-# Making releases:
-# Edit include/SDL_version.h and change the version, then:
-#   SDL_MICRO_VERSION += 1;
-#   SDL_INTERFACE_AGE += 1;
-#   SDL_BINARY_AGE += 1;
-# if any functions have been added, set SDL_INTERFACE_AGE to 0.
-# if backwards compatibility has been broken,
-# set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
-#
+# See docs/release_checklist.md
 SDL_MAJOR_VERSION=2
 SDL_MAJOR_VERSION=2
 SDL_MINOR_VERSION=0
 SDL_MINOR_VERSION=0
 SDL_MICRO_VERSION=23
 SDL_MICRO_VERSION=23

+ 1 - 0
docs/doxyfile

@@ -640,6 +640,7 @@ EXCLUDE                = ../include/SDL_opengles2_gl2ext.h \
                          ../include/SDL_opengles.h \
                          ../include/SDL_opengles.h \
                          ../include/SDL_opengl.h \
                          ../include/SDL_opengl.h \
                          ../include/SDL_egl.h \
                          ../include/SDL_egl.h \
+                         ./release_checklist.md \
 
 
 
 
 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or 
 # The EXCLUDE_SYMLINKS tag can be used select whether or not files or 

+ 43 - 0
docs/release_checklist.md

@@ -0,0 +1,43 @@
+# Release checklist
+
+* Update `WhatsNew.txt`
+
+* Bump version number to 2.0.EVEN for stable release
+
+    * `configure.ac`, `CMakeLists.txt`: `SDL_*_VERSION`
+    * `Xcode/SDL/Info-Framework.plist`: `CFBundleShortVersionString`,
+        `CFBundleVersion`
+    * `Makefile.os2`: `VERSION`
+    * `build-scripts/winrtbuild.ps1`: `$SDLVersion`
+    * `include/SDL_version.h`: `SDL_*_VERSION`, `SDL_PATCHLEVEL`
+    * `src/main/windows/version.rc`: `FILEVERSION`, `PRODUCTVERSION`,
+        `FileVersion`, `ProductVersion`
+
+* Bump ABI version information
+
+    * `configure.ac`: `CMakeLists.txt`: `SDL_INTERFACE_AGE`, `SDL_BINARY_AGE`
+        * `SDL_INTERFACE_AGE += 1`
+        * `SDL_BINARY_AGE += 1`
+        * if any functions have been added, set `SDL_INTERFACE_AGE` to 0
+        * if backwards compatibility has been broken,
+            set both `SDL_BINARY_AGE` and `SDL_INTERFACE_AGE` to 0
+    * `Xcode/SDL/SDL.xcodeproj/project.pbxproj`: `DYLIB_CURRENT_VERSION`,
+        `DYLIB_COMPATIBILITY_VERSION`
+        * increment second number in `DYLIB_CURRENT_VERSION`
+        * if any functions have been added, increment first number in
+            `DYLIB_CURRENT_VERSION` and set second number to 0
+        * if backwards compatibility has been broken,
+            increase `DYLIB_COMPATIBILITY_VERSION` (?)
+
+* Regenerate `configure`
+
+* Do the release
+
+* Bump version number to 2.0.ODD for next development version
+
+    * Same places as listed above
+
+* Bump ABI version information
+
+    * Same places as listed above
+        * initially assume that there is no new ABI