From 13ce4feb1becf597e08488f1fc759b8ac89f122b Mon Sep 17 00:00:00 2001 From: "Janet B. Anderson" Date: Thu, 9 Mar 2006 17:02:20 +0000 Subject: [PATCH] Added command to embed a .manifest file into a library or product target. --- configure/os/CONFIG.win32-x86.win32-x86 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure/os/CONFIG.win32-x86.win32-x86 b/configure/os/CONFIG.win32-x86.win32-x86 index 6dc0c03c8..a6ee119e5 100644 --- a/configure/os/CONFIG.win32-x86.win32-x86 +++ b/configure/os/CONFIG.win32-x86.win32-x86 @@ -293,4 +293,12 @@ LINK.cpp = $(WINLINK) -nologo $(STATIC_LDFLAGS) $(LDFLAGS) $(PROD_LDFLAGS) -out: $(PROD_LD_OBJS) $(PROD_LD_RESS) $(PROD_LDLIBS) #-------------------------------------------------- +# UseManifestTool.pl checks MS Visual c++ compiler version number to +# decide whether or not to use the Manifest Tool command to embed the +# linker created .manifest file into a library or product target. +# useManifestTool.pl returns 0(don't use) or 1(use). +# +ifeq ($(shell $(PERL) $(TOOLS)/useManifestTool.pl),1) +MT_COMMAND = mt.exe /manifest $@.manifest /outputresource:$@;\#2 +endif