aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build28
1 files changed, 22 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index b275812..f5c9214 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder', ['c', 'cpp'], version : '4.1.8', default_options : ['warning_level=2'])
+project('gpu-screen-recorder', ['c', 'cpp'], version : '4.2.6', default_options : ['warning_level=2'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
@@ -14,9 +14,13 @@ src = [
'src/capture/xcomposite.c',
'src/capture/kms.c',
'src/encoder/video/video.c',
- 'src/encoder/video/cuda.c',
+ 'src/encoder/video/nvenc.c',
'src/encoder/video/vaapi.c',
+ 'src/encoder/video/vulkan.c',
'src/encoder/video/software.c',
+ 'src/codec_query/nvenc.c',
+ 'src/codec_query/vaapi.c',
+ 'src/codec_query/vulkan.c',
'src/egl.c',
'src/cuda.c',
'src/xnvctrl.c',
@@ -53,20 +57,32 @@ dep = [
dependency('wayland-client'),
]
+uses_pipewire = false
+
if get_option('portal') == true
src += [
'src/capture/portal.c',
'src/dbus.c',
- 'src/pipewire.c',
+ 'src/pipewire_video.c',
]
+ dep += dependency('dbus-1')
+ add_project_arguments('-DGSR_PORTAL', language : ['c', 'cpp'])
+ uses_pipewire = true
+endif
+if get_option('app_audio') == true
+ src += [
+ 'src/pipewire_audio.c',
+ ]
+ add_project_arguments('-DGSR_APP_AUDIO', language : ['c', 'cpp'])
+ uses_pipewire = true
+endif
+
+if uses_pipewire == true
dep += [
- dependency('dbus-1'),
dependency('libpipewire-0.3'),
dependency('libspa-0.2'),
]
-
- add_project_arguments('-DGSR_PORTAL', language : ['c', 'cpp'])
endif
add_project_arguments('-DGSR_VERSION="' + meson.project_version() + '"', language: ['c', 'cpp'])