Windows: Version mgmt for assemblies and thirdparty

Breakout the version data from windows/NTMakefile.config
and move it to windows/NTMakefile.version.  This new file
contains only version data.  This permits version data to
be safely referenced by third party components.

In addition, add version range information for those versions
of Heimdal for which this release is a compatible upgrade.  If
there is a forward incompatible change to the assembly ABI, it
is not a compatible upgrade.  This version data is used to specify
the Windows assembly redirect range.

Change-Id: Ic9f156212599cc4277e2be812f29a6497801046c
This commit is contained in:
Jeffrey Altman
2011-09-23 09:48:42 -04:00
parent 269cf69f42
commit bad61548dd
5 changed files with 64 additions and 34 deletions

View File

@@ -34,6 +34,7 @@ RELDIR=include
SUBDIRS=kadm5 hcrypto gssapi
!include ../windows/NTMakefile.w32
!include ../windows/NTMakefile.version
!include ../windows/NTMakefile.config
INCFILES= \
@@ -50,7 +51,7 @@ $(OBJ)\bits.exe: $(OBJ)\bits.obj
$(EXECONLINK)
$(EXEPREP_NODIST)
$(INCDIR)\config.h: config.h.w32 ..\windows\NTMakefile.config NTMakefile
$(INCDIR)\config.h: config.h.w32 ..\windows\NTMakefile.config ..\windows\NTMakefile.version NTMakefile
$(PERL) << < config.h.w32 > $@
while(<>) {
@@ -105,7 +106,7 @@ while(<>) {
<<
$(INCDIR)\version.h: ..\windows\NTMakefile.config NTMakefile
$(INCDIR)\version.h: ..\windows\NTMakefile.version NTMakefile
$(CP) << $@
const char *heimdal_long_version = "@(#)$$Version: $(VER_PACKAGE_NAME) $(VER_PACKAGE_VERSION) by $(USERNAME) on $(COMPUTERNAME) ($(CPU)-pc-windows) $$";
const char *heimdal_version = "$(VER_PACKAGE_NAME) $(VER_PACKAGE_VERSION)";