Build bwrap

tingping/wmclass
Alexander Larsson 2016-04-29 11:39:30 +02:00
parent 27642b3d6d
commit ee7be7f82d
4 changed files with 19 additions and 1 deletions

1
.gitignore vendored
View File

@ -77,3 +77,4 @@ po/.intltool-merge-cache
po/Makefile.in.in
po/POTFILES
system-helper/org.freedesktop.XdgApp.policy
bwrap

View File

@ -73,6 +73,22 @@ include document-portal/Makefile.am.inc
include Makefile.gtester
include tests/Makefile.am.inc
bwrap_PROGRAMS = bwrap
bwrapdir = $(libdir)/xdg-app
include bubblewrap/Makefile-bwrap.am.inc
# NOTE: bwrap is install-bwrapPROGS which is run from install-data, not install-exec, this data-hook is used
install-data-hook:
$(MAKE) $(AM_MAKEFLAGS) install-test-data-hook
if PRIV_MODE_SETUID
$(SUDO_BIN) chown root $(DESTDIR)$(libdir)/xdg-app/bwrap
$(SUDO_BIN) chmod u+s $(DESTDIR)$(libdir)/xdg-app/bwrap
else
if PRIV_MODE_FILECAPS
$(SUDO_BIN) setcap cap_sys_admin,cap_net_admin,cap_sys_chroot+ep $(DESTDIR)$(libdir)/xdg-app/bwrap
endif
endif
completiondir = $(datadir)/bash-completion/completions
completion_DATA = completion/xdg-app
EXTRA_DIST += $(completion_DATA)

View File

@ -23,6 +23,7 @@ if ! test -f libglnx/README.md; then
fi
# Workaround automake bug with subdir-objects and computed paths
sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
sed -e 's,$(bwrap_srcpath),'${srcdir}/bubblewrap,g < bubblewrap/Makefile-bwrap.am >bubblewrap/Makefile-bwrap.am.inc
GTKDOCIZE=$(which gtkdocize 2>/dev/null)
if test -z $GTKDOCIZE; then

View File

@ -34,7 +34,7 @@ tests/services/org.freedesktop.XdgApp.service: session-helper/org.freedesktop.Xd
tests/libtest.sh: tests/services/org.freedesktop.portal.Documents.service tests/services/org.freedesktop.XdgApp.service
install-data-hook:
install-test-data-hook:
if ENABLE_INSTALLED_TESTS
mkdir -p $(DESTDIR)$(installed_testdir)/services
ln -sf $(dbus_servicedir)/org.freedesktop.XdgApp.service $(DESTDIR)$(installed_testdir)/services/