From 9eb824f863fff67e5650b844bad9654f8acfb832 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 13 Apr 2022 19:03:17 +0100 Subject: Add a Meson build system Resolves: https://github.com/flatpak/flatpak/issues/2241 Signed-off-by: Simon McVittie --- portal/Makefile.am.inc | 2 ++ portal/meson.build | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 portal/meson.build (limited to 'portal') diff --git a/portal/Makefile.am.inc b/portal/Makefile.am.inc index dc459695..5fa0abb9 100644 --- a/portal/Makefile.am.inc +++ b/portal/Makefile.am.inc @@ -1,3 +1,5 @@ +EXTRA_DIST += portal/meson.build + libexec_PROGRAMS += \ flatpak-portal \ $(NULL) diff --git a/portal/meson.build b/portal/meson.build new file mode 100644 index 00000000..a3ebf71f --- /dev/null +++ b/portal/meson.build @@ -0,0 +1,59 @@ +# Copyright 2022 Collabora Ltd. +# SPDX-License-Identifier: LGPL-2.1-or-later + +permission_gdbus = gnome.gdbus_codegen( + 'flatpak-permission-dbus', + sources: [ + '../data/org.freedesktop.impl.portal.PermissionStore.xml', + ], + interface_prefix : 'org.freedesktop.impl.portal', + namespace : 'XdpDbus', +) + +portal_gdbus = gnome.gdbus_codegen( + 'flatpak-portal-dbus', + sources: [ + '../data/org.freedesktop.portal.Flatpak.xml', + ], + interface_prefix : 'org.freedesktop.portal', + namespace : 'Portal', +) + +executable( + 'flatpak-portal', + dependencies : [ + threads_dep, + base_deps, + json_glib_dep, + libflatpak_common_base_dep, + libflatpak_common_dep, + libglnx_dep, + libostree_dep, + libsoup_dep, + ], + include_directories : [ + include_directories('.'), + ], + install : true, + install_dir : get_option('libexecdir'), + sources : [ + 'flatpak-portal.c', + 'flatpak-portal-app-info.c', + 'portal-impl.c', + '../common/flatpak-portal-error.c', + ] + permission_gdbus + portal_gdbus, +) + +configure_file( + input : 'flatpak-portal.service.in', + output : 'flatpak-portal.service', + configuration : service_conf_data, + install_dir : get_option('systemduserunitdir'), +) + +configure_file( + input : 'org.freedesktop.portal.Flatpak.service.in', + output : 'org.freedesktop.portal.Flatpak.service', + configuration : service_conf_data, + install_dir : dbus_service_dir, +) -- cgit v1.2.1