aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-15 18:57:33 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-15 19:02:34 +0200
commit048b8d21ecbd1168ff8e033b12cbfd66bba0127c (patch)
treef536c35090a6ed78803d064c0784370a2424ca7a /meson.build
parentc447a9a35f51815db307e5d58630040cd63ad4b7 (diff)
Add support for desktop portal capture (-w portal)
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build17
1 files changed, 17 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index ae19a17..0d93565 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,7 @@ src = [
]
dep = [
+ dependency('threads'),
dependency('libavcodec'),
dependency('libavformat'),
dependency('libavutil'),
@@ -51,6 +52,22 @@ dep = [
dependency('wayland-client'),
]
+if get_option('portal') == true
+ src += [
+ 'src/capture/portal.c',
+ 'src/dbus.c',
+ 'src/pipewire.c',
+ ]
+
+ dep += [
+ dependency('dbus-1'),
+ dependency('libpipewire-0.3'),
+ dependency('libspa-0.2'),
+ ]
+
+ add_project_arguments('-DGSR_PORTAL', language : ['c', 'cpp'])
+endif
+
executable('gsr-kms-server', 'kms/server/kms_server.c', dependencies : dependency('libdrm'), c_args : '-fstack-protector-all', install : true)
executable('gpu-screen-recorder', src, dependencies : dep, install : true)