Make setcap for install optional

This commit is contained in:
dec05eba
2024-06-11 22:21:00 +02:00
parent e78e03891e
commit 5f24cd6de6
3 changed files with 7 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ elif get_option('buildtype') == 'release'
endif endif
src = [ src = [
'kms/client/kms_client.c',
'src/capture/capture.c', 'src/capture/capture.c',
'src/capture/nvfbc.c', 'src/capture/nvfbc.c',
'src/capture/xcomposite.c', 'src/capture/xcomposite.c',
@@ -16,7 +17,6 @@ src = [
'src/capture/kms_vaapi.c', 'src/capture/kms_vaapi.c',
'src/capture/kms_cuda.c', 'src/capture/kms_cuda.c',
'src/capture/kms.c', 'src/capture/kms.c',
'kms/client/kms_client.c',
'src/egl.c', 'src/egl.c',
'src/cuda.c', 'src/cuda.c',
'src/xnvctrl.c', 'src/xnvctrl.c',
@@ -55,4 +55,6 @@ if get_option('systemd') == true
install_data(files('extra/gpu-screen-recorder.service'), install_dir : '/usr/lib/systemd/user') install_data(files('extra/gpu-screen-recorder.service'), install_dir : '/usr/lib/systemd/user')
endif endif
meson.add_install_script('extra/meson_post_install.sh') if get_option('capabilities') == true
meson.add_install_script('extra/meson_post_install.sh')
endif

View File

@@ -1 +1,2 @@
option('systemd', type : 'boolean', value : false, description : 'Install systemd service file') option('systemd', type : 'boolean', value : false, description : 'Install systemd service file')
option('capabilities', type : 'boolean', value : true, description : 'Set binary admin capabilities to remove password prompt and increase performance')

View File

@@ -1,11 +1,11 @@
[package] [package]
name = "gpu-screen-recorder" name = "gpu-screen-recorder"
type = "executable" type = "executable"
version = "3.0.0" version = "3.8.0"
platforms = ["posix"] platforms = ["posix"]
[config] [config]
ignore_dirs = ["kms/server"] ignore_dirs = ["kms/server", "build"]
error_on_warning = "true" error_on_warning = "true"
[dependencies] [dependencies]