Bug 350616: use Microsoft (R) Manifest Tool to build tests. The patch is BOB_3_12_ALPHA_TEST_1
authorwtc%google.com
Sat, 09 Jun 2007 17:30:15 +0000
changeset 3848 e767d8d1efc59c5ef5b79681399a8e8d05ff5700
parent 3847 920704ee417a795a9143de13d7ee7818eabf2f92
child 3849 512b34c94c294619af01ccc58d008695ed2addcf
push idunknown
push userunknown
push dateunknown
bugs350616
Bug 350616: use Microsoft (R) Manifest Tool to build tests. The patch is contributed by Ted Mielczarek <ted.mielczarek@gmail.com>. r=wtc
pr/tests/Makefile.in
--- a/pr/tests/Makefile.in
+++ b/pr/tests/Makefile.in
@@ -482,16 +482,22 @@ ifeq ($(AIX_PRE_4_2),1)
 else
 
 # All platforms that are not AIX pre-4.2.
 
 $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
 	@$(MAKE_OBJDIR)
 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
 	link $(LDOPTS) $(EXTRA_LDOPTS) $< $(LIBPLC) $(LIBNSPR) $(EXTRA_LIBS) -out:$@
+ifdef MT
+	@if test -f $@.manifest; then \
+		$(MT) -NOLOGO -MANIFEST $@.manifest -OUTPUTRESOURCE:$@\;1; \
+		rm -f $@.manifest; \
+	fi
+endif
 else
 ifeq ($(MOZ_OS2_TOOLS),VACPP)
 	$(LD) $(EXEFLAGS) $(LDOPTS) $< $(LIBPLC) $(LIBNSPR) $(OS_LIBS) $(EXTRA_LIBS)
 else
 	$(PURE) $(CC) $(XCFLAGS) $< $(LDOPTS) $(LIBPLC) $(LIBNSPR) $(EXTRA_LIBS) -o $@
 endif # OS/2
 endif # WINNT
 endif # AIX_PRE_4_2