2009-01-08 Mike Kestner <mkestner@novell.com>

* cairo/Makefile.am: use mono.snk to sign the Mono.Cairo assembly
	so that it's compatible with mono built versions.  Initial patch
	from Christian Hoff with a few tweaks.

svn path=/trunk/gtk-sharp/; revision=122821
This commit is contained in:
Mike Kestner 2009-01-08 20:05:24 +00:00
parent 756e0c49b9
commit 2110dad6d1
5 changed files with 21 additions and 11 deletions

View File

@ -1,3 +1,9 @@
2009-01-08 Mike Kestner <mkestner@novell.com>
* cairo/Makefile.am: use mono.snk to sign the Mono.Cairo assembly
so that it's compatible with mono built versions. Initial patch
from Christian Hoff with a few tweaks.
2009-01-08 Mike Kestner <mkestner@novell.com>
* generator/InterfaceGen.cs: generate Adapters for consume_only ifaces

View File

@ -1,6 +1,7 @@
SUBDIRS = sources generator parser glib gio cairo pango atk gdk gtk glade gtkdotnet sample doc
EXTRA_DIST = \
mono.snk \
gtk-sharp.snk \
gapi-cdecl-insert \
makefile.win32 \

6
cairo/AssemblyInfo.cs Normal file
View File

@ -0,0 +1,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;
[assembly:AssemblyVersion("2.0.0.0")]
[assembly:AssemblyDelaySign(false)]
[assembly:AssemblyKeyFile("mono.snk")]

View File

@ -11,10 +11,11 @@ endif
noinst_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLY) gtk-sharp.snk AssemblyInfo.cs
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLY) mono.snk
sources = \
Antialias.cs \
AssemblyInfo.cs \
Cairo.cs \
Content.cs \
Context.cs \
@ -63,22 +64,18 @@ sources = \
XlibSurface.cs \
#
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
build_sources = $(addprefix $(srcdir)/, $(sources))
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
mono.snk: $(top_srcdir)/mono.snk
cp $(top_srcdir)/mono.snk .
AssemblyInfo.cs: $(top_builddir)/AssemblyInfo.cs
@echo "sed -e "s/@API_VERSION@/2.0.0.0/" -e "s/\[assembly:GLib.IgnoreClassInitializers\]//" $(top_builddir)/AssemblyInfo.cs > $@"
@sed -e "s/@API_VERSION@/2.0.0.0/" -e "s/\[assembly:GLib.IgnoreClassInitializers\]//" $(top_builddir)/AssemblyInfo.cs > $@
$(ASSEMBLY): $(build_sources) gtk-sharp.snk AssemblyInfo.cs
$(ASSEMBLY): $(build_sources) mono.snk
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources)
$(POLICY_ASSEMBLY): $(srcdir)/$(POLICY_CONFIG) gtk-sharp.snk
$(POLICY_ASSEMBLY): $(srcdir)/$(POLICY_CONFIG) mono.snk
echo "Creating policy.1.0.$(ASSEMBLY)";
$(AL) -link:$(POLICY_CONFIG) -out:$@ -keyfile:gtk-sharp.snk;
$(AL) -link:$(POLICY_CONFIG) -out:$@ -keyfile:mono.snk;
install-data-local:
@if test -n '$(TARGET)'; then \

BIN
mono.snk Normal file

Binary file not shown.