summaryrefslogtreecommitdiff
path: root/_dbus_bindings/Makefile.am
blob: 42c9f91a8c7a71306c4a9bb446655359bd24c086 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
pyexec_LTLIBRARIES = _dbus_bindings.la

AM_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) $(PYTHON_INCLUDES)
AM_LDFLAGS = -module -avoid-version \
	     -export-symbols-regex \(PyInit__\|init_\)dbus_bindings \
	     $(NULL)

libadd = $(DBUS_LIBS)

if WINDOWS
# Win32 DLLs can't have undefined symbols (so this needs explicit linking
# against the Python DLL), and Python expects extensions to be *.pyd
# instead of *.dll
AM_LDFLAGS += \
	-no-undefined \
	-shrext ".pyd" \
	$(NULL)

libadd += \
	$(PYTHON_LIBS) \
	$(NULL)
endif

_dbus_bindings_la_LIBADD = $(libadd)
_dbus_bindings_la_SOURCES = \
			    abstract.c \
			    bus.c \
			    bytes.c \
			    compat-internal.h \
			    conn.c \
			    conn-internal.h \
			    conn-methods.c \
			    containers.c \
			    dbus_bindings-internal.h \
			    debug.c \
			    exceptions.c \
			    float.c \
			    generic.c \
			    int.c \
			    unixfd.c \
			    libdbusconn.c \
			    mainloop.c \
			    message-append.c \
			    message.c \
			    message-get-args.c \
			    message-internal.h \
			    module.c \
			    pending-call.c \
			    server.c \
			    signature.c \
			    string.c \
			    types-internal.h \
			    validation.c

check_c_sources = $(_dbus_bindings_la_SOURCES)
include $(top_srcdir)/tools/check-coding-style.mk