Skip to content
Snippets Groups Projects
Commit 3652a643 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

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

parent ebcc8b27
No related branches found
No related tags found
No related merge requests found
include ../../globals.mak include ../../globals.mak
GENHEADERS= \ noinst_LTLIBRARIES=libdbus.la
BUILD_SOURCES= \
callmanager-glue.h \ callmanager-glue.h \
configurationmanager-glue.h \ configurationmanager-glue.h \
instance-glue.h instance-glue.h \
MARSHALLER_SOURCES= \
marshaller.c \ marshaller.c \
marshaller.h marshaller.h
EXTRA_DIST=marshaller.list
CLEANFILES= \
$(GENHEADERS) \
$(MARSHALLER_SOURCES)
# Rule to generate the binding headers # Rule to generate the binding headers
%-glue.h: ../../../src/dbus/%-introspec.xml Makefile.am %-glue.h: ../../../src/dbus/%-introspec.xml Makefile.am
dbus-binding-tool --mode=glib-client $< > $@ dbus-binding-tool --mode=glib-client $< > $@
# Create the necessary marshallers for the signals implemented by the # Create the necessary marshallers for the signals implemented by the library
# library
marshaller.h: marshaller.list Makefile.am
glib-genmarshal --header --g-fatal-warnings $< > $@
marshaller.c: marshaller.list marshaller.c: marshaller.list
glib-genmarshal --body --g-fatal-warnings $< > $@ glib-genmarshal --body --g-fatal-warnings $< > $@
noinst_LTLIBRARIES = libdbus.la marshaller.h: marshaller.list
libdbus_la_SOURCES = dbus.c \ glib-genmarshal --header --g-fatal-warnings $< > $@
$(MARSHALLER_SOURCES) \
$(GENHEADERS) libdbus_la_SOURCES= \
dbus.c \
$(BUILD_SOURCES)
libdbus_la_LDFLAGS= @DEPS_LDFLAGS@ libdbus_la_LDFLAGS= @DEPS_LDFLAGS@
libdbus_la_CFLAGS= @DEPS_CFLAGS@ libdbus_la_CFLAGS= @DEPS_CFLAGS@
EXTRA_DIST= \
marshaller.list
CLEANFILES= \
$(BUILD_SOURCES)
include $(top_srcdir)/globals.mak include $(top_srcdir)/globals.mak
EXTRA_DIST = *.xml README noinst_LTLIBRARIES = libdbus.la
GENHEADERS= \ BUILD_SOURCES= \
callmanager-glue.h \ callmanager-glue.h \
configurationmanager-glue.h \ configurationmanager-glue.h \
instance-glue.h instance-glue.h
CLEANFILES= \
$(GENHEADERS)
# Rule to generate the binding headers # Rule to generate the binding headers
%-glue.h: %-introspec.xml Makefile.am %-glue.h: %-introspec.xml Makefile.am
dbusxx-xml2cpp $< --adaptor=$@ dbusxx-xml2cpp $< --adaptor=$@
noinst_LTLIBRARIES = libdbus.la
libdbus_la_SOURCES = \ libdbus_la_SOURCES = \
callmanager.cpp \ callmanager.cpp \
configurationmanager.cpp \ configurationmanager.cpp \
...@@ -27,12 +22,12 @@ libdbus_la_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphon ...@@ -27,12 +22,12 @@ libdbus_la_CXXFLAGS = -DPREFIX=\"$(prefix)\" -DPROGSHAREDIR=\"${datadir}/sflphon
libdbus_la_LIBADD = $(top_srcdir)/libs/dbus-c++/src/libdbus-c++-1.la libdbus_la_LIBADD = $(top_srcdir)/libs/dbus-c++/src/libdbus-c++-1.la
noinst_HEADERS = \ noinst_HEADERS = \
$(GENHEADERS) \
callmanager.h \ callmanager.h \
configurationmanager.h \ configurationmanager.h \
instance.h \ instance.h \
dbusmanager.h \ dbusmanager.h \
dbusmanagerimpl.h dbusmanagerimpl.h \
$(BUILD_SOURCES)
# Dbus service file # Dbus service file
servicedir = $(DBUS_SERVICES_DIR) servicedir = $(DBUS_SERVICES_DIR)
...@@ -42,3 +37,8 @@ service_DATA = $(service_in_files:.service.in=.service) ...@@ -42,3 +37,8 @@ service_DATA = $(service_in_files:.service.in=.service)
# Rule to make the service file with bindir expanded # Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile $(service_DATA): $(service_in_files) Makefile
sed -e "s|bindir|$(prefix)/bin|" $<> $@ sed -e "s|bindir|$(prefix)/bin|" $<> $@
EXTRA_DIST = *.xml README
CLEANFILES= \
$(BUILD_SOURCES)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment