Commit 3652a643 authored by Emmanuel Milou's avatar Emmanuel Milou

[#1220] Explicitly generate glue files before building the library

parent ebcc8b27
include ../../globals.mak
GENHEADERS= \
callmanager-glue.h \
configurationmanager-glue.h \
instance-glue.h
noinst_LTLIBRARIES=libdbus.la
MARSHALLER_SOURCES= \
marshaller.c \
marshaller.h
EXTRA_DIST=marshaller.list
CLEANFILES= \
$(GENHEADERS) \
$(MARSHALLER_SOURCES)
BUILD_SOURCES= \
callmanager-glue.h \
configurationmanager-glue.h \
instance-glue.h \
marshaller.c \
marshaller.h
# Rule to generate the binding headers
%-glue.h: ../../../src/dbus/%-introspec.xml Makefile.am
dbus-binding-tool --mode=glib-client $< > $@
# Create the necessary marshallers for the signals implemented by the
# library
# Create the necessary marshallers for the signals implemented by the library
marshaller.c: marshaller.list
glib-genmarshal --body --g-fatal-warnings $< > $@
marshaller.h: marshaller.list Makefile.am
marshaller.h: marshaller.list
glib-genmarshal --header --g-fatal-warnings $< > $@
marshaller.c: marshaller.list
glib-genmarshal --body --g-fatal-warnings $< > $@
libdbus_la_SOURCES= \
dbus.c \
$(BUILD_SOURCES)
noinst_LTLIBRARIES = libdbus.la
libdbus_la_SOURCES = dbus.c \
$(MARSHALLER_SOURCES) \
$(GENHEADERS)
libdbus_la_LDFLAGS= @DEPS_LDFLAGS@
libdbus_la_CFLAGS= @DEPS_CFLAGS@
libdbus_la_LDFLAGS = @DEPS_LDFLAGS@
libdbus_la_CFLAGS = @DEPS_CFLAGS@
EXTRA_DIST= \
marshaller.list
CLEANFILES= \
$(BUILD_SOURCES)
include $(top_srcdir)/globals.mak
EXTRA_DIST = *.xml README
GENHEADERS= \
callmanager-glue.h \
configurationmanager-glue.h \
instance-glue.h
noinst_LTLIBRARIES = libdbus.la
CLEANFILES= \
$(GENHEADERS)
BUILD_SOURCES= \
callmanager-glue.h \
configurationmanager-glue.h \
instance-glue.h
# Rule to generate the binding headers
%-glue.h: %-introspec.xml Makefile.am
dbusxx-xml2cpp $< --adaptor=$@
noinst_LTLIBRARIES = libdbus.la
libdbus_la_SOURCES = \
callmanager.cpp \
configurationmanager.cpp \
instance.cpp \
dbusmanagerimpl.cpp
callmanager.cpp \
configurationmanager.cpp \
instance.cpp \
dbusmanagerimpl.cpp
libdbus_la_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphone\"
libdbus_la_LIBADD = $(top_srcdir)/libs/dbus-c++/src/libdbus-c++-1.la
noinst_HEADERS = \
$(GENHEADERS) \
callmanager.h \
configurationmanager.h \
instance.h \
dbusmanager.h \
dbusmanagerimpl.h
noinst_HEADERS = \
callmanager.h \
configurationmanager.h \
instance.h \
dbusmanager.h \
dbusmanagerimpl.h \
$(BUILD_SOURCES)
# Dbus service file
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = org.sflphone.SFLphone.service.in
......@@ -42,3 +37,8 @@ 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|$(prefix)/bin|" $<> $@
EXTRA_DIST = *.xml README
CLEANFILES= \
$(BUILD_SOURCES)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment