diff options
author | Alexander Larsson <alexl@redhat.com> | 2015-11-26 22:05:38 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2015-11-26 22:05:38 +0100 |
commit | 106a5b06ecb28f4eb0eda9310b28903effe9d381 (patch) | |
tree | 3a30d6cb3a7983f20ee12352c5a5a6e0a7ba684a /common/Makefile.am.inc | |
parent | 49af28893711fbf8eda6bf34651c8b659702e4bf (diff) | |
download | xdg-app-106a5b06ecb28f4eb0eda9310b28903effe9d381.tar.gz |
Rename lib/ to common/ in preparation for public xdg-app library
Diffstat (limited to 'common/Makefile.am.inc')
-rw-r--r-- | common/Makefile.am.inc | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/common/Makefile.am.inc b/common/Makefile.am.inc new file mode 100644 index 0000000..9719ad2 --- /dev/null +++ b/common/Makefile.am.inc @@ -0,0 +1,66 @@ +noinst_LTLIBRARIES += libxdgapp-common.la + +dbus_built_sources = common/xdg-app-dbus.c common/xdg-app-dbus.h +systemd_dbus_built_sources = common/xdg-app-systemd-dbus.c common/xdg-app-systemd-dbus.h +BUILT_SOURCES += $(dbus_built_sources) $(systemd_dbus_built_sources) + +$(dbus_built_sources) : data/org.freedesktop.XdgApp.xml + $(AM_V_GEN) $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop.XdgApp. \ + --c-namespace XdgApp \ + --generate-c-code $(builddir)/common/xdg-app-dbus \ + $(srcdir)/data/org.freedesktop.XdgApp.xml \ + $(NULL) + +$(systemd_dbus_built_sources) : data/org.freedesktop.systemd1.xml + $(AM_V_GEN) $(GDBUS_CODEGEN) \ + --interface-prefix org.freedesktop.systemd1. \ + --c-namespace Systemd \ + --generate-c-code $(builddir)/common/xdg-app-systemd-dbus \ + $(srcdir)/data/org.freedesktop.systemd1.xml \ + $(NULL) + +libxdgapp_common_la_SOURCES = \ + common/xdg-app-dir.c \ + common/xdg-app-dir.h \ + common/xdg-app-run.c \ + common/xdg-app-run.h \ + common/xdg-app-error.c \ + common/xdg-app-error.h \ + common/xdg-app-utils.c \ + common/xdg-app-utils.h \ + common/xdg-app-chain-input-stream.c \ + common/xdg-app-chain-input-stream.h \ + common/gvdb/gvdb-reader.h \ + common/gvdb/gvdb-format.h \ + common/gvdb/gvdb-reader.c \ + common/gvdb/gvdb-builder.h \ + common/gvdb/gvdb-builder.c \ + common/xdg-app-db.c \ + common/xdg-app-db.h \ + $(dbus_built_sources) \ + $(systemd_dbus_built_sources) \ + $(NULL) + +libxdgapp_common_la_CFLAGS = $(AM_CFLAGS) $(BASE_CFLAGS) $(OSTREE_CFLAGS) $(SOUP_CFLAGS) $(XAUTH_CFLAGS) -I$(srcdir)/dbus-proxy +libxdgapp_common_la_LIBADD = libglnx.la $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) $(XAUTH_LIBS) + +bin_PROGRAMS += \ + xdg-app-helper \ + $(NULL) + +xdg_app_helper_SOURCES = common/xdg-app-helper.c +xdg_app_helper_LDADD = $(LIBSECCOMP_LIBS) +xdg_app_helper_CFLAGS = $(LIBSECCOMP_CFLAGS) + +install-exec-hook: +if DISABLE_USERNS +if PRIV_MODE_SETUID + $(SUDO_BIN) chown root $(DESTDIR)$(bindir)/xdg-app-helper + $(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/xdg-app-helper +else +if PRIV_MODE_FILECAPS + $(SUDO_BIN) setcap cap_sys_admin+ep $(DESTDIR)$(bindir)/xdg-app-helper +endif +endif +endif |