Commit 1f67238a authored by Zeeshan Ali's avatar Zeeshan Ali

build: Drop autotools

parent 44cf4015
Pipeline #4341 passed with stage
in 13 minutes and 4 seconds
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
NULL =
if BUILD_LIBGEOCLUE
LIBGEOCLUE_DIR = libgeoclue
else
LIBGEOCLUE_DIR =
endif
if BUILD_BACKEND
BACKEND_DIR = src
else
BACKEND_DIR =
endif
SUBDIRS = build-aux public-api $(BACKEND_DIR) data $(LIBGEOCLUE_DIR) demo po docs
INTLTOOL_FILES = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
$(NULL)
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
po/.intltool-merge-cache \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS= \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
EXTRA_DIST = \
.version \
COPYING \
$(INTLTOOL_FILES) \
$(NULL)
MAINTAINERCLEANFILES = \
ABOUT-NLS \
aclocal.m4 \
config.h.in \
build-aux/ar-lib \
build-aux/compile \
build-aux/config.guess \
build-aux/config.rpath \
build-aux/config.sub \
build-aux/depcomp \
build-aux/install-sh \
build-aux/ltmain.sh \
build-aux/missing \
build-aux/mkinstalldirs \
m4/intltool.m4 \
m4/libtool.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4 \
m4/lt~obsolete.m4 \
po/Makefile.in.in \
po/Makevars.template \
po/Rules-quot \
po/boldquot.sed \
po/en@boldquot.header \
po/en@quot.header \
po/insert-header.sin \
po/quot.sed \
po/remove-potcdate.sin \
$(NULL)
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
all:
-include $(top_srcdir)/git.mk
GTESTER = gtester # in $PATH for non-GLIB packages
GTESTER_REPORT = gtester-report # in $PATH for non-GLIB packages
# initialize variables for unconditional += appending
TEST_PROGS =
# test: run all tests in cwd and subdirs
test: ${TEST_PROGS}
@test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS}
@ for subdir in $(SUBDIRS) . ; do \
test "$$subdir" = "." -o "$$subdir" = "po" || \
( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
done
# test-report: run tests in subdirs and generate report
# perf-report: run tests in subdirs with -m perf and generate report
# full-report: like test-report: with -m perf and -m slow
test-report perf-report full-report: ${TEST_PROGS}
@test -z "${TEST_PROGS}" || { \
case $@ in \
test-report) test_options="-k";; \
perf-report) test_options="-k -m=perf";; \
full-report) test_options="-k -m=perf -m=slow";; \
esac ; \
if test -z "$$GTESTER_LOGDIR" ; then \
${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \
elif test -n "${TEST_PROGS}" ; then \
${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
fi ; \
}
@ ignore_logdir=true ; \
if test -z "$$GTESTER_LOGDIR" ; then \
GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
ignore_logdir=false ; \
fi ; \
for subdir in $(SUBDIRS) . ; do \
test "$$subdir" = "." -o "$$subdir" = "po" || \
( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
done ; \
$$ignore_logdir || { \
echo '<?xml version="1.0"?>' > $@.xml ; \
echo '<report-collection>' >> $@.xml ; \
for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
done ; \
echo >> $@.xml ; \
echo '</report-collection>' >> $@.xml ; \
rm -rf "$$GTESTER_LOGDIR"/ ; \
${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
}
.PHONY: test test-report perf-report full-report
# run make test as part of make check
check-local: test
#!/bin/sh
set -e # exit on errors
REQUIRED_AUTOMAKE_VERSION=1.9
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
olddir=$(pwd)
cd $srcdir
PKG_NAME=GeoClue
git submodule update --init --recursive
gtkdocize
autoreconf -v --force --install
intltoolize -f
cd "$olddir"
if [ -z "$NOCONFIGURE" ]; then
"$srcdir"/configure --enable-maintainer-mode --enable-debug ${1+"$@"}
fi
EXTRA_DIST = \
gclue-enums-template.c \
gclue-enums-template.h \
$(NULL)
-include $(top_srcdir)/git.mk
/*** BEGIN file-header ***/
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
static const G@Type@Value @enum_name@_values[] = {
/*** END value-header ***/
/*** BEGIN value-production ***/
{ @VALUENAME@, "@VALUENAME@", "@valuenick@" },
/*** END value-production ***/
/*** BEGIN value-tail ***/
{ 0, NULL, NULL }
};
/* Define type-specific symbols */
#undef __GCLUE_IS_ENUM__
#undef __GCLUE_IS_FLAGS__
#define __GCLUE_IS_@TYPE@__
GType
@enum_name@_get_type (void)
{
static volatile gsize g_define_type_id__volatile = 0;
if (g_once_init_enter (&g_define_type_id__volatile)) {
GType g_define_type_id =
g_@type@_register_static (g_intern_static_string ("@EnumName@"),
@enum_name@_values);
g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
}
return g_define_type_id__volatile;
}
/**
* @enum_name@_get_string:
* @val: a @EnumName@.
*
* Gets the nickname string for the #@EnumName@ specified at @val.
*
* Returns: (transfer none): a string with the nickname, or %NULL if not found. Do not free the returned value.
*/
#if defined __GCLUE_IS_ENUM__
const gchar *
@enum_name@_get_string (@EnumName@ val)
{
guint i;
for (i = 0; @enum_name@_values[i].value_nick; i++) {
if (val == @enum_name@_values[i].value)
return @enum_name@_values[i].value_nick;
}
return NULL;
}
#endif /* __GCLUE_IS_ENUM_ */
/**
* @enum_name@_build_string_from_mask:
* @mask: bitmask of @EnumName@ values.
*
* Builds a string containing a comma-separated list of nicknames for
* each #@EnumName@ in @mask.
*
* Returns: (transfer full): a string with the list of nicknames, or %NULL if none given. The returned value should be freed with g_free().
*/
#if defined __GCLUE_IS_FLAGS__
gchar *
@enum_name@_build_string_from_mask (@EnumName@ mask)
{
guint i;
gboolean first = TRUE;
GString *str = NULL;
for (i = 0; @enum_name@_values[i].value_nick; i++) {
/* We also look for exact matches */
if (mask == @enum_name@_values[i].value) {
if (str)
g_string_free (str, TRUE);
return g_strdup (@enum_name@_values[i].value_nick);
}
/* Build list with single-bit masks */
if (mask & @enum_name@_values[i].value) {
guint c;
gulong number = @enum_name@_values[i].value;
for (c = 0; number; c++)
number &= number - 1;
if (c == 1) {
if (!str)
str = g_string_new ("");
g_string_append_printf (str, "%s%s",
first ? "" : ", ",
@enum_name@_values[i].value_nick);
if (first)
first = FALSE;
}
}
}
return (str ? g_string_free (str, FALSE) : NULL);
}
#endif /* __GCLUE_IS_FLAGS__ */
/*** END value-tail ***/
/*** BEGIN file-tail ***/
/*** END file-tail ***/
/*** BEGIN file-header ***/
#include <glib-object.h>
G_BEGIN_DECLS
/*** END file-header ***/
/*** BEGIN file-production ***/
/* enumerations from "@filename@" */
/*** END file-production ***/
/*** BEGIN value-header ***/
GType @enum_name@_get_type (void) G_GNUC_CONST;
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
/* Define type-specific symbols */
#undef __GCLUE_IS_ENUM__
#undef __GCLUE_IS_FLAGS__
#define __GCLUE_IS_@TYPE@__
#if defined __GCLUE_IS_ENUM__
const gchar *@enum_name@_get_string (@EnumName@ val);
#endif
#if defined __GCLUE_IS_FLAGS__
gchar *@enum_name@_build_string_from_mask (@EnumName@ mask);
#endif
/*** END value-header ***/
/*** BEGIN file-tail ***/
G_END_DECLS
/*** END file-tail ***/
AC_PREREQ([2.63])
AC_INIT([geoclue],
[2.4.10],
[http://bugs.freedesktop.org/enter_bug.cgi?product=GeoClue],
[geoclue],
[http://www.freedesktop.org/wiki/Software/GeoClue])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar foreign -Wall -Werror -Wno-portability])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
AC_SUBST([GEOCLUE_API_VERSION], [2.0])
# Check for programs
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_AR
AC_CHECK_TOOL([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
# Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])
# Pkg-config
PKG_PROG_PKG_CONFIG([0.22])
# i18 support
IT_PROG_INTLTOOL(0.40.0)
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext domain])
GLIB_MIN_VERSION=2.44.0
JSON_GLIB_MIN_VERSION=0.14
LIBMM_GLIB_MIN_VERSION=1.6
LIBSOUP_MIN_VERSION=2.42
AVAHI_MIN_VERSION=0.6.10
AC_CHECK_LIB([m],[sin])
dnl
dnl Documentation
dnl
GTK_DOC_CHECK(1.0)
PKG_CHECK_MODULES(GEOCLUE, [
glib-2.0 >= $GLIB_MIN_VERSION
gio-2.0 >= $GLIB_MIN_VERSION
gio-unix-2.0 >= $GLIB_MIN_VERSION
json-glib-1.0 >= $JSON_GLIB_MIN_VERSION
libsoup-2.4 >= $LIBSOUP_MIN_VERSION
])
# GObject-introspection support
GOBJECT_INTROSPECTION_CHECK([0.9.6])
VAPIGEN_CHECK()
build_introspection=no
# libgeoclue
AC_ARG_ENABLE(libgeoclue,
AS_HELP_STRING([--disable-libgeoclue], [Disable convenience library]),
[build_libgeoclue=$enableval], [build_libgeoclue=yes])
if test "x$build_libgeoclue" = "xyes"; then
PKG_CHECK_MODULES(LIBGEOCLUE, [
glib-2.0 >= $GLIB_MIN_VERSION
gio-2.0 >= $GLIB_MIN_VERSION
gio-unix-2.0 >= $GLIB_MIN_VERSION
])
if test "x$found_introspection" == "xyes"; then
build_introspection=yes
fi
build_libgeoclue=yes
AC_DEFINE([BUILD_LIBGEOCLUE], [1], [Build convenience library?])
else
AC_DEFINE([BUILD_LIBGEOCLUE], [0], [Build convenience library?])
fi
AM_CONDITIONAL([BUILD_LIBGEOCLUE], [test "x$build_libgeoclue" = "xyes"])
# 3G source
AC_ARG_ENABLE(3g-source,
AS_HELP_STRING([--disable-3g-source], [Disable 3G backend (requires ModemManager)]),
[build_3g_source=$enableval], [build_3g_source=yes])
if test "x$build_3g_source" = "xyes"; then
build_modem_source=yes
AC_DEFINE([GCLUE_USE_3G_SOURCE], [1], [Build 3G source?])
else
AC_DEFINE([GCLUE_USE_3G_SOURCE], [0], [Build 3G source?])
fi
AM_CONDITIONAL([BUILD_3G_SOURCE], [test "x$build_3g_source" = "xyes"])
# CDMA source
AC_ARG_ENABLE(cdma-source,
AS_HELP_STRING([--disable-cdma-source], [Disable CDMA backend (requires ModemManager)]),
[build_cdma_source=$enableval], [build_cdma_source=yes])
if test "x$build_cdma_source" = "xyes"; then
build_modem_source=yes
AC_DEFINE([GCLUE_USE_CDMA_SOURCE], [1], [Build CDMA source?])
else
AC_DEFINE([GCLUE_USE_CDMA_SOURCE], [0], [Build CDMA source?])
fi
AM_CONDITIONAL([BUILD_CDMA_SOURCE], [test "x$build_cdma_source" = "xyes"])
# GPS source
AC_ARG_ENABLE(modem-gps-source,
AS_HELP_STRING([--disable-modem-gps-source], [Disable modem GPS backend (requires ModemManager)]),
[build_modem_gps_source=$enableval], [build_modem_gps_source=yes])
if test "x$build_modem_gps_source" = "xyes"; then
build_modem_source=yes
AC_DEFINE([GCLUE_USE_MODEM_GPS_SOURCE], [1], [Build modem GPS source?])
else
AC_DEFINE([GCLUE_USE_MODEM_GPS_SOURCE], [0], [Build modem GPS source?])
fi
AM_CONDITIONAL([BUILD_MODEM_GPS_SOURCE], [test "x$build_modem_gps_source" = "xyes"])
# Modem source is used in common by GPS, 3G and CDMA sources
if test "x$build_modem_source" = "xyes"; then
require_modemmanager=yes
fi
AM_CONDITIONAL([BUILD_MODEM_SOURCE], [test "x$build_modem_source" = "xyes"])
# Network NMEA Source
AC_ARG_ENABLE(nmea-source,
AS_HELP_STRING([--disable-nmea-source],
[Disable network NMEA source (requires avahi-client and avahi-glib)]),
[build_nmea_source=$enableval], [build_nmea_source=yes])
if test "x$build_nmea_source" = "xyes"; then
AC_DEFINE([GCLUE_USE_NMEA_SOURCE], [1], [Build network NMEA source?])
else
AC_DEFINE([GCLUE_USE_NMEA_SOURCE], [0], [Build network NMEA source?])
fi
AM_CONDITIONAL([BUILD_NMEA_SOURCE], [test "x$build_nmea_source" = "xyes"])
# Backend build
AC_ARG_ENABLE(backend,
AS_HELP_STRING([--disable-backend], [Disable backend]),
[build_backend=$enableval], [build_backend=yes])
if test "x$build_backend" = "xyes"; then
# Check for ModemManager if one of the sources requires it
if test "x$require_modemmanager" = "xyes"; then
PKG_CHECK_MODULES(ModemManager, mm-glib >= $LIBMM_GLIB_MIN_VERSION)
fi
if test "x$build_nmea_source" = "xyes"; then
# Check for avahi-client and avahi-glib
PKG_CHECK_MODULES(NMEA_SOURCE, [
avahi-client >= $AVAHI_MIN_VERSION
avahi-glib >= $AVAHI_MIN_VERSION])
fi
AC_DEFINE([BUILD_BACKEND], [1], [Build backend?])
else
AC_DEFINE([BUILD_BACKEND], [0], [Build backend?])
fi
AM_CONDITIONAL([BUILD_BACKEND], [test "x$build_backend" = "xyes"])
# Demo agent
AC_ARG_ENABLE(demo-agent,
AS_HELP_STRING([--enable-demo-agent=yes|no],
[Build demo agent (default=yes)]),
[enable_demo_agent=$enableval],
[enable_demo_agent=yes])
if test "x$enable_demo_agent" = "xyes"; then
PKG_CHECK_MODULES(DEMO_AGENT, [
glib-2.0 >= $GLIB_MIN_VERSION
gio-2.0 >= $GLIB_MIN_VERSION
gio-unix-2.0 >= $GLIB_MIN_VERSION
libnotify])
else
AC_DEFINE([BUILD_DEMO_AGENT], [0], [Build demo agent?])
fi
AM_CONDITIONAL([BUILD_DEMO_AGENT], [test "x$enable_demo_agent" = "xyes"])
GNOME_COMPILE_WARNINGS([maximum])
dnl Debugging
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],[enable debugging]),,
enable_debug=no)
if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -O0 -ggdb3"
fi
# DBus system directory
AC_ARG_WITH(dbus-sys-dir, AS_HELP_STRING([--with-dbus-sys-dir=DIR], [where D-BUS system.d directory is]))
if test -n "$with_dbus_sys_dir" ; then
DBUS_SYS_DIR="$with_dbus_sys_dir"
else
DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
fi
AC_SUBST(DBUS_SYS_DIR)
AC_ARG_WITH(dbus-service-user,
AS_HELP_STRING([--with-dbus-service-user=USER],
[The USER (existing) as which the service will run (default: root)]),
dbus_srv_user="$with_dbus_service_user",
dbus_srv_user="root")
AC_SUBST(dbus_srv_user)
# gdbus-codegen
if test x$cross_compiling != xyes; then
GDBUS_CODEGEN=`$PKG_CONFIG --variable gdbus_codegen gio-2.0`
else
AC_PATH_PROG([GDBUS_CODEGEN],[gdbus-codegen])
fi
AS_IF([test "$GDBUS_CODEGEN" = ""],[
AC_MSG_ERROR([gdbus-codegen not found])
])
# systemd
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[],
[with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != "xno"; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$systemdsystemunitdir"])
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
AC_SUBST(GLIB_MKENUMS)
GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
AC_SUBST(GLIB_GENMARSHAL)
AC_CONFIG_FILES([
Makefile
build-aux/Makefile
src/Makefile
src/geoclue-$GEOCLUE_API_VERSION.pc:src/geoclue.pc.in
src/agent/Makefile
src/geocode-glib/Makefile
public-api/Makefile
po/Makefile.in
data/org.freedesktop.GeoClue2.conf
data/org.freedesktop.GeoClue2.Agent.conf
data/Makefile
libgeoclue/Makefile
libgeoclue/libgeoclue-$GEOCLUE_API_VERSION.pc:libgeoclue/libgeoclue.pc.in
demo/Makefile
docs/Makefile
docs/lib/Makefile
docs/version.xml
docs/lib/version.xml
])
AC_OUTPUT
dnl ==========================================================================
AC_MSG_NOTICE([
GeoClue $VERSION
=================
prefix: ${prefix}
c compiler: ${CC} ${CFLAGS}
systemdsystemunitdir: ${systemdsystemunitdir}
Backend: ${build_backend}
Convenience library: ${build_libgeoclue}
Introspection: ${build_introspection}
3G source: ${build_3g_source}
CDMA source: ${build_cdma_source}
Modem GPS source: ${build_modem_gps_source}
Network NMEA source: ${build_nmea_source}
])
service_in_files = org.freedesktop.GeoClue2.service.in
systemconf_in_files = geoclue.conf.in
systemdservice_in_files = geoclue.service.in
if BUILD_BACKEND
systemconfdir = $(sysconfdir)/geoclue
systemconf_DATA = $(systemconf_in_files:.conf.in=.conf)
if BUILD_DEMO_AGENT
$(systemconf_DATA): $(systemconf_in_files) Makefile
@sed -e \
"s|\@demo_agent\@|geoclue-demo-agent;|" \
$< > $@
else
$(systemconf_DATA): $(systemconf_in_files) Makefile
@sed -e "s|\@demo_agent\@||" $< > $@
endif
servicedir = $(datadir)/dbus-1/system-services
service_DATA = $(service_in_files:.service.in=.service)
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< | \
sed -e "s|\@dbus_srv_user\@|$(dbus_srv_user)|" > $@
# DBus Service policy file
dbusservicedir = $(DBUS_SYS_DIR)
dbusservice_DATA = org.freedesktop.GeoClue2.conf \
org.freedesktop.GeoClue2.Agent.conf
if HAVE_SYSTEMD
systemdservicedir = $(systemdsystemunitdir)
systemdservice_DATA = $(systemdservice_in_files:.service.in=.service)
$(systemdservice_DATA): $(systemdservice_in_files) Makefile
@sed -e "s|\@libexecdir\@|$(libexecdir)|" $< | \
sed -e "s|\@dbus_srv_user\@|$(dbus_srv_user)|" > $@
endif
endif
DISTCLEANFILES = $(service_DATA) \
$(systemconf_DATA) \
$(dbusservice_DATA) \
$(systemdservice_DATA)
EXTRA_DIST = $(service_in_files) \
$(systemdservice_in_files) \
$(systemconf_in_files)
-include $(top_srcdir)/git.mk
demodir = $(libexecdir)/geoclue-2.0/demos
if BUILD_LIBGEOCLUE
demo_PROGRAMS = where-am-i
else
demo_PROGRAMS =
endif
where_am_i_SOURCES = where-am-i.c
where_am_i_CFLAGS = $(GEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-I$(top_srcdir)/libgeoclue \
-I$(top_builddir)/libgeoclue \
-I$(top_srcdir)/public-api \
-I$(top_builddir)/public-api
where_am_i_LDADD = $(GEOCLUE_LIBS) \
../libgeoclue/libgeoclue-2.la
appsdir = $(datadir)/applications
apps_DATA = geoclue-where-am-i.desktop
if BUILD_DEMO_AGENT
apps_DATA += geoclue-demo-agent.desktop
autostartdir = $(sysconfdir)/xdg/autostart
autostart_DATA = geoclue-demo-agent.desktop
endif
@INTLTOOL_DESKTOP_RULE@
geoclue-where-am-i.desktop.in: geoclue-where-am-i.desktop.in.in
$(AM_V_GEN) sed -e "s|[@]libexecdir@|$(libexecdir)|g" $< > $@
geoclue-demo-agent.desktop.in: geoclue-demo-agent.desktop.in.in
$(AM_V_GEN) sed -e "s|[@]libexecdir@|$(libexecdir)|g" $< > $@
if BUILD_DEMO_AGENT
demo_PROGRAMS += agent
endif # BUILD_DEMO_AGENT
agent_SOURCES = $(BUILT_SOURCES) \
gclue-service-agent.h \
gclue-service-agent.c \
agent.c \
$(NULL)
agent_CFLAGS = $(DEMO_AGENT_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DABS_SRCDIR=\""$(abs_srcdir)"\" \
-I$(top_builddir)/src \
-I$(top_srcdir)/src \
-I$(top_builddir)/src/agent \
-I$(top_srcdir)/src/agent \
-I$(top_builddir)/public-api \
-I$(top_srcdir)/public-api
agent_LDADD = $(DEMO_AGENT_LIBS) \
$(top_builddir)/src/agent/libgeoclue-agent.la
-include $(top_srcdir)/git.mk
EXTRA_DIST = \
geoclue-demo-agent.desktop.in.in \
geoclue-where-am-i.desktop.in.in \
$(NULL)
DISTCLEANFILES = \
geoclue-demo-agent.desktop \
geoclue-demo-agent.desktop.in \
geoclue-where-am-i.desktop \
geoclue-where-am-i.desktop.in \
$(NULL)
NULL =
AUTOMAKE_OPTIONS = 1.7
SUBDIRS = . lib
# The name of the module.
DOC_MODULE=geoclue
# The top-level SGML file.
DOC_MAIN_SGML_FILE=geoclue-docs.xml
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--ignore-headers=config.h --rebuild-sections --rebuild-types
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=$(top_srcdir)/public-api
# Used for dependencies
HFILE_GLOB=
CFILE_GLOB=
# Headers to ignore
IGNORE_HFILES= \
$(NULL)
GTKDOC_LIBS = $(top_builddir)/public-api/libgeoclue-public-api.la
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS=
# Extra options to supply to gtkdoc-mkhtml
MKHTML_OPTIONS=--path="$(top_srcdir)"
docs-org.freedesktop.GeoClue2.Manager.xml:
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Manager.xml .
docs-org.freedesktop.GeoClue2.Client.xml:
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Client.xml .
docs-org.freedesktop.GeoClue2.Location.xml:
cp $(top_builddir)/src/docs-org.freedesktop.GeoClue2.Location.xml .
docs-org.freedesktop.GeoClue2.Agent.xml:
cp $(top_builddir)/src/agent/docs-org.freedesktop.GeoClue2.Agent.xml .
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files = \
version.xml \
docs-org.freedesktop.GeoClue2.Manager.xml \
docs-org.freedesktop.GeoClue2.Client.xml \
docs-org.freedesktop.GeoClue2.Location.xml \