2012-07-18 17:24:21 +04:00
|
|
|
noinst_LIBRARIES = libhexchatdbus.a
|
|
|
|
libhexchatdbus_a_SOURCES = \
|
2011-02-24 06:14:30 +03:00
|
|
|
dbus-plugin.c \
|
|
|
|
dbus-plugin.h \
|
|
|
|
dbus-client.c \
|
|
|
|
dbus-client.h
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
remote-object.xml \
|
|
|
|
example.py \
|
2014-01-20 11:38:32 +04:00
|
|
|
org.hexchat.service.service.in
|
2011-02-24 06:14:30 +03:00
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
remote-object-glue.h
|
|
|
|
|
2016-12-01 20:27:58 +03:00
|
|
|
# Dbus service file
|
|
|
|
servicedir = $(DBUS_SERVICES_DIR)
|
|
|
|
service_in_files = org.hexchat.service.service.in
|
|
|
|
service_DATA = $(service_in_files:.service.in=.service)
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES) $(service_DATA)
|
2011-02-24 06:14:30 +03:00
|
|
|
|
2016-09-27 01:29:33 +03:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/src/common $(COMMON_CFLAGS) $(DBUS_CFLAGS)
|
2011-02-24 06:14:30 +03:00
|
|
|
|
|
|
|
noinst_PROGRAMS = example
|
2014-02-06 05:42:48 +04:00
|
|
|
example_SOURCES = example.c
|
2011-02-24 06:14:30 +03:00
|
|
|
example_LDADD = $(DBUS_LIBS) $(GLIB_LIBS)
|
|
|
|
|
|
|
|
remote-object-glue.h: remote-object.xml
|
2014-01-14 10:18:15 +04:00
|
|
|
$(AM_V_GEN) $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=remote_object --mode=glib-server --output=$@ $<
|
2011-02-24 06:14:30 +03:00
|
|
|
|
|
|
|
# Rule to make the service file with bindir expanded
|
|
|
|
$(service_DATA): $(service_in_files) Makefile
|
|
|
|
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@
|
|
|
|
|