summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2018-02-09 10:27:10 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-09 10:58:18 +0000
commitb95c949aa6774e1c7284e932aa71e1055ab25186 (patch)
treeac0b3bc4bd6dd34ebf8bddc3ea5e421b992cd370
parent09ce71840372a9d293612bf4e7285d226cacd171 (diff)
downloadflatpak-b95c949aa6774e1c7284e932aa71e1055ab25186.tar.gz
Add --disable-document-portal configure option
This disallows the installation of the document portal and this option should be used when building the 0.10.x branch in combination with the new xdg-desktop-portal release that contains the document portal. Closes: #1400 Approved by: alexlarsson
-rw-r--r--configure.ac8
-rw-r--r--data/Makefile.am.inc7
-rw-r--r--document-portal/Makefile.am.inc7
-rw-r--r--permission-store/Makefile.am.inc7
-rw-r--r--tests/Makefile.am.inc8
5 files changed, 28 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index c3914f31..023b0c1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,6 +220,13 @@ if test "x$enable_sandboxed_triggers" = "xno"; then
[Define if sandboxed triggers are disabled])
fi
+AC_ARG_ENABLE([document-portal],
+ AC_HELP_STRING([--disable-document-portal],
+ [Disable document portal]),
+ [],
+ [enable_document_portal=yes])
+AM_CONDITIONAL(ENABLE_DOCUMENT_PORTAL, test "x$enable_document_portal" = "xyes")
+
PKG_CHECK_MODULES(OSTREE, [ostree-1 >= $OSTREE_REQS])
PKG_CHECK_MODULES(FUSE, [fuse])
@@ -444,6 +451,7 @@ echo " ============="
echo ""
echo " Build system helper: $enable_system_helper"
echo " Build bubblewrap: $build_bwrap"
+echo " Build document portal: $enable_document_portal"
echo " Use sandboxed triggers: $enable_sandboxed_triggers"
echo " Use seccomp: $enable_seccomp"
echo " Privileged group: $PRIVILEGED_GROUP"
diff --git a/data/Makefile.am.inc b/data/Makefile.am.inc
index 71e514e6..34aa2b67 100644
--- a/data/Makefile.am.inc
+++ b/data/Makefile.am.inc
@@ -1,9 +1,14 @@
introspectiondir = $(datadir)/dbus-1/interfaces
introspection_DATA = \
+ data/org.freedesktop.Flatpak.xml \
+ $(NULL)
+
+if ENABLE_DOCUMENT_PORTAL
+introspection_DATA += \
data/org.freedesktop.impl.portal.PermissionStore.xml \
data/org.freedesktop.portal.Documents.xml \
- data/org.freedesktop.Flatpak.xml \
$(NULL)
+endif
EXTRA_DIST += \
data/org.freedesktop.portal.Documents.xml \
diff --git a/document-portal/Makefile.am.inc b/document-portal/Makefile.am.inc
index f011ccdf..4015a693 100644
--- a/document-portal/Makefile.am.inc
+++ b/document-portal/Makefile.am.inc
@@ -1,6 +1,10 @@
+if ENABLE_DOCUMENT_PORTAL
libexec_PROGRAMS += \
xdg-document-portal \
$(NULL)
+systemduserunit_DATA += document-portal/xdg-document-portal.service
+dbus_service_DATA += document-portal/org.freedesktop.portal.Documents.service
+endif
xdp_dbus_built_sources = document-portal/xdp-dbus.c document-portal/xdp-dbus.h
BUILT_SOURCES += $(xdp_dbus_built_sources)
@@ -20,10 +24,7 @@ document-portal/%-dbus.h: document-portal/%-dbus.c
@true # Built as a side-effect of the rules for the .c
service_in_files += document-portal/xdg-document-portal.service.in
-systemduserunit_DATA += document-portal/xdg-document-portal.service
-
service_in_files += document-portal/org.freedesktop.portal.Documents.service.in
-dbus_service_DATA += document-portal/org.freedesktop.portal.Documents.service
nodist_xdg_document_portal_SOURCES = \
$(xdp_dbus_built_sources) \
diff --git a/permission-store/Makefile.am.inc b/permission-store/Makefile.am.inc
index 023aad31..6043be09 100644
--- a/permission-store/Makefile.am.inc
+++ b/permission-store/Makefile.am.inc
@@ -1,12 +1,13 @@
+if ENABLE_DOCUMENT_PORTAL
+systemduserunit_DATA += permission-store/xdg-permission-store.service
+dbus_service_DATA += permission-store/org.freedesktop.impl.portal.PermissionStore.service
libexec_PROGRAMS += \
xdg-permission-store \
$(NULL)
+endif
service_in_files += permission-store/xdg-permission-store.service.in
-systemduserunit_DATA += permission-store/xdg-permission-store.service
-
service_in_files += permission-store/org.freedesktop.impl.portal.PermissionStore.service.in
-dbus_service_DATA += permission-store/org.freedesktop.impl.portal.PermissionStore.service
nodist_xdg_permission_store_SOURCES = permission-store/permission-store-dbus.c permission-store/permission-store-dbus.h
BUILT_SOURCES += $(nodist_xdg_permission_store_SOURCES)
diff --git a/tests/Makefile.am.inc b/tests/Makefile.am.inc
index 2aef5d5a..85e5ed2e 100644
--- a/tests/Makefile.am.inc
+++ b/tests/Makefile.am.inc
@@ -60,7 +60,7 @@ tests/services/org.freedesktop.Flatpak.SystemHelper.service: system-helper/org.f
mkdir -p tests/services
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(abs_top_builddir)|" -e "s|\@extraargs\@| --session --no-idle-exit|" $< > $@
-tests/libtest.sh: tests/services/org.freedesktop.impl.portal.PermissionStore.service tests/services/org.freedesktop.portal.Documents.service tests/services/org.freedesktop.Flatpak.service
+tests/libtest.sh: tests/services/org.freedesktop.impl.portal.PermissionStore.service tests/services/org.freedesktop.portal.Documents.service tests/services/org.freedesktop.Flatpak.service tests/services/org.freedesktop.Flatpak.SystemHelper.service
install-test-data-hook:
if ENABLE_INSTALLED_TESTS
@@ -127,7 +127,11 @@ dist_test_scripts = \
tests/test-update-remote-configuration.sh \
$(NULL)
-test_programs = testdb test-doc-portal testlibrary
+test_programs = testlibrary
+
+if ENABLE_DOCUMENT_PORTAL
+test_programs += testdb test-doc-portal
+endif
@VALGRIND_CHECK_RULES@
VALGRIND_SUPPRESSIONS_FILES=tests/flatpak.supp tests/glib.supp