[Mono-dev] Help on deploying library to gac using autotools

2009-02-01 Thread amrhassan

Hi, I'm not an autotools expert. I just want to create a package to
distribute my lib into GAC. I signed my library and everything, I created
the Makefiles using the addin from MonoDevelop but I don't know how to get
it to install the lib into GAC instead of PREFIX/lib.

Can someone please help me with that?
-- 
View this message in context: 
http://www.nabble.com/Help-on-deploying-library-to-gac-using-autotools-tp21636076p21636076.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


Re: [Mono-dev] Help on deploying library to gac using autotools

2009-02-01 Thread Mike Kestner
On Fri, 2009-01-23 at 17:38 -0800, amrhassan wrote:
 Hi, I'm not an autotools expert. I just want to create a package to
 distribute my lib into GAC. I signed my library and everything, I created
 the Makefiles using the addin from MonoDevelop but I don't know how to get
 it to install the lib into GAC instead of PREFIX/lib.
 
 Can someone please help me with that?

The way this is usually done is by building the assembly as a
noinst_DATA target and adding something like:

install-data-local:
  $(GACUTIL) /i $(ASSEMBLY) /f || exit 1;

uninstall-local:
  $(GACUTIL) /u $(ASSEMBLY_NAME) /f || exit 1;

ASSEMBLY_NAME is the name of your assembly without the .dll extension.
ASSEMBLY includes the .dll.

GACUTIL is setup in configure.in as:

AC_PATH_PROG(GACUTIL, gacutil, no)
if test x$GACUTIL = xno ; then
AC_MSG_ERROR([No gacutil tool found. You need to install either
the mono or .Net SDK.])
fi
AC_SUBST(GACUTIL)


-- 
Mike Kestner mkest...@gmail.com

___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list