From 5d0f3ee927465cfe1e70b791a8ef35e4c4aafbdd Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sat, 14 Sep 2013 20:26:50 -0400 Subject: [PATCH] Windows: Extned Assembly name for version options Windows file resources can be marked as Private, Special, Debug and Pre-release. Extend the Heimdal Assembly name to include designations for these various build options to ensure that private, special, debug and pre-release builds do not conflict with the assembly name reserved for public releases. This permits a private, special, debug and pre-release build to be installed side-by-side with the final release without interference. Change-Id: I569ce2ff911ddbaebd81ba2e8b477ba6fb520502 --- packages/windows/assembly/NTMakefile | 4 ++-- packages/windows/installer/NTMakefile | 2 ++ .../windows/installer/heimdal-assemblies.wxs | 8 ++++---- packages/windows/installer/heimdal-policy.wxs | 4 ++-- windows/NTMakefile.version | 6 +++++- windows/NTMakefile.w32 | 16 ++++++++++++++-- 6 files changed, 29 insertions(+), 11 deletions(-) diff --git a/packages/windows/assembly/NTMakefile b/packages/windows/assembly/NTMakefile index 954e767a5..dbde3c93d 100644 --- a/packages/windows/assembly/NTMakefile +++ b/packages/windows/assembly/NTMakefile @@ -49,7 +49,7 @@ prep:: mk-asm-dirs # ---------------------------------------------------------------------- # Heimdal.Kerberos Assembly -ASMKRBDIR=$(ASMDIR)\Heimdal.Kerberos +ASMKRBDIR=$(ASMDIR)\$(ASMKRBNAME) ASMKRBVER=$(VER_PRODUCT_MAJOR).$(VER_PRODUCT_MINOR).$(VER_PRODUCT_AUX).$(VER_PRODUCT_PATCH) ASMKRBVER_OLD_BEGIN=$(VER_OLD_BEGIN_MAJOR).$(VER_OLD_BEGIN_MINOR).$(VER_OLD_BEGIN_AUX).$(VER_OLD_BEGIN_PATCH) ASMKRBVER_OLD_END=$(VER_OLD_END_MAJOR).$(VER_OLD_END_MINOR).$(VER_OLD_END_AUX).$(VER_OLD_END_PATCH) @@ -130,7 +130,7 @@ test:: # ---------------------------------------------------------------------- # Publisher configuration files -POLKRB=policy.$(VER_PRODUCT_MAJOR).$(VER_PRODUCT_MINOR).Heimdal.Kerberos +POLKRB=policy.$(VER_PRODUCT_MAJOR).$(VER_PRODUCT_MINOR).$(ASMKRBNAME) POLKRBDIR=$(ASMDIR)\$(POLKRB) POLKRBFILE=$(POLKRBDIR)\$(ASMKRBVER).pol POLKRBCAT=$(POLKRBDIR)\$(ASMKRBVER).cat diff --git a/packages/windows/installer/NTMakefile b/packages/windows/installer/NTMakefile index 403832062..c63ae06d4 100644 --- a/packages/windows/installer/NTMakefile +++ b/packages/windows/installer/NTMakefile @@ -63,6 +63,7 @@ $(OBJ)\heimdal-assemblies.wixobj: heimdal-assemblies.wxs $(CANDLE) -arch $(PLATFORM) -o $@ $** \ -dVersion=$(VERSION) \ -dBinDir=$(BINDIR) \ + -dAsmKrbName=$(ASMKRBNAME) \ -dPlatform=$(PLATFORM) $(SDKREDISTDIR)\Heimdal.msm: $(ASSEMBLYMODULE) @@ -77,6 +78,7 @@ $(OBJ)\heimdal-policy.wixobj: heimdal-policy.wxs $(CANDLE) -arch $(PLATFORM) -o $@ $** \ -dVersion=$(VERSION) \ -dBinDir=$(BINDIR) \ + -dAsmKrbName=$(ASMKRBNAME) \ -dPlatform=$(PLATFORM) \ -dPolPrefix=$(POLPREFIX) diff --git a/packages/windows/installer/heimdal-assemblies.wxs b/packages/windows/installer/heimdal-assemblies.wxs index c4403f61c..dcd617465 100644 --- a/packages/windows/installer/heimdal-assemblies.wxs +++ b/packages/windows/installer/heimdal-assemblies.wxs @@ -24,8 +24,8 @@ Platform="$(var.Platform)" /> - + @@ -38,8 +38,8 @@ - - + + diff --git a/packages/windows/installer/heimdal-policy.wxs b/packages/windows/installer/heimdal-policy.wxs index 1ef0d965e..bd9cd7c31 100644 --- a/packages/windows/installer/heimdal-policy.wxs +++ b/packages/windows/installer/heimdal-policy.wxs @@ -32,8 +32,8 @@ + Name='$(var.PolPrefix).$(var.AsmKrbName)' + FileSource='$(var.BinDir)\$(var.PolPrefix).$(var.AsmKrbName)'>