diff --git a/Makefile.am b/Makefile.am deleted file mode 100644 index 6fa8868..0000000 --- a/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -SUBDIRS = po - -BUILT_SOURCES = -CLEANFILES = -EXTRA_DIST = - -include src/Makefile.am.inc -include data/Makefile.am.inc diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 52843e5..0000000 --- a/autogen.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# Run this to generate all the initial makefiles, etc. - -test -n "$srcdir" || srcdir=`dirname "$0"` -test -n "$srcdir" || srcdir=. - -olddir=`pwd` -cd "$srcdir" - -AUTORECONF=`which autoreconf` -if test -z $AUTORECONF; then - echo "*** No autoreconf found, please install it ***" - exit 1 -fi - -# INSTALL are required by automake, but may be deleted by clean -# up rules. to get automake to work, simply touch these here, they will be -# regenerated from their corresponding *.in files by ./configure anyway. -touch INSTALL - -autoreconf --force --install --verbose || exit $? - -cd "$olddir" -test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" diff --git a/configure.ac b/configure.ac deleted file mode 100644 index a8dec78..0000000 --- a/configure.ac +++ /dev/null @@ -1,117 +0,0 @@ -AC_PREREQ([2.63]) - -AC_INIT([xdg-desktop-portal-gtk],[1.14.1]) - -AC_PROG_CC -AM_PROG_CC_C_O -AC_DISABLE_STATIC - -LT_PREREQ([2.2.6]) -LT_INIT([disable-static]) - -AC_CONFIG_SRCDIR([src/xdg-desktop-portal-gtk.c]) -AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([1.11 no-define no-dist-gzip dist-xz tar-ustar foreign subdir-objects]) -AC_PROG_SED - -# Enable silent rules is available -AM_SILENT_RULES([yes]) -AM_MAINTAINER_MODE([enable]) - -if test "x$GCC" = "xyes"; then - case " $CFLAGS " in - *[[\ \ ]]-Wall[[\ \ ]]*) ;; - *) CFLAGS="$CFLAGS -Wall" ;; - esac -fi - -# i18n stuff -GETTEXT_PACKAGE=xdg-desktop-portal-gtk -AC_SUBST(GETTEXT_PACKAGE) -AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", - [The prefix for our gettext translation domains.]) - -AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION(0.18.3) - -PKG_PROG_PKG_CONFIG([0.24]) - -AC_ARG_WITH(dbus_service_dir, - AS_HELP_STRING([--with-dbus-service-dir=PATH],[choose directory for dbus service files, [default=PREFIX/share/dbus-1/services]]), - with_dbus_service_dir="$withval", with_dbus_service_dir=$datadir/dbus-1/services) -DBUS_SERVICE_DIR=$with_dbus_service_dir -AC_SUBST(DBUS_SERVICE_DIR) - -AC_ARG_WITH([systemduserunitdir], - [AS_HELP_STRING([--with-systemduserunitdir=DIR], - [Directory for systemd user service files (default=PREFIX/lib/systemd/user)])], - [], - dnl This is deliberately not ${libdir}: systemd units always go in - dnl .../lib, never .../lib64 or .../lib/x86_64-linux-gnu - [with_systemduserunitdir='${prefix}/lib/systemd/user']) -AC_SUBST([systemduserunitdir], [$with_systemduserunitdir]) - -AC_SUBST([DESKTOP_PORTAL_INTERFACES_DIR], [`$PKG_CONFIG --variable=interfaces_dir xdg-desktop-portal`]) -AC_SUBST([DBUS_INTERFACES_DIR], [`$PKG_CONFIG --variable=interfaces_dir dbus-1`]) -AC_SUBST([GDBUS_CODEGEN], [`$PKG_CONFIG --variable gdbus_codegen gio-2.0`]) -AC_SUBST([GLIB_COMPILE_RESOURCES], [`$PKG_CONFIG --variable glib_compile_resources gio-2.0`]) - -AC_ARG_ENABLE([wallpaper], - [AS_HELP_STRING([--enable-wallpaper],[Build wallpaper portal. Needs gnome-desktop])]) -AS_IF([test "x$enable_wallpaper" = "xyes"], [ - PKG_CHECK_MODULES(WALLPAPER, [gnome-desktop-3.0]) - AC_DEFINE([BUILD_WALLPAPER], [1], [Define to enable wallpaper portal]) -]) -AM_CONDITIONAL([BUILD_WALLPAPER],[test "$enable_wallpaper" = "yes"]) - -AC_ARG_ENABLE([settings], - [AS_HELP_STRING([--disable-settings],[Disable the settings portal, which needs dconf])]) -AS_IF([test "x$enable_settings" != "xno"], [ - PKG_CHECK_MODULES(SETTINGS, [fontconfig gsettings-desktop-schemas]) - AC_DEFINE([BUILD_SETTINGS], [1], [Define to enable settings portal]) -]) -AM_CONDITIONAL([BUILD_SETTINGS],[test "$enable_settings" != "no"]) - -AC_ARG_ENABLE([appchooser], - [AS_HELP_STRING([--disable-appchooser],[Disable the appchooser portal.])]) -AS_IF([test "x$enable_appchooser" != "xno"], [ - AC_DEFINE([BUILD_APPCHOOSER], [1], [Define to enable appchooser portal]) -]) -AM_CONDITIONAL([BUILD_APPCHOOSER],[test "$enable_appchooser" != "no"]) - -AC_ARG_ENABLE(lockdown, - [AS_HELP_STRING([--enable-lockdown],[Build lockdown portal.])], - enable_lockdown=$enableval, enable_lockdown=yes) -if test x$enable_lockdown = xyes; then - AC_DEFINE([BUILD_LOCKDOWN], [1], [Define to enable lockdown portal]) -fi -AM_CONDITIONAL([BUILD_LOCKDOWN],[test "$enable_lockdown" = "yes"]) - -PKG_CHECK_MODULES(GTK, [xdg-desktop-portal >= 1.14.0 glib-2.0 >= 2.44 gio-unix-2.0 gtk+-3.0 >= 3.14 gtk+-unix-print-3.0]) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_LIBS) - -PKG_CHECK_MODULES(GTK_X11, gtk+-x11-3.0, - have_gtk_x11=yes, have_gtk_x11=no) -if test "$have_gtk_x11" = "yes"; then - AC_DEFINE(HAVE_GTK_X11, 1, [define if we we have gtk+-x11]) - AC_SUBST(GTK_X11_CFLAGS) - AC_SUBST(GTK_X11_LIBS) -fi -AM_CONDITIONAL([HAVE_GTK_X11], [test "$have_gtk_x11" = "yes"]) - -PKG_CHECK_MODULES(GTK_WAYLAND, gtk+-wayland-3.0 >= 3.21.5, - have_gtk_wayland=yes, have_gtk_wayland=no) -if test "$have_gtk_wayland" = "yes"; then - AC_DEFINE(HAVE_GTK_WAYLAND, 1, [define if we we have gtk+-wayland]) - AC_SUBST(GTK_WAYLAND_CFLAGS) - AC_SUBST(GTK_WAYLAND_LIBS) -fi -AM_CONDITIONAL([HAVE_GTK_WAYLAND], [test "$have_gtk_wayland" = "yes"]) - -AC_CONFIG_FILES([ -Makefile -po/Makefile.in -]) -AC_OUTPUT diff --git a/data/Makefile.am.inc b/data/Makefile.am.inc deleted file mode 100644 index 2efc9a8..0000000 --- a/data/Makefile.am.inc +++ /dev/null @@ -1,70 +0,0 @@ -if BUILD_WALLPAPER -wallpaper_iface = org.freedesktop.impl.portal.Wallpaper; -endif - -if BUILD_SETTINGS -settings_iface = org.freedesktop.impl.portal.Settings; -endif - -if BUILD_APPCHOOSER -appchooser_iface = org.freedesktop.impl.portal.AppChooser; -endif - -if BUILD_LOCKDOWN -lockdown_iface = org.freedesktop.impl.portal.Lockdown; -endif - -%.portal: data/%.portal.in config.log - $(AM_V_GEN) $(SED) -e "s|\@wallpaper_iface\@|$(wallpaper_iface)|" \ - -e "s|\@settings_iface\@|$(settings_iface)|" \ - -e "s|\@appchooser_iface\@|$(appchooser_iface)|" \ - -e "s|\@lockdown_iface\@|$(lockdown_iface)|" \ - $< > $@ - -portaldir = $(datadir)/xdg-desktop-portal/portals -portal_in_files = data/gtk.portal.in -portal_DATA = gtk.portal - -%.service: data/%.service.in config.log - $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ - -dbus_servicedir = $(DBUS_SERVICE_DIR) -dbus_service_in_files = data/org.freedesktop.impl.portal.desktop.gtk.service.in -dbus_service_DATA = org.freedesktop.impl.portal.desktop.gtk.service - -CLEANFILES += $(dbus_service_DATA) - -systemduserunit_in_files = data/xdg-desktop-portal-gtk.service.in -systemduserunit_DATA = xdg-desktop-portal-gtk.service - -CLEANFILES += $(systemduserunit_DATA) - -%.desktop.in: data/%.desktop.in.in - $(AM_V_GEN) msgfmt --desktop -d po --template $< -o $@ - -%.desktop: %.desktop.in - $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ - -desktopdir = $(datadir)/applications -desktop_in_in_files = data/xdg-desktop-portal-gtk.desktop.in.in -desktop_in_files = xdg-desktop-portal-gtk.desktop.in -desktop_DATA = xdg-desktop-portal-gtk.desktop - -CLEANFILES += \ - $(portal_DATA) \ - $(desktop_in_files) \ - $(desktop_DATA) \ - $(NULL) - -EXTRA_DIST += \ - $(portal_in_files) \ - $(dbus_service_in_files) \ - $(systemduserunit_in_files) \ - $(desktop_in_in_files) \ - data/org.gtk.Notifications.xml \ - data/org.gnome.SessionManager.xml \ - data/org.gnome.ScreenSaver.xml \ - data/org.freedesktop.ScreenSaver.xml \ - data/org.freedesktop.Accounts.xml \ - data/org.freedesktop.Accounts.User.xml \ - $(NULL) diff --git a/po/Makevars b/po/Makevars deleted file mode 100644 index e3fb1ff..0000000 --- a/po/Makevars +++ /dev/null @@ -1,78 +0,0 @@ -# Makefile variables for PO directory in any package using GNU gettext. - -# Usually the message domain is the same as the package name. -DOMAIN = $(PACKAGE) - -# These two variables depend on the location of this directory. -subdir = po -top_builddir = .. - -# These options get passed to xgettext. -XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --keyword=C_:1c,2 --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 - -# This is the copyright holder that gets inserted into the header of the -# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding -# package. (Note that the msgstr strings, extracted from the package's -# sources, belong to the copyright holder of the package.) Translators are -# expected to transfer the copyright for their translations to this person -# or entity, or to disclaim their copyright. The empty string stands for -# the public domain; in this case the translators are expected to disclaim -# their copyright. -COPYRIGHT_HOLDER = Copyright © 2016 Red Hat - -# This tells whether or not to prepend "GNU " prefix to the package -# name that gets inserted into the header of the $(DOMAIN).pot file. -# Possible values are "yes", "no", or empty. If it is empty, try to -# detect it automatically by scanning the files in $(top_srcdir) for -# "GNU packagename" string. -PACKAGE_GNU = no - -# This is the email address or URL to which the translators shall report -# bugs in the untranslated strings: -# - Strings which are not entire sentences, see the maintainer guidelines -# in the GNU gettext documentation, section 'Preparing Strings'. -# - Strings which use unclear terms or require additional context to be -# understood. -# - Strings which make invalid assumptions about notation of date, time or -# money. -# - Pluralisation problems. -# - Incorrect English spelling. -# - Incorrect formatting. -# It can be your email address, or a mailing list address where translators -# can write to without being subscribed, or the URL of a web page through -# which the translators can contact you. -MSGID_BUGS_ADDRESS = https://github.com/flatpak/xdg-desktop-portal-gtk/issues - -# This is the list of locale categories, beyond LC_MESSAGES, for which the -# message catalogs shall be used. It is usually empty. -EXTRA_LOCALE_CATEGORIES = - -# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' -# context. Possible values are "yes" and "no". Set this to yes if the -# package uses functions taking also a message context, like pgettext(), or -# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. -USE_MSGCTXT = no - -# These options get passed to msgmerge. -# Useful options are in particular: -# --previous to keep previous msgids of translated messages, -# --quiet to reduce the verbosity. -MSGMERGE_OPTIONS = - -# These options get passed to msginit. -# If you want to disable line wrapping when writing PO files, add -# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and -# MSGINIT_OPTIONS. -MSGINIT_OPTIONS = - -# This tells whether or not to regenerate a PO file when $(DOMAIN).pot -# has changed. Possible values are "yes" and "no". Set this to no if -# the POT file is checked in the repository and the version control -# program ignores timestamps. -PO_DEPENDS_ON_POT = no - -# This tells whether or not to forcibly update $(DOMAIN).pot and -# regenerate PO files on "make dist". Possible values are "yes" and -# "no". Set this to no if the POT file and PO files are maintained -# externally. -DIST_DEPENDS_ON_UPDATE_PO = no diff --git a/src/Makefile.am.inc b/src/Makefile.am.inc deleted file mode 100644 index 48706d9..0000000 --- a/src/Makefile.am.inc +++ /dev/null @@ -1,207 +0,0 @@ -dbus_built_sources = src/xdg-desktop-portal-dbus.c src/xdg-desktop-portal-dbus.h -BUILT_SOURCES += $(dbus_built_sources) -CLEANFILES += $(dbus_built_sources) - -if BUILD_WALLPAPER - WALLPAPER_IFACE=$(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Wallpaper.xml -endif - -if BUILD_SETTINGS - SETTINGS_IFACE=$(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Settings.xml -endif - -if BUILD_SETTINGS - SHELL_INTROSPECT_IFACE=$(top_srcdir)/data/org.gnome.Shell.Introspect.xml -endif - -if BUILD_APPCHOOSER - APPCHOOSER_IFACE=$(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.AppChooser.xml -endif - -if BUILD_LOCKDOWN - LOCKDOWN_IFACE=$(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Lockdown.xml -endif - -$(dbus_built_sources): src/Makefile.am.inc - $(AM_V_GEN) $(GDBUS_CODEGEN) \ - --interface-prefix org.freedesktop.impl.portal. \ - --c-namespace XdpImpl \ - --generate-c-code src/xdg-desktop-portal-dbus \ - --annotate "org.freedesktop.impl.portal.Print.Print()" "org.gtk.GDBus.C.UnixFD" "true" \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Request.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Session.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.FileChooser.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Print.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Notification.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Inhibit.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Access.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Account.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.Email.xml \ - $(DESKTOP_PORTAL_INTERFACES_DIR)/org.freedesktop.impl.portal.DynamicLauncher.xml \ - $(WALLPAPER_IFACE) \ - $(BACKGROUND_IFACE) \ - $(SETTINGS_IFACE) \ - $(APPCHOOSER_IFACE) \ - $(LOCKDOWN_IFACE) \ - $(NULL) - -shell_built_sources = src/shell-dbus.c src/shell-dbus.h -BUILT_SOURCES += $(shell_built_sources) -CLEANFILES += $(shell_built_sources) - -$(shell_built_sources): src/Makefile.am.inc - $(AM_V_GEN) $(GDBUS_CODEGEN) \ - --generate-c-code src/shell-dbus \ - $(top_srcdir)/data/org.gtk.Notifications.xml \ - $(top_srcdir)/data/org.gnome.SessionManager.xml \ - $(top_srcdir)/data/org.gnome.ScreenSaver.xml \ - $(top_srcdir)/data/org.freedesktop.ScreenSaver.xml \ - $(top_srcdir)/data/org.freedesktop.Accounts.xml \ - $(top_srcdir)/data/org.freedesktop.Accounts.User.xml \ - $(NULL) - -resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/src --generate-dependencies $(top_srcdir)/src/xdg-desktop-portal-gtk.gresource.xml) - -src/resources.c: src/xdg-desktop-portal-gtk.gresource.xml $(resource_files) - $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) $< \ - --target=$@ --sourcedir=$(top_srcdir)/src --c-name _xdg_desktop --generate-source -CLEANFILES += src/resources.c - -EXTRA_DIST += \ - src/xdg-desktop-portal-gtk.gresource.xml \ - src/appchooserdialog.ui \ - src/appchooserrow.ui \ - src/accountdialog.ui \ - src/wallpaperdialog.ui \ - src/wallpaperpreview.ui \ - src/wallpaperpreview.css \ - $(NULL) - -libexec_PROGRAMS = \ - xdg-desktop-portal-gtk \ - $(NULL) - -xdg_desktop_portal_gtk_SOURCES = \ - src/xdg-desktop-portal-gtk.c \ - src/utils.h \ - src/utils.c \ - src/request.h \ - src/request.c \ - src/session.c \ - src/session.h \ - src/filechooser.h \ - src/filechooser.c \ - src/notification.h \ - src/notification.c \ - src/fdonotification.h \ - src/fdonotification.c \ - src/inhibit.h \ - src/inhibit.c \ - src/print.h \ - src/print.c \ - src/access.h \ - src/access.c \ - src/account.h \ - src/account.c \ - src/accountdialog.h \ - src/accountdialog.c \ - src/email.h \ - src/email.c \ - src/gtkbackports.h \ - src/gtkbackports.c \ - src/externalwindow.h \ - src/externalwindow.c \ - src/dynamic-launcher.h \ - src/dynamic-launcher.c \ - $(NULL) - -if BUILD_WALLPAPER -xdg_desktop_portal_gtk_SOURCES += \ - src/wallpaperdialog.c \ - src/wallpaperdialog.h \ - src/wallpaperpreview.c \ - src/wallpaperpreview.h \ - src/wallpaper.c \ - src/wallpaper.h \ - $(NULL) -endif - -if BUILD_SETTINGS -xdg_desktop_portal_gtk_SOURCES += \ - src/fc-monitor.c \ - src/fc-monitor.h \ - src/settings.c \ - src/settings.h \ - $(NULL) -endif - -if BUILD_APPCHOOSER -xdg_desktop_portal_gtk_SOURCES += \ - src/appchooser.h \ - src/appchooser.c \ - src/appchooserrow.h \ - src/appchooserrow.c \ - src/appchooserdialog.h \ - src/appchooserdialog.c \ - $(NULL) -endif - -if BUILD_LOCKDOWN -xdg_desktop_portal_gtk_SOURCES += \ - src/lockdown.c \ - src/lockdown.h \ - $(NULL) -endif - -nodist_xdg_desktop_portal_gtk_SOURCES = \ - src/resources.c \ - $(dbus_built_sources) \ - $(shell_built_sources) \ - $(NULL) - -if HAVE_GTK_X11 -xdg_desktop_portal_gtk_SOURCES += \ - src/externalwindow-x11.h \ - src/externalwindow-x11.c \ - $(NULL) -endif - -if HAVE_GTK_WAYLAND -xdg_desktop_portal_gtk_SOURCES += \ - src/externalwindow-wayland.h \ - src/externalwindow-wayland.c \ - $(NULL) -endif - -xdg_desktop_portal_gtk_LDADD = $(BASE_LIBS) $(GTK_LIBS) $(GTK_X11_LIBS) $(WALLPAPER_LIBS) $(SETTINGS_LIBS) -xdg_desktop_portal_gtk_CFLAGS = $(BASE_CFLAGS) $(GTK_CFLAGS) $(GTK_X11_CFLAGS) $(WALLPAPER_CFLAGS) $(SETTINGS_CFLAGS) -xdg_desktop_portal_gtk_CPPFLAGS = \ - -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \ - -DLOCALEDIR=\"$(localedir)\" \ - -I$(top_srcdir)/src \ - -I$(top_builddir)/src \ - $(NULL) - -noinst_PROGRAMS = \ - testappchooser - -testappchooser_LDADD = $(GTK_LIBS) $(GTK_X11_LIBS) -testappchooser_CFLAGS = $(GTK_CFLAGS) $(GTK_X11_CFLAGS) -testappchooser_CPPFLAGS = \ - -DGETTEXT_PACKAGE=\"$(GETTEXT_PACKAGE)\" \ - -DLOCALEDIR=\"$(localedir)\" \ - -I$(top_srcdir)/src \ - -I$(top_builddir)/src \ - $(NULL) - -testappchooser_SOURCES = \ - src/testappchooser.c \ - src/appchooserrow.h \ - src/appchooserrow.c \ - src/appchooserdialog.h \ - src/appchooserdialog.c \ - $(NULL) - -nodist_testappchooser_SOURCES = \ - src/resources.c \ - $(NULL)