Просмотр исходного кода

2004-06-09 Sebastien Pouliot <[email protected]>

	* library.make: Added support to fully sign assemblies when doing a
	"make install" (thanks to Jackson :-).

svn path=/trunk/mcs/; revision=29130
Sebastien Pouliot 21 лет назад
Родитель
Сommit
b250033002
2 измененных файлов с 20 добавлено и 2 удалено
  1. 5 0
      mcs/build/ChangeLog
  2. 15 2
      mcs/build/library.make

+ 5 - 0
mcs/build/ChangeLog

@@ -1,3 +1,8 @@
+2004-06-09  Sebastien Pouliot  <[email protected]>
+
+	* library.make: Added support to fully sign assemblies when doing a
+	"make install" (thanks to Jackson :-).
+
 2004-06-09  Raja R Harinath  <[email protected]>
 
 	Do away with stampfiles.

+ 15 - 2
mcs/build/library.make

@@ -50,6 +50,7 @@ HAVE_VB_TESTS := $(wildcard $(btest_sourcefile))
 endif
 
 gacutil = $(topdir)/tools/gacutil/gacutil.exe
+sn = $(topdir)/tools/security/sn.exe
 
 PACKAGE = 1.0
 
@@ -57,10 +58,16 @@ ifeq ($(PROFILE), net_2_0)
 PACKAGE = 2.0
 endif
 
+ifndef NO_SIGN_ASSEMBLY
+sign = sign_assembly
+else
+sign = 
+endif
+
 all-local: $(the_lib)
 
-install-local: $(the_lib) $(gacutil)
-	$(RUNTIME) $(gacutil) /i $(the_lib) /f /root $(DESTDIR)$(prefix)/lib /package $(PACKAGE)
+install-local: $(the_lib) $(gacutil) $(sign)
+	$(RUNTIME)  $(gacutil) /i $(the_lib) /f /root $(DESTDIR)$(prefix)/lib /package $(PACKAGE)
 
 uninstall-local: $(gacutil)
 	$(RUNTIME) $(gacutil) /u `echo $(LIBRARY_NAME) | sed 's,.dll$,,'`
@@ -68,6 +75,12 @@ uninstall-local: $(gacutil)
 $(gacutil):
 	cd $(topdir)/tools/gacutil && $(MAKE)
 
+$(sn):
+	cd $(topdir)/tools/security && $(MAKE) sn.exe || exit 1 ;
+
+sign_assembly: $(sn)
+	$(RUNTIME) $(sn) -q -R $(the_lib) $(topdir)/class/mono.snk
+
 clean-local:
 	-rm -f $(the_lib) $(makefrag) $(test_lib) \
 	       $(test_makefrag) $(test_response) \