summary refs log tree commit diff stats
path: root/po/Makevars
AgeCommit message (Collapse)Author
2012-07-13Another bunch of rebranding stuffBerke Viktor
2011-02-24add xchat r1489berkeviktor@aol.com
' href='#n28'>28 29 30 31 32 33 34 35 36 37 38 39 40
noinst_LIBRARIES = libhexchatdbus.a
libhexchatdbus_a_SOURCES =			\
	dbus-plugin.c				\
	dbus-plugin.h				\
	dbus-client.c				\
	dbus-client.h

EXTRA_DIST =				\
	remote-object.xml		\
	marshallers.list		\
	example.py			\
	org.hexchat.service.service.in

BUILT_SOURCES =				\
	marshallers.h			\
	remote-object-glue.h

CLEANFILES = $(BUILT_SOURCES)

AM_CPPFLAGS = $(COMMON_CFLAGS) $(DBUS_CFLAGS)

noinst_PROGRAMS = example
example_SOURCES = example.c 
example_LDADD = $(DBUS_LIBS) $(GLIB_LIBS)

remote-object-glue.h: remote-object.xml
	$(AM_V_GEN) $(LIBTOOL) --mode=execute $(DBUS_BINDING_TOOL) --prefix=remote_object --mode=glib-server --output=$@ $<

marshallers.h: marshallers.list
	$(AM_V_GEN) $(LIBTOOL) --mode=execute $(GLIB_GENMARSHAL)  --header --body $< > $@

# Dbus service file
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = org.hexchat.service.service.in
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)|" $< > $@