2014-12-17 13:05:44 +00:00
|
|
|
NULL =
|
|
|
|
|
2015-01-14 05:36:07 +00:00
|
|
|
if BUILD_DOCUMENTATION
|
|
|
|
SUBDIRS = doc
|
|
|
|
endif
|
|
|
|
|
2014-12-17 13:05:44 +00:00
|
|
|
AM_CPPFLAGS = \
|
2015-01-19 10:14:20 +00:00
|
|
|
-DXDG_APP_BINDIR=\"$(bindir)\" \
|
2015-02-06 10:59:38 +00:00
|
|
|
-DXDG_APP_SYSTEMDIR=\"$(localstatedir)/xdg-app\"\
|
2015-01-19 10:14:20 +00:00
|
|
|
-DXDG_APP_BASEDIR=\"$(pkgdatadir)\" \
|
2015-01-15 20:44:22 +00:00
|
|
|
-DXDG_APP_TRIGGERDIR=\"$(pkgdatadir)/triggers\" \
|
2015-03-06 10:26:07 +00:00
|
|
|
-DSYSTEM_FONTS_DIR=\"$(SYSTEM_FONTS_DIR)\" \
|
2014-12-18 16:51:37 +00:00
|
|
|
-DHELPER=\"$(bindir)/xdg-app-helper\" \
|
2014-12-17 13:05:44 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2015-01-15 20:44:22 +00:00
|
|
|
triggersdir = $(pkgdatadir)/triggers
|
|
|
|
dist_triggers_SCRIPTS = \
|
|
|
|
triggers/gtk-icon-cache.trigger \
|
|
|
|
triggers/mime-database.trigger \
|
|
|
|
triggers/desktop-database.trigger \
|
|
|
|
$(NULL)
|
|
|
|
|
2014-12-17 13:05:44 +00:00
|
|
|
bin_PROGRAMS = \
|
|
|
|
xdg-app-helper \
|
|
|
|
xdg-app \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-01-27 20:59:16 +00:00
|
|
|
libexec_PROGRAMS = \
|
|
|
|
xdg-app-session-helper \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-03-23 08:57:49 +00:00
|
|
|
EXTRA_DIST = xdg-app.gresource.xml xdg-app-dbus-interfaces.xml org.freedesktop.systemd1.xml
|
2015-03-20 14:57:22 +00:00
|
|
|
|
|
|
|
libglnx_srcpath := $(srcdir)/libglnx
|
|
|
|
libglnx_cflags := $(BASE_CFLAGS) "-I$(libglnx_srcpath)"
|
|
|
|
libglnx_libs := $(BASE_LIBS)
|
|
|
|
include libglnx/Makefile-libglnx.am.inc
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libglnx.la
|
|
|
|
|
2014-12-17 13:05:44 +00:00
|
|
|
xdg_app_helper_SOURCES = xdg-app-helper.c
|
|
|
|
|
2015-01-27 20:59:16 +00:00
|
|
|
dbus_built_sources = xdg-app-dbus.c xdg-app-dbus.h
|
2015-03-04 13:40:17 +00:00
|
|
|
systemd_dbus_built_sources = xdg-app-systemd-dbus.c xdg-app-systemd-dbus.h
|
|
|
|
BUILT_SOURCES = $(dbus_built_sources) $(systemd_dbus_built_sources)
|
2015-01-27 20:59:16 +00:00
|
|
|
|
|
|
|
$(dbus_built_sources) : Makefile.am xdg-app-dbus-interfaces.xml
|
|
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
|
|
--interface-prefix org.freedesktop.XdgApp. \
|
|
|
|
--c-namespace XdgApp \
|
|
|
|
--generate-c-code xdg-app-dbus \
|
|
|
|
$(srcdir)/xdg-app-dbus-interfaces.xml \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-03-04 13:40:17 +00:00
|
|
|
$(systemd_dbus_built_sources) : Makefile.am org.freedesktop.systemd1.xml
|
|
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
|
|
--interface-prefix org.freedesktop.systemd1. \
|
|
|
|
--c-namespace Systemd \
|
|
|
|
--generate-c-code xdg-app-systemd-dbus \
|
|
|
|
$(srcdir)/org.freedesktop.systemd1.xml \
|
|
|
|
$(NULL)
|
|
|
|
|
2015-01-27 20:59:16 +00:00
|
|
|
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/xdg-app.gresource.xml)
|
|
|
|
|
|
|
|
xdg-app-resources.h: xdg-app.gresource.xml
|
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
|
|
|
|
--target=$@ --sourcedir=$(srcdir) --c-name _gtk --generate-header
|
|
|
|
|
|
|
|
xdg-app-resources.c: xdg-app.gresource.xml $(resource_files)
|
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \
|
|
|
|
--target=$@ --sourcedir=$(srcdir) --c-name _gtk --generate-source
|
|
|
|
|
|
|
|
# D-BUS service file
|
|
|
|
%.service: %.service.in config.log
|
|
|
|
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
|
|
|
|
|
|
|
|
servicedir = $(DBUS_SERVICE_DIR)
|
|
|
|
service_in_files = xdg-app-session.service.in
|
|
|
|
service_DATA = xdg-app-session.service
|
|
|
|
|
2015-03-23 08:57:49 +00:00
|
|
|
EXTRA_DIST += $(service_in_files)
|
|
|
|
|
2015-01-27 20:59:16 +00:00
|
|
|
xdg_app_session_helper_SOURCES = \
|
|
|
|
xdg-app-session-helper.c \
|
|
|
|
$(dbus_built_sources) \
|
|
|
|
xdg-app-resources.h \
|
|
|
|
xdg-app-resources.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
xdg_app_session_helper_LDADD = $(BASE_LIBS)
|
|
|
|
xdg_app_session_helper_CFLAGS = $(BASE_CFLAGS)
|
|
|
|
|
2014-12-17 13:05:44 +00:00
|
|
|
xdg_app_SOURCES = \
|
|
|
|
xdg-app-main.c \
|
|
|
|
xdg-app-builtins.h \
|
2015-01-20 01:16:00 +00:00
|
|
|
xdg-app-builtins-add-remote.c \
|
|
|
|
xdg-app-builtins-delete-remote.c \
|
|
|
|
xdg-app-builtins-list-remotes.c \
|
2015-01-16 04:25:03 +00:00
|
|
|
xdg-app-builtins-repo-contents.c \
|
2014-12-18 10:06:37 +00:00
|
|
|
xdg-app-builtins-install.c \
|
2015-03-10 15:33:56 +00:00
|
|
|
xdg-app-builtins-make-current.c \
|
2014-12-18 10:37:30 +00:00
|
|
|
xdg-app-builtins-update.c \
|
2015-01-16 05:48:57 +00:00
|
|
|
xdg-app-builtins-uninstall.c \
|
2015-01-15 01:56:25 +00:00
|
|
|
xdg-app-builtins-list.c \
|
2014-12-18 16:51:37 +00:00
|
|
|
xdg-app-builtins-run.c \
|
2015-01-08 15:54:45 +00:00
|
|
|
xdg-app-builtins-build-init.c \
|
2015-01-08 16:50:54 +00:00
|
|
|
xdg-app-builtins-build.c \
|
2015-01-15 18:50:00 +00:00
|
|
|
xdg-app-builtins-build-finish.c \
|
2015-01-16 18:59:34 +00:00
|
|
|
xdg-app-builtins-build-export.c \
|
2015-01-25 02:43:18 +00:00
|
|
|
xdg-app-builtins-repo-update.c \
|
2014-12-18 09:14:46 +00:00
|
|
|
xdg-app-dir.c \
|
|
|
|
xdg-app-dir.h \
|
2015-02-13 09:29:41 +00:00
|
|
|
xdg-app-run.c \
|
|
|
|
xdg-app-run.h \
|
2014-12-18 09:14:46 +00:00
|
|
|
xdg-app-utils.h \
|
|
|
|
xdg-app-utils.c \
|
2015-03-04 13:40:17 +00:00
|
|
|
$(systemd_dbus_built_sources) \
|
2015-01-27 21:33:51 +00:00
|
|
|
$(dbus_built_sources) \
|
2014-12-17 13:05:44 +00:00
|
|
|
$(NULL)
|
2015-01-27 20:59:16 +00:00
|
|
|
|
2015-03-20 14:57:22 +00:00
|
|
|
xdg_app_LDADD = $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) libglnx.la
|
|
|
|
xdg_app_CFLAGS = $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) -I$(srcdir)/libglnx
|
2014-12-17 13:05:44 +00:00
|
|
|
|
2015-01-23 10:51:00 +00:00
|
|
|
install-exec-hook:
|
2015-02-08 22:37:47 +00:00
|
|
|
if PRIV_MODE_SETUID
|
2015-01-13 13:56:14 +00:00
|
|
|
$(SUDO_BIN) chown root $(DESTDIR)$(bindir)/xdg-app-helper
|
|
|
|
$(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/xdg-app-helper
|
2015-02-08 22:37:47 +00:00
|
|
|
else
|
|
|
|
if PRIV_MODE_FILECAPS
|
2015-02-19 13:16:36 +00:00
|
|
|
$(SUDO_BIN) setcap cap_sys_admin+ep $(DESTDIR)$(bindir)/xdg-app-helper
|
2015-02-08 22:37:47 +00:00
|
|
|
endif
|
|
|
|
endif
|
2015-01-23 05:52:20 +00:00
|
|
|
|
|
|
|
completiondir = $(datadir)/bash-completion/completions
|
|
|
|
completion_DATA = completion/xdg-app
|
2015-03-20 14:57:22 +00:00
|
|
|
EXTRA_DIST += $(completion_DATA)
|