more C# fun. dll is now registered with gacutil. But it needed a StrongName;
this is sort of a cryptographic signature for DLL; not clear about this. The key is in csharp/lasso-sharp.snk
This commit is contained in:
parent
f557c7e506
commit
9ed2fd5828
|
@ -461,15 +461,21 @@ case $host in
|
|||
*)CSHARPDYNAMICLINKING="";;
|
||||
esac
|
||||
|
||||
AC_CHECK_PROGS(GACUTIL, gacutil)
|
||||
|
||||
AC_SUBST(CSHARPCILINTERPRETER)
|
||||
AC_SUBST(CSHARPCYGPATH_W)
|
||||
AC_SUBST(CSHARPCOMPILER)
|
||||
AC_SUBST(CSHARPDYNAMICLINKING)
|
||||
AC_SUBST(CSHARPLIBRARYPREFIX) # Is this going to be used?
|
||||
AC_SUBST(GACUTIL)
|
||||
|
||||
if test "X$CSHARPCOMPILER" = X; then
|
||||
enable_csharp=no
|
||||
fi
|
||||
if test "X$GACUTIL" = X; then
|
||||
enable_csharp=no
|
||||
fi
|
||||
AM_CONDITIONAL([CSHARP_ENABLED], [test "x$enable_csharp" = "xyes"])
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
[assembly:AssemblyDelaySign(false)]
|
||||
[assembly:AssemblyKeyFile("lasso-sharp.snk")]
|
||||
|
|
@ -22,16 +22,18 @@ liblassosharpglue_wrap.c: $(top_srcdir)/swig/Lasso.i
|
|||
sed -e 's/(char \*) "\(.*\)"/malloc("\1")/' \
|
||||
< liblassosharpglue_wrap.c.bak > liblassosharpglue_wrap.c
|
||||
|
||||
|
||||
dotnetlibdir = $(datadir)/dotnet/lasso/
|
||||
dotnetlib_DATA = lasso.dll lasso.dll.config
|
||||
|
||||
lasso.dll: liblassosharpglue.la
|
||||
mcs /out:lasso.dll /target:library $(srcdir)/*.cs
|
||||
$(CSHARPCOMPILER) -out:lasso.dll -target:library $(srcdir)/*.cs
|
||||
|
||||
pkgconfig_DATA = lasso-sharp.pc
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
|
||||
install-data-local:
|
||||
$(GACUTIL) -i lasso.dll -f -package lasso -gacdir $(libdir)
|
||||
|
||||
clean-local:
|
||||
-rm lasso.dll lasso-sharp.pc liblassosharpglue_wrap.c.bak
|
||||
|
||||
|
@ -47,7 +49,7 @@ SWIG_FILES = liblassosharpglue_wrap.c \
|
|||
SWIGTYPE_p_LassoProvider.cs SWIGTYPE_p_LassoSamlpRequestAbstract.cs \
|
||||
SWIGTYPE_p_LassoSamlpResponseAbstract.cs
|
||||
|
||||
EXTRA_DIST = lasso-sharp.pc.in lasso.dll.config $(SWIG_FILES)
|
||||
EXTRA_DIST = lasso-sharp.pc.in lasso.dll.config AssemblyInfo.cs lasso-sharp.snk $(SWIG_FILES)
|
||||
|
||||
MAINTAINERCLEANFILES = $(SWIG_FILES)
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue