...
 
Commits (5)
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 \
docs-org.freedesktop.GeoClue2.Agent.xml \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in \
geoclue.types \
geoclue-*.txt \
$(NULL)
if ENABLE_GTK_DOC
include $(top_srcdir)/gtk-doc.make
else
CLEANFILES = $(NULL)
EXTRA_DIST = geoclue-docs.xml
endif
CLEANFILES += \
docs-org.freedesktop.GeoClue2.Manager.xml \
docs-org.freedesktop.GeoClue2.Client.xml \
docs-org.freedesktop.GeoClue2.Location.xml \
docs-org.freedesktop.GeoClue2.Agent.xml \
$(NULL)
# Version information for marking the documentation
EXTRA_DIST += version.xml.in
-include $(top_srcdir)/git.mk
NULL =
AUTOMAKE_OPTIONS = 1.7
# The name of the module.
DOC_MODULE=libgeoclue
# The top-level SGML file.
DOC_MAIN_SGML_FILE=libgeoclue-docs.xml
# Extra options to supply to gtkdoc-scan
SCAN_OPTIONS=--ignore-headers=config.h --rebuild-types
# The directory containing the source code. Relative to $(srcdir)
DOC_SOURCE_DIR=../../libgeoclue ../../public-api
# Used for dependencies
HFILE_GLOB=
CFILE_GLOB=
# Headers to ignore
IGNORE_HFILES= \
$(NULL)
GTKDOC_LIBS = $(top_builddir)/libgeoclue/libgeoclue-2.la
# Extra options to supply to gtkdoc-mkdb
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
MKTMPL_OPTIONS=
# Non-autogenerated SGML files to be included in $(DOC_MAIN_SGML_FILE)
content_files = \
version.xml \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in \
libgeoclue.types \
libgeoclue-decl-list.txt \
libgeoclue-decl.txt \
libgeoclue-overrides.txt \
libgeoclue-undeclared.txt \
libgeoclue-undocumented.txt \
libgeoclue-overrides.txt \
libgeoclue-unused.txt \
libgeoclue.args \
libgeoclue.hierarchy \
libgeoclue.interfaces \
libgeoclue.prerequisites \
libgeoclue.signals \
$(NULL)
if ENABLE_GTK_DOC
include $(top_srcdir)/gtk-doc.make
else
CLEANFILES = $(NULL)
EXTRA_DIST = libgeoclue-docs.xml
endif
# Version information for marking the documentation
EXTRA_DIST += version.xml.in
-include $(top_srcdir)/git.mk
subdir('lib')
if get_option('libgeoclue')
subdir('lib')
endif
conf = configuration_data()
conf.set_quoted('VERSION', gclue_version)
......@@ -18,7 +20,7 @@ gnome.gtkdoc('geoclue',
main_xml: 'geoclue-docs.xml',
content_files: content_files,
scan_args: scan_options,
src_dir: 'public-api',
src_dir: libgeoclue_public_api_inc,
mkdb_args: mkdb_options,
dependencies: libgeoclue_dep,
dependencies: [base_deps, libgeoclue_public_api_dep],
install: true)
This diff is collapsed.
include $(top_srcdir)/Makefile.decl
CLIENT_INTERFACE_XML = $(top_srcdir)/src/org.freedesktop.GeoClue2.Client.xml
LOCATION_INTERFACE_XML = $(top_srcdir)/src/org.freedesktop.GeoClue2.Location.xml
MANAGER_INTERFACE_XML = $(top_srcdir)/src/org.freedesktop.GeoClue2.Manager.xml
dbus_built_sources = gclue-client.c \
gclue-client.h \
gclue-location.c \
gclue-location.h \
gclue-manager.c \
gclue-manager.h
gclue-client.c: gclue-client.h
gclue-client.h: Makefile.am $(CLIENT_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClue \
--generate-c-code gclue-client \
$(CLIENT_INTERFACE_XML)
gclue-location.c: gclue-location.h
gclue-location.h: Makefile.am $(LOCATION_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClue \
--generate-c-code gclue-location \
$(LOCATION_INTERFACE_XML)
gclue-manager.c: gclue-manager.h
gclue-manager.h: Makefile.am $(MANAGER_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClue \
--generate-c-code gclue-manager \
$(MANAGER_INTERFACE_XML)
BUILT_SOURCES = \
$(dbus_built_sources) \
$(NULL)
lib_LTLIBRARIES = libgeoclue-2.la
geoclue_includedir = $(includedir)/libgeoclue-$(GEOCLUE_API_VERSION)
geoclue_include_HEADERS = geoclue.h \
gclue-client.h \
gclue-location.h \
gclue-manager.h \
gclue-helpers.h \
gclue-simple.h \
$(NULL)
AM_CPPFLAGS = $(LIBGEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DG_LOG_DOMAIN=\""Geoclue"\" \
-DABS_TOP_SRCDIR=\""$(abs_top_srcdir)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-I$(top_srcdir)/public-api \
-I$(top_builddir)/public-api
ENUMS_HEADER = $(top_srcdir)/public-api/gclue-enums.h
ENUMS_LIB = $(top_builddir)/public-api/libgeoclue-public-api.la
libgeoclue_2_la_SOURCES = \
gclue-client.c \
gclue-location.c \
gclue-manager.c \
gclue-helpers.c \
gclue-simple.c \
$(NULL)
libgeoclue_2_la_LIBADD = \
$(LIBGEOCLUE_LIBS) \
$(LIBS) \
$(ENUMS_LIB) \
$(NULL)
CLEANFILES = $(BUILT_SOURCES) \
$(NULL)
if HAVE_INTROSPECTION
girdir = $(datadir)/gir-1.0
gir_DATA = Geoclue-2.0.gir
typelibsdir = $(libdir)/girepository-1.0
typelibs_DATA = Geoclue-2.0.typelib
Geoclue-2.0.gir: $(libgeoclue_2_la_SOURCES) $(geoclue_include_HEADERS)
$(AM_V_GEN) env CPPFLAGS="$(CPPFLAGS)" \
CFLAGS="$(CFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
CC="$(CC)" \
PKG_CONFIG="$(PKG_CONFIG)" \
DLLTOOL="$(DLLTOOL)" \
$(INTROSPECTION_SCANNER) -v \
--warn-all \
--namespace Geoclue \
--identifier-prefix=GClue \
--symbol-prefix=gclue \
--nsversion=2.0 \
--include=Gio-2.0 \
--library=libgeoclue-2.la \
--output $@ \
--pkg=glib-2.0 \
--pkg=gobject-2.0 \
--pkg=gio-2.0 \
--pkg-export=libgeoclue-2.0 \
--libtool="${LIBTOOL}" \
-I$(srcdir) \
-I$(top_srcdir)/public-api \
-I$(top_builddir)/public-api \
--c-include='geoclue.h' \
$^ \
$(ENUMS_HEADER) \
$(NULL)
Geoclue-2.0.gir: libgeoclue-2.la $(INTROSPECTION_SCANNER) Makefile.am
Geoclue-2.0.typelib: Geoclue-2.0.gir $(INTROSPECTION_COMPILER)
$(INTROSPECTION_COMPILER) $< -o $@
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
if ENABLE_VAPIGEN
-include $(VAPIGEN_MAKEFILE)
libgeoclue-2.0.vapi: Geoclue-2.0.gir libgeoclue-2.0.deps
VAPIGEN_VAPIS = libgeoclue-2.0.vapi
libgeoclue_2_0_vapi_DEPS = glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0
libgeoclue_2_0_vapi_FILES = Geoclue-2.0.gir
vapidir = $(datadir)/vala/vapi
vapi_DATA = $(VAPIGEN_VAPIS) $(VAPIGEN_VAPIS:.vapi=.deps)
EXTRA_DIST = libgeoclue-2.0.deps
endif
endif # HAVE_INTROSPECTION
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgeoclue-$(GEOCLUE_API_VERSION).pc
DISTCLEANFILES = $(pkgconfig_DATA)
-include $(top_srcdir)/git.mk
......@@ -53,3 +53,32 @@ subdir('po')
if get_option('gtk-doc')
subdir('docs')
endif
# FIXME: Remove this once meson does it itself: https://github.com/mesonbuild/meson/issues/757
summary = '''
GeoClue @0@
=================
prefix: @1@
c compiler: @2@
Systemd system unit dir: @3@
Backend: @4@
Convenience library: @5@
Introspection: @6@
3G source: @7@
CDMA source: @8@
Modem GPS source: @9@
Network NMEA source: @10@
'''.format(gclue_version,
get_option('prefix'),
cc.get_id(),
systemd_unit_dir,
get_option('enable-backend'),
get_option('libgeoclue'),
get_option('introspection'),
get_option('3g-source'),
get_option('cdma-source'),
get_option('modem-gps-source'),
get_option('nmea-source'))
message(summary)
include $(top_srcdir)/Makefile.decl
BUILT_SOURCES = \
gclue-enum-types.h \
gclue-enum-types.c \
$(NULL)
geoclue_includedir = $(includedir)/libgeoclue-$(GEOCLUE_API_VERSION)
geoclue_include_HEADERS = gclue-enums.h \
gclue-enum-types.h \
$(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-public-api.la
libgeoclue_public_api_la_SOURCES = $(BUILT_SOURCES)
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = gclue-enums.h
# Enum types
GEOCLUE_ENUMS = \
$(srcdir)/gclue-enums.h
gclue-enum-types.h: Makefile.am $(GEOCLUE_ENUMS) $(top_srcdir)/build-aux/gclue-enums-template.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"gclue-enums.h\"\n#ifndef __GCLUE_ENUM_TYPES_H__\n#define __GCLUE_ENUM_TYPES_H__\n" \
--template $(top_srcdir)/build-aux/gclue-enums-template.h \
--ftail "#endif /* __GCLUE_ENUM_TYPES_H__ */\n" \
$(GEOCLUE_ENUMS) > $@
gclue-enum-types.c: Makefile.am $(top_srcdir)/build-aux/gclue-enums-template.c gclue-enum-types.h
$(AM_V_GEN) $(GLIB_MKENUMS) \
--fhead "#include \"gclue-enum-types.h\"" \
--template $(top_srcdir)/build-aux/gclue-enums-template.c \
$(GEOCLUE_ENUMS) > $@
-include $(top_srcdir)/git.mk
......@@ -16,3 +16,6 @@ libgeoclue_public_api = static_library('geoclue-public-api',
libgeoclue_public_api_gen_sources,
dependencies: base_deps,
install: false)
libgeoclue_public_api_dep = declare_dependency(sources: libgeoclue_public_api_gen_sources,
link_whole: libgeoclue_public_api)
include $(top_srcdir)/Makefile.decl
libexec_PROGRAMS = geoclue
SUBDIRS = agent geocode-glib
CLIENT_INTERFACE_XML = org.freedesktop.GeoClue2.Client.xml
LOCATION_INTERFACE_XML = org.freedesktop.GeoClue2.Location.xml
MANAGER_INTERFACE_XML = org.freedesktop.GeoClue2.Manager.xml
interfacedir = $(datadir)/dbus-1/interfaces
interface_DATA = $(CLIENT_INTERFACE_XML) \
$(LOCATION_INTERFACE_XML) \
$(MANAGER_INTERFACE_XML)
# Provide a single interface file too for backwards compatiblity.
# At least gnome-settings-daemon currently relies on that.
install-data-hook:
{ (echo "<node>") && \
(tail -n +10 $(DESTDIR)$(interfacedir)/$(MANAGER_INTERFACE_XML) | \
grep -v node) && \
(tail -n +10 $(DESTDIR)$(interfacedir)/$(CLIENT_INTERFACE_XML) | \
grep -v node) && \
(tail -n +10 $(DESTDIR)$(interfacedir)/$(LOCATION_INTERFACE_XML) | \
grep -v node) && \
(echo "</node>") } \
> $(DESTDIR)$(interfacedir)/org.freedesktop.GeoClue2.xml
uninstall-hook:
rm -r $(DESTDIR)$(interfacedir)/org.freedesktop.GeoClue2.xml
dbus_built_sources = gclue-client-interface.c \
gclue-client-interface.h \
gclue-location-interface.c \
gclue-location-interface.h \
gclue-manager-interface.c \
gclue-manager-interface.h \
compass-interface.c \
compass-interface.h \
wpa_supplicant-interface.c \
wpa_supplicant-interface.h
gclue-client-interface.c: gclue-client-interface.h
gclue-client-interface.h: Makefile.am $(CLIENT_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClueDBus \
--generate-c-code gclue-client-interface \
--generate-docbook=docs \
$(srcdir)/$(CLIENT_INTERFACE_XML)
gclue-location-interface.c: gclue-location-interface.h
gclue-location-interface.h: Makefile.am $(LOCATION_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClueDBus \
--generate-c-code gclue-location-interface \
--generate-docbook=docs \
$(srcdir)/$(LOCATION_INTERFACE_XML)
gclue-manager-interface.c: gclue-manager-interface.h
gclue-manager-interface.h: Makefile.am $(MANAGER_INTERFACE_XML)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix org.freedesktop.GeoClue2. \
--c-namespace GClueDBus \
--generate-c-code gclue-manager-interface \
--generate-docbook=docs \
$(srcdir)/$(MANAGER_INTERFACE_XML)
wpa_supplicant-interface.c: wpa_supplicant-interface.h
wpa_supplicant-interface.h: Makefile.am fi.w1.wpa_supplicant1.xml
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix fi.w1 \
--annotate "fi.w1.wpa_supplicant1" \
org.gtk.GDBus.C.Name WPA_Supplicant \
--annotate "fi.w1.wpa_supplicant1.Interface" \
org.gtk.GDBus.C.Name WPA_Interface \
--annotate "fi.w1.wpa_supplicant1.BSS" \
org.gtk.GDBus.C.Name WPA_BSS \
--annotate "fi.w1.wpa_supplicant1.BSS:SSID" \
org.gtk.GDBus.C.ForceGVariant whatever \
--annotate "fi.w1.wpa_supplicant1.BSS:BSSID" \
org.gtk.GDBus.C.ForceGVariant whatever \
--annotate "fi.w1.wpa_supplicant1.Interface::BSSAdded" \
org.gtk.GDBus.C.Name BSS_Added \
--annotate "fi.w1.wpa_supplicant1.Interface::BSSRemoved" \
org.gtk.GDBus.C.Name BSS_Removed \
--generate-c-code wpa_supplicant-interface \
$(srcdir)/fi.w1.wpa_supplicant1.xml
compass-interface.c: compass-interface.h
compass-interface.h: Makefile.am net.hadess.SensorProxy.xml
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--interface-prefix net.hadess.SensorProxy \
--generate-c-code compass-interface \
$(srcdir)/net.hadess.SensorProxy.xml
gclue-marshal.c: gclue-marshal.list
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gclue_marshal $(srcdir)/gclue-marshal.list --header --body > gclue-marshal.c
gclue-marshal.h: gclue-marshal.list
$(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=gclue_marshal $(srcdir)/gclue-marshal.list --header > gclue-marshal.h
BUILT_SOURCES = \
$(dbus_built_sources) \
gclue-marshal.c \
gclue-marshal.h \
$(NULL)
noinst_LTLIBRARIES = libgeoclue-internal.la
AM_CPPFLAGS = $(GEOCLUE_CFLAGS) \
$(ModemManager_CFLAGS) \
$(NMEA_SOURCE_CFLAGS) \
$(WARN_CFLAGS) \
-DLOCALEDIR="\"$(datadir)/locale\"" \
-DG_LOG_DOMAIN=\""Geoclue"\" \
-DABS_TOP_SRCDIR=\""$(abs_top_srcdir)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-I$(srcdir)/agent \
-I$(builddir)/agent \
-I$(top_srcdir)/public-api \
-I$(top_builddir)/public-api
libgeoclue_internal_la_SOURCES = \
$(BUILT_SOURCES) \
gclue-3g-tower.h \
gclue-client-info.h \
gclue-client-info.c \
gclue-compass.h \
gclue-compass.c \
gclue-config.h \
gclue-config.c \
gclue-error.h \
gclue-error.c \
gclue-location-source.h \
gclue-location-source.c \
gclue-locator.h \
gclue-locator.c \
gclue-min-uint.h \
gclue-min-uint.c \
gclue-service-manager.h \
gclue-service-manager.c \
gclue-service-client.h \
gclue-service-client.c \
gclue-service-location.h \
gclue-service-location.c \
gclue-web-source.c \
gclue-web-source.h \
gclue-wifi.h \
gclue-wifi.c \
gclue-mozilla.h \
gclue-mozilla.c \
gclue-location.h \
gclue-location.c \
$(NULL)
if BUILD_MODEM_SOURCE
libgeoclue_internal_la_SOURCES += gclue-modem.c \
gclue-modem.h \
gclue-modem-manager.c \
gclue-modem-manager.h
endif
if BUILD_3G_SOURCE
libgeoclue_internal_la_SOURCES += gclue-3g.c gclue-3g.h
endif
if BUILD_CDMA_SOURCE
libgeoclue_internal_la_SOURCES += gclue-cdma.c gclue-cdma.h
endif
if BUILD_MODEM_GPS_SOURCE
libgeoclue_internal_la_SOURCES += gclue-modem-gps.c gclue-modem-gps.h
endif
if BUILD_NMEA_SOURCE
libgeoclue_internal_la_SOURCES += gclue-nmea-source.h gclue-nmea-source.c
endif
libgeoclue_internal_la_LIBADD = \
$(GEOCLUE_LIBS) \
$(ModemManager_LIBS) \
$(NMEA_SOURCE_LIBS) \
$(LIBS) \
$(NULL)
geoclue_SOURCES = \
gclue-main.c \
$(NULL)
geoclue_LDADD = $(GEOCLUE_LIBS) \
$(LIBS) \
$(builddir)/libgeoclue-internal.la \
$(builddir)/agent/libgeoclue-agent.la \
$(builddir)/geocode-glib/libgeocode-glib.la \
$(top_builddir)/public-api/libgeoclue-public-api.la
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(interface_DATA) \
fi.w1.wpa_supplicant1.xml \
net.hadess.SensorProxy.xml \
gclue-marshal.list
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = geoclue-$(GEOCLUE_API_VERSION).pc
DISTCLEANFILES = $(pkgconfig_DATA)
-include $(top_srcdir)/git.mk
include $(top_srcdir)/Makefile.decl
interfacedir = $(datadir)/dbus-1/interfaces
interface_DATA = org.freedesktop.GeoClue2.Agent.xml
docs-org.freedesktop.GeoClue2.Agent.xml: Makefile.am $(interface_DATA)
$(AM_V_GEN)$(GDBUS_CODEGEN) \
--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
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
include $(top_srcdir)/Makefile.decl
noinst_LTLIBRARIES = libgeocode-glib.la
AM_CPPFLAGS = $(GEOCLUE_CFLAGS) \
$(WARN_CFLAGS) \
-DGEOCODE_LOCALEDIR="\"$(datadir)/locale\"" \
-DG_LOG_DOMAIN=\""Geoclue"\" \
-DABS_TOP_SRCDIR=\""$(abs_top_srcdir)"\" \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
-DPACKAGE_VERSION=\"@PACKAGE_VERSION@\" \
-I$(top_srcdir)/src \
-I$(top_builddir)/src
libgeocode_glib_la_SOURCES = \
geocode-location.h \
geocode-location.c \
geocode-forward.h \
geocode-forward.c \
geocode-reverse.h \
geocode-reverse.c \
geocode-glib.h \
geocode-glib.c \
geocode-error.h \
geocode-error.c \
geocode-enum-types.h \
geocode-enum-types.c \
geocode-place.h \
geocode-place.c \
geocode-bounding-box.h \
geocode-bounding-box.c \
geocode-glib-private.h \
$(NULL)
libgeocode_glib_la_LIBADD = $(GEOCLUE_LIBS) $(LIBS)
GEOCODEGLIBDIR=$(top_srcdir)/../geocode-glib/geocode-glib/
GEOCODEGLIBFILES=$(libgeocode_glib_la_SOURCES)
update-from-geocode-glib:
FILES="$(GEOCODEGLIBFILES)" DIR="$(GEOCODEGLIBDIR)" $(srcdir)/update-from-geocode-glib.sh && changed=true ; \
git commit -m "location: Update from geocode-glib" $(GEOCODEGLIBFILES)
-include $(top_srcdir)/git.mk