diff options
author | Simon McVittie <smcv@collabora.com> | 2022-04-13 19:03:17 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2022-10-24 16:12:14 +0100 |
commit | 9eb824f863fff67e5650b844bad9654f8acfb832 (patch) | |
tree | 342c8e4941ea5ae4697d414710248baa527f7e22 /portal | |
parent | ad1dc62f2653fb7061699409ad3f0f49dd070105 (diff) | |
download | flatpak-9eb824f863fff67e5650b844bad9654f8acfb832.tar.gz |
Add a Meson build system
Resolves: https://github.com/flatpak/flatpak/issues/2241
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'portal')
-rw-r--r-- | portal/Makefile.am.inc | 2 | ||||
-rw-r--r-- | portal/meson.build | 59 |
2 files changed, 61 insertions, 0 deletions
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, +) |