summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-22 18:26:36 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-01-22 18:26:36 +0000
commit625bfaac68f6c7afd85d62752e34fc8e00405790 (patch)
treee288b97bae29170976b796ecc954dc9ea3c3db78
parent6edb71ddccce139f6c7de1e43f885fed37f58b1b (diff)
downloaddbus-python-625bfaac68f6c7afd85d62752e34fc8e00405790.tar.gz
Split up Makefile.am between subdirectories
As well as being conventional, this seems to be necessary to avoid having dbus_py_test.so installed, while still having it be a Libtool shared library (noinst libraries are helpfully made static).
-rw-r--r--_dbus_bindings/Makefile.am30
-rw-r--r--_dbus_glib_bindings/Makefile.am9
-rw-r--r--dbus/Makefile.am21
-rw-r--r--examples/Makefile.am8
-rw-r--r--test/Makefile.am44
5 files changed, 112 insertions, 0 deletions
diff --git a/_dbus_bindings/Makefile.am b/_dbus_bindings/Makefile.am
new file mode 100644
index 0000000..35ef81d
--- /dev/null
+++ b/_dbus_bindings/Makefile.am
@@ -0,0 +1,30 @@
+pyexec_LTLIBRARIES = _dbus_bindings.la
+
+AM_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) $(PYTHON_INCLUDES)
+AM_LDFLAGS = -module -avoid-version -export-symbols-regex init_dbus_bindings \
+ $(DBUS_LIBS)
+_dbus_bindings_la_SOURCES = \
+ abstract.c \
+ bus.c \
+ bytes.c \
+ conn.c \
+ conn-internal.h \
+ conn-methods.c \
+ containers.c \
+ dbus_bindings-internal.h \
+ debug.c \
+ exceptions.c \
+ float.c \
+ generic.c \
+ int.c \
+ mainloop.c \
+ message-append.c \
+ message.c \
+ message-get-args.c \
+ message-internal.h \
+ module.c \
+ pending-call.c \
+ signature.c \
+ string.c \
+ types-internal.h \
+ validation.c
diff --git a/_dbus_glib_bindings/Makefile.am b/_dbus_glib_bindings/Makefile.am
new file mode 100644
index 0000000..0558dd4
--- /dev/null
+++ b/_dbus_glib_bindings/Makefile.am
@@ -0,0 +1,9 @@
+pyexec_LTLIBRARIES = _dbus_glib_bindings.la
+
+AM_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) $(DBUS_GLIB_CFLAGS) \
+ $(PYTHON_INCLUDES)
+AM_LDFLAGS = -module -avoid-version \
+ -export-symbols-regex init_dbus_glib_bindings \
+ $(DBUS_LIBS) $(DBUS_GLIB_LIBS)
+
+_dbus_glib_bindings_la_SOURCES = module.c
diff --git a/dbus/Makefile.am b/dbus/Makefile.am
new file mode 100644
index 0000000..ab339ac
--- /dev/null
+++ b/dbus/Makefile.am
@@ -0,0 +1,21 @@
+pythondbusdir = $(pythondir)/dbus
+
+nobase_pythondbus_PYTHON = dbus_bindings.py \
+ _dbus.py \
+ decorators.py \
+ exceptions.py \
+ _expat_introspect_parser.py \
+ glib.py \
+ __init__.py \
+ lowlevel.py \
+ mainloop/__init__.py \
+ mainloop/glib.py \
+ proxies.py \
+ service.py \
+ types.py
+
+CLEANFILES = .doc-needs-rebuild-stamp
+BUILT_SOURCES = .doc-needs-rebuild-stamp
+
+.doc-needs-rebuild-stamp: $(nobase_pythondbus_PYTHON)
+ touch $@
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..316b4bb
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1,8 @@
+EXTRA_DIST = \
+ example-async-client.py \
+ example-client.py \
+ example-service.py \
+ example-signal-emitter.py \
+ example-signal-recipient.py \
+ list-system-services.py
+# miss out the gconf examples for now - they don't work
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644
index 0000000..58e4da8
--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,44 @@
+EXTRA_DIST = \
+ cross-test-client.py \
+ cross-test-server.py \
+ crosstest.py \
+ run-test.sh \
+ run-with-tmp-session-bus.sh \
+ test-client.py \
+ test-service.py \
+ test-signals.py \
+ test-standalone.py \
+ test-unusable-main-loop.py \
+ TestSuitePythonService.service.in \
+ tmp-session-bus.conf.in
+
+# If you try to make this noinst, libtool helpfully gives us a static
+# library, which doesn't work as a Python extension: so force the install
+# target not to work here instead.
+pyexec_LTLIBRARIES = dbus_py_test.la
+
+install:
+ @echo "Not installing anything from test/"
+
+dbus_py_test_la_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) \
+ $(PYTHON_INCLUDES)
+dbus_py_test_la_LDFLAGS = -module -avoid-version \
+ $(DBUS_LIBS)
+dbus_py_test_la_SOURCES = dbus_py_test.c \
+ $(top_srcdir)/include/dbus-python.h
+
+PWD = `pwd`
+TESTS_ENVIRONMENT = DBUS_TOP_SRCDIR="$(PWD)/$(top_srcdir)" \
+ DBUS_TOP_BUILDDIR="$(PWD)/$(top_builddir)" \
+ DBUS_PYTHON_VERSION='$(PACKAGE_VERSION)' \
+ PYTHONPATH="$(PWD)/.libs:$(PWD)/$(top_srcdir):$(PWD)/$(top_srcdir)/test:$(PWD)/../_dbus_bindings/.libs:$(PWD)/../_dbus_glib_bindings/.libs" \
+ PYTHON='$(PYTHON)'
+
+TESTS = run-test.sh
+
+cross-test-server:
+ $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-server.py
+cross-test-client:
+ $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-client.py
+
+.PHONY: cross-test-compile cross-test-server cross-test-client