SparkleShare/build/m4/sparkleshare/gitsharp.m4
Bertrand Lorentz 5cd5cbb921 [build] Fix handling of additional dependencies of GitSharp
The bundled assemblies are in srcdir, so we need to get them from there.
2010-10-21 21:31:07 +02:00

25 lines
826 B
Plaintext

AC_DEFUN([SPARKLESHARE_GITSHARP],
[
SHAMROCK_FIND_PROGRAM_OR_BAIL(NANT, nant)
if test ! -d "$srcdir/GitSharp"; then
AC_MSG_ERROR([GitSharp folder not found])
fi
dnl Assemblies for GitSharp and their dependencies
dnl GitSharp also brings in Winterdom.IO.FileMap.dll but it is not used
asms="GitSharp/bin/ICSharpCode.SharpZipLib.dll GitSharp/bin/Tamir.SharpSSH.dll GitSharp/bin/GitSharp.Core.dll GitSharp/bin/GitSharp.dll"
GITSHARP_ASSEMBLIES="$asms"
for asm in $asms; do
GITSHARP_FILES="$GITSHARP_FILES $asm"
[[ -r "$asm.mdb" ]] && GITSHARP_FILES="$GITSHARP_FILES $asm.mdb"
done
# Additional dependencies that we need to install
GITSHARP_DEPS="GitSharp/lib/DiffieHellman.dll GitSharp/lib/Org.Mentalis.Security.dll"
AC_SUBST([GITSHARP_ASSEMBLIES])
AC_SUBST([GITSHARP_FILES])
AC_SUBST([GITSHARP_DEPS])
])