2012-07-18 09:24:21 -04:00
|
|
|
noinst_LIBRARIES = libhexchatdbus.a
|
|
|
|
libhexchatdbus_a_SOURCES = \
|
2011-02-23 22:14:30 -05:00
|
|
|
dbus-plugin.c \
|
|
|
|
dbus-plugin.h \
|
|
|
|
dbus-client.c \
|
|
|
|
dbus-client.h
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
remote-object.xml \
|
2012-07-18 09:18:43 -04:00
|
|
|
apps_hexchat_url_handler.schemas \
|
2011-02-23 22:14:30 -05:00
|
|
|
marshallers.list \
|
|
|
|
example.py \
|
2012-07-18 09:18:43 -04:00
|
|
|
org.hexchat.service.service.in \
|
2011-02-23 22:14:30 -05:00
|
|
|
README
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
marshallers.h \
|
|
|
|
remote-object-glue.h
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
2012-10-13 16:26:35 -04:00
|
|
|
AM_CPPFLAGS = $(COMMON_CFLAGS) $(DBUS_CFLAGS)
|
2011-02-23 22:14:30 -05:00
|
|
|
|
|
|
|
noinst_PROGRAMS = example
|
|
|
|
example_SOURCES = example.c
|
|
|
|
example_LDADD = $(DBUS_LIBS) $(GLIB_LIBS)
|
|
|
|
|
|
|
|
remote-object-glue.h: remote-object.xml
|
|
|
|
$(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=remote_object --mode=glib-server --output=$@ $<
|
|
|
|
|
|
|
|
marshallers.h: marshallers.list
|
|
|
|
$(LIBTOOL) --mode=execute $(GLIB_GENMARSHAL) --header --body $< > $@
|
|
|
|
|
|
|
|
# Dbus service file
|
|
|
|
servicedir = $(DBUS_SERVICES_DIR)
|
2012-07-18 09:18:43 -04:00
|
|
|
service_in_files = org.hexchat.service.service.in
|
2011-02-23 22:14:30 -05:00
|
|
|
service_DATA = $(service_in_files:.service.in=.service)
|
|
|
|
|
|
|
|
# Rule to make the service file with bindir expanded
|
|
|
|
$(service_DATA): $(service_in_files) Makefile
|
|
|
|
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@
|
|
|
|
|
|
|
|
if DO_GCONF
|
|
|
|
GCONF_SCHEMA_CONFIG_SOURCE = `$(GCONFTOOL) --get-default-source`
|
|
|
|
GCONF_SCHEMA_FILE_DIR = $(sysconfdir)/gconf/schemas
|
|
|
|
schemadir = $(GCONF_SCHEMA_FILE_DIR)
|
2012-07-18 09:18:43 -04:00
|
|
|
schema_DATA = apps_hexchat_url_handler.schemas
|
2011-02-23 22:14:30 -05:00
|
|
|
install-data-local:
|
|
|
|
if test -z "$(DESTDIR)" ; then \
|
|
|
|
for p in $(schema_DATA) ; do \
|
|
|
|
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$$p; \
|
|
|
|
done \
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
install-data-local:
|
|
|
|
endif
|