Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Switch to autotools
Browse files Browse the repository at this point in the history
Note that the tools and examples are not yet built.
  • Loading branch information
Alp Toker committed Oct 7, 2007
1 parent d3f1475 commit 0b21a7c
Show file tree
Hide file tree
Showing 11 changed files with 149 additions and 111 deletions.
Empty file added ChangeLog
Empty file.
3 changes: 0 additions & 3 deletions Makefile

This file was deleted.

22 changes: 22 additions & 0 deletions Makefile.am
@@ -0,0 +1,22 @@
SUBDIRS = src tools examples

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ndesk-dbus-1.0.pc

EXTRA_DIST = \
ndesk-dbus-1.0.pc.in \
ndesk.snk

DISTCLEANFILES = \
ndesk-dbus-1.0.pc

MAINTAINERCLEANFILES = \
INSTALL \
Makefile.in \
aclocal.m4 \
config.guess \
config.sub \
configure \
install-sh \
missing

Empty file added NEWS
Empty file.
59 changes: 59 additions & 0 deletions configure.ac
@@ -0,0 +1,59 @@
AC_INIT(src/DBus.cs)

AC_CANONICAL_SYSTEM
AC_PREREQ(2.13)

API_VERSION=1.0
#VERSION=$API_VERSION.0
VERSION=0.5.3

AC_SUBST(API_VERSION)
AC_SUBST(VERSION)

AM_INIT_AUTOMAKE(ndesk-dbus, $VERSION)

AM_MAINTAINER_MODE

AC_PROG_INSTALL

AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
AC_SUBST(PKG_CONFIG)

MONO_REQ_VERSION=1.1.13
PKG_CHECK_MODULES(MONO, mono >= $MONO_REQ_VERSION)

AC_PATH_PROG(GMCS, gmcs, no)
if test "x$GMCS" = "xno"; then
AC_MSG_ERROR([You need to install gmcs])
fi
AC_SUBST(GMCS)

AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno"; then
AC_MSG_ERROR([You need to install gacutil])
fi
AC_SUBST(GACUTIL)

required_assemblies="Mono.Posix"

for asm in $required_assemblies; do
AC_MSG_CHECKING([for $asm.dll])
if test -n "`$GACUTIL /l $asm.dll | grep ^$asm.dll`"; then
AC_MSG_RESULT([not found])
AC_MSG_ERROR([missing required assembly in the GAC: $asm.dll])
else
AC_MSG_RESULT([found])
fi
done

AC_OUTPUT([
Makefile
ndesk-dbus-1.0.pc
src/Makefile
tools/Makefile
examples/Makefile
])

38 changes: 0 additions & 38 deletions examples/Makefile

This file was deleted.

22 changes: 0 additions & 22 deletions include.mk

This file was deleted.

2 changes: 1 addition & 1 deletion ndesk-dbus-1.0.pc.in
Expand Up @@ -6,6 +6,6 @@ session_bus_services_dir=${datadir}/dbus-1/services

Name: NDesk.DBus
Description: Managed D-Bus IPC protocol library and CLR binding
Version: 0.5.2
Version: @VERSION@
URL: http://www.ndesk.org/DBusSharp
Libs: -r:${libdir}/mono/ndesk-dbus-1.0/NDesk.DBus.dll
27 changes: 0 additions & 27 deletions src/Makefile

This file was deleted.

67 changes: 67 additions & 0 deletions src/Makefile.am
@@ -0,0 +1,67 @@
ASSEMBLY = NDesk.DBus
TARGET = $(ASSEMBLY).dll

CSFLAGS = \
-debug -target:library -unsafe -d:STRONG_NAME -keyfile:../ndesk.snk

LIBFLAGS = \
-r:Mono.Posix

CSFILES = \
$(srcdir)/Address.cs \
$(srcdir)/AssemblyInfo.cs \
$(srcdir)/Authentication.cs \
$(srcdir)/Bus.cs \
$(srcdir)/BusObject.cs \
$(srcdir)/Connection.cs \
$(srcdir)/DBus.cs \
$(srcdir)/DProxy.cs \
$(srcdir)/ExportObject.cs \
$(srcdir)/Introspection.cs \
$(srcdir)/Protocol.cs \
$(srcdir)/Mapper.cs \
$(srcdir)/MatchRule.cs \
$(srcdir)/Message.cs \
$(srcdir)/MessageFilter.cs \
$(srcdir)/MessageReader.cs \
$(srcdir)/MessageWriter.cs \
$(srcdir)/PendingCall.cs \
$(srcdir)/Signature.cs \
$(srcdir)/SocketTransport.cs \
$(srcdir)/Transport.cs \
$(srcdir)/TypeImplementer.cs \
$(srcdir)/UnixNativeTransport.cs \
$(srcdir)/UnixTransport.cs \
$(srcdir)/Wrapper.cs

all: $(TARGET)

#$(TARGET): $(CSFILES) AssemblyInfo.cs
$(TARGET): $(CSFILES)
$(GMCS) -out:$@ $(CSFLAGS) $(LIBFLAGS) $^

install-data-local:
@if test -n '$(TARGET)'; then \
echo "$(GACUTIL) /i $(TARGET) /f /gacdir $(DESTDIR)$(libdir)"; \
$(GACUTIL) /i $(TARGET) /package $(ASSEMBLY) /f /gacdir $(libdir) /root $(DESTDIR)$(libdir) || exit 1; \
fi

uninstall-local:
@if test -n '$(TARGET)'; then \
echo "$(GACUTIL) /u $(ASSEMBLY) /gacdir $(DESTDIR)$(libdir)"; \
$(GACUTIL) /u $(ASSEMBLY) /package $(ASSEMBLY) /gacdir $(libdir) /root $(DESTDIR)$(libdir) || exit 1; \
fi

EXTRA_DIST = \
$(CSFILES)
# $(srcdir)/AssemblyInfo.cs.in

CLEANFILES = \
$(TARGET) \
$(TARGET).mdb

#DISTCLEANFILES = \
# AssemblyInfo.cs

MAINTAINERCLEANFILES = \
Makefile.in
20 changes: 0 additions & 20 deletions tools/Makefile

This file was deleted.

0 comments on commit 0b21a7c

Please sign in to comment.