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
This commit is contained in:
Vadim Zeitlin 2003-02-24 23:20:22 +00:00
parent 117395866e
commit 34b6a45ab9
3 changed files with 30 additions and 3 deletions

View File

@ -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

View File

@ -8,12 +8,14 @@
#
!include <ntwin32.mak>
# 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

24
src/version.mak Normal file
View File

@ -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)