aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
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)