Hi, 

When compiling Clutter-cairo-sharp it complained that clutter-sharp
didn't have a strong name. It seems that the AssemblyInfo.cs file that
contained the link to the snk file wasn't being compiled into the
assembly.

Attached is a patch that fixes that, and also changes the install file
to use gacutil to install/uninstall the assembly to the gac, using the
same rules as found in clutter-cairo-sharp's Makefile.am

Is this needed and can I commit it or is there something weird in my
setup? (mono 1.9.1 and gapi 2.12.4)

iain
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 3291)
+++ src/Makefile.am	(working copy)
@@ -1,11 +1,9 @@
 ASSEMBLY_NAME = clutter-sharp
 ASSEMBLY = clutter-sharp.dll
 TARGET = $(ASSEMBLY) $(ASSEMBLY).config
-assemblydir = $(libdir)/clutter-sharp
-assembly_DATA = $(TARGET)
 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API)
 DISTCLEANFILES = $(ASSEMBLY).config
-EXTRA_DIST = $(RAW_API) $(METADATA) $(customs) $(sources) clutter-sharp.pc.in clutter-sharp.dll.config.in
+EXTRA_DIST = $(RAW_API) $(METADATA) $(customs) $(sources) clutter-sharp.dll.config.in
 
 references = $(GTKSHARP_LIBS)
 
@@ -30,5 +28,10 @@
 
 $(ASSEMBLY): $(sources)
 	@rm -f $(ASSEMBLY).mdb
-	$(MCS) $(CSFLAGS) -out:$@ -target:library -nowarn:0169 -unsafe $(references) generated/*.cs $(sources)
+	$(MCS) $(CSFLAGS) -out:$@ -target:library -nowarn:0169 -unsafe $(references) generated/*.cs $(sources) AssemblyInfo.cs
 
+install-data-local:
+	$(GACUTIL) /i $(ASSEMBLY) /f /package $(ASSEMBLY_NAME) /gacdir $(DESTDIR)$(libdir)
+
+uninstall-local:
+	$(GACUTIL) /u $(ASSEMBLY_NAME) /package $(ASSEMBLY_NAME) /gacdir $(libdir) /root $(DESTDIR)$(libdir)

Reply via email to