From 34b6a45ab92c7fa61b2bbb43cb571d24dd3a3488 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Feb 2003 23:20:22 +0000 Subject: [PATCH] centralize version info in one file, include it from all makefiles git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/makeg95.env | 3 ++- src/makevc.env | 6 ++++-- src/version.mak | 24 ++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 src/version.mak diff --git a/src/makeg95.env b/src/makeg95.env index 763cf395a1..1a9851fdaf 100644 --- a/src/makeg95.env +++ b/src/makeg95.env @@ -69,7 +69,8 @@ OSTYPE=msys endif # If building DLL, the version -WXVERSION=250 +include version.mak +WXVERSION=$(wxMAJOR_VERSION)$(wxMINOR_VERSION)$(wxRELEASE_NUMBER_IFUNSTABLE) ifndef UNICODE UNICODE=0 diff --git a/src/makevc.env b/src/makevc.env index 01247c6b0b..78ed7bb272 100644 --- a/src/makevc.env +++ b/src/makevc.env @@ -8,12 +8,14 @@ # !include +# read version numbers +!include "version.mak" +WXVERSION=$(wxMAJOR_VERSION)$(wxMINOR_VERSION)$(wxRELEASE_NUMBER_IFUNSTABLE) + !if "$(RM)" == "" RM= erase !endif -WXVERSION=25 - # WIN95 means "all systems newer than Win95", i.e. Win9x and NT 4+ WIN95=1 diff --git a/src/version.mak b/src/version.mak new file mode 100644 index 0000000000..34d7c11d25 --- /dev/null +++ b/src/version.mak @@ -0,0 +1,24 @@ +############################################################################## +# Name: src/version.mak +# Purpose: file defining wxWindows version used by all other makefiles +# Author: Vadim Zeitlin +# Modified by: +# Created: 25.02.03 +# RCS-ID: $Id$ +# Copyright: (c) 2003 Vadim Zeitlin +# Licence: wxWindows license +############################################################################## + +wxMAJOR_VERSION=2 +wxMINOR_VERSION=5 +wxRELEASE_NUMBER=0 + +# release number if used in the DLL file names only for the unstable branch as +# for the stable branches the micro releases are supposed to be backwards +# compatible and so should have the same name or otherwise it would be +# impossible to use them without recompiling the applications (which is the +# whole goal of keeping them backwards compatible in the first place) +# +# as 2.5 is an unstable branch, wxRELEASE_NUMBER_IFUNSTABLE should be set +# (but when we go to 2.6, it should become empty) +wxRELEASE_NUMBER_IFUNSTABLE=$(wxRELEASE_NUMBER) -- 2.45.2