Commit 02079da4 authored by Zeeshan Ali's avatar Zeeshan Ali

agent: Move generated agent code to its own directory

parent 80ee0d95
......@@ -24,19 +24,6 @@ if BUILD_DEMO_AGENT
demo_PROGRAMS += agent
endif # BUILD_DEMO_AGENT
interface_data = $(top_srcdir)/src/agent/geoclue-agent-interface.xml
dbus_built_sources = geoclue-agent-interface.c geoclue-agent-interface.h
geoclue-agent-interface.c: geoclue-agent-interface.h
geoclue-agent-interface.h: Makefile.am $(interface_data)
gdbus-codegen \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClue \
--generate-c-code geoclue-agent-interface \
$(interface_data)
BUILT_SOURCES = $(dbus_built_sources) \
$(NULL)
agent_SOURCES = $(BUILT_SOURCES) \
gclue-service-agent.h \
gclue-service-agent.c \
......@@ -47,8 +34,10 @@ agent_CFLAGS = $(DEMO_AGENT_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DABS_SRCDIR=\""$(abs_srcdir)"\" \
-I$(top_builddir)/src \
-I$(top_builddir)/src/agent \
-I$(top_builddir)/src/public-api
agent_LDADD = $(DEMO_AGENT_LIBS)
agent_LDADD = $(DEMO_AGENT_LIBS) \
$(top_builddir)/src/agent/libgeoclue-agent.la
-include $(top_srcdir)/git.mk
......
......@@ -8,10 +8,28 @@ docs-org.freedesktop.GeoClue2.Agent.xml: Makefile.am $(interface_DATA)
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClue \
--generate-docbook=docs \
--generate-c-code geoclue-agent-interface \
$(srcdir)/$(interface_DATA)
noinst_DATA = docs-org.freedesktop.GeoClue2.Agent.xml
CLEANFILES = $(noinst_DATA)
dbus_built_sources = geoclue-agent-interface.c geoclue-agent-interface.h
geoclue-agent-interface.c: geoclue-agent-interface.h
geoclue-agent-interface.h: Makefile.am $(noinst_DATA) $(interface_data)
BUILT_SOURCES = $(dbus_built_sources) \
$(NULL)
AM_CPPFLAGS = $(GEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DG_LOG_DOMAIN=\""Geoclue"\" \
-DABS_TOP_SRCDIR=\""$(abs_top_srcdir)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\"
noinst_LTLIBRARIES = libgeoclue-agent.la
libgeoclue_agent_la_SOURCES = $(BUILT_SOURCES)
CLEANFILES = $(noinst_DATA) $(BUILT_SOURCES)
EXTRA_DIST = $(interface_DATA)
-include $(top_srcdir)/git.mk
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