Commit 9ca37373 authored by Christian Hergert's avatar Christian Hergert

build: allow libportal access to plugins

Not currently required, but allows plugins to optionally use features from
libportal to access desktop features.

We probably need to figure out how we want to use these things and stay
compatible with other platforms like macOS in the future.
parent cdc3d38a
......@@ -261,6 +261,7 @@ libjsonrpc_glib_dep = dependency('jsonrpc-glib-1.0', version: '>= 3.29.91')
libm_dep = cc.find_library('m', required: false)
libpangoft2_dep = dependency('pangoft2', version: '>= 1.38.0')
libpeas_dep = dependency('libpeas-1.0', version: '>= 1.22.0')
libportal_dep = dependency('libportal', version: '>= 0.3', required: false)
libtemplate_glib_dep = dependency('template-glib-1.0', version: '>= 3.28.0')
libvte_dep = dependency('vte-2.91', version: '>= 0.40.2')
libwebkit_dep = dependency('webkit2gtk-4.0', version: '>= 2.26')
......@@ -287,6 +288,11 @@ if libsysprof_capture.found()
config_h.set10('ENABLE_TRACING_SYSCAP', true)
endif
# Give sources access to know if libportal is available
if libportal_dep.found()
config_h.set10('ENABLE_LIBPORTAL', true)
endif
configure_file(output: 'config.h', configuration: config_h)
gnome = import('gnome')
......
if get_option('plugin_update_manager')
plugins_deps += [
dependency('libportal', version: '>= 0.3'),
libportal_dep,
]
plugins_sources += files([
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment