Keep install script behavior the same as before, dont use it if you want normal meson behavior

This commit is contained in:
dec05eba
2024-06-11 17:44:10 +02:00
parent dfa7dc6659
commit dc86b5b9ec
4 changed files with 7 additions and 15 deletions

2
.gitignore vendored
View File

@@ -11,6 +11,8 @@ external/wlr-export-dmabuf-unstable-v1-protocol.c
.cache/
.vscode/
build/
*.o
gpu-screen-recorder
gsr-kms-server

View File

@@ -1,12 +0,0 @@
#!/bin/sh -e
script_dir=$(dirname "$0")
cd "$script_dir"
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
test -d build || meson setup build
meson configure --buildtype=debug build
ninja -C build install
echo "Successfully installed gpu-screen-recorder (debug)"

View File

@@ -5,8 +5,10 @@ cd "$script_dir"
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
echo "Warning: this install.sh script exists for backwards compatibility. Use meson directly instead if possible"
test -d build || meson setup build
meson configure --buildtype=release build
meson configure --prefix=/usr --buildtype=release -Dsystemd=true -Dstrip=true build
ninja -C build install
echo "Successfully installed gpu-screen-recorder"

View File

@@ -1,6 +1,6 @@
project('gpu-screen-recorder', ['c', 'cpp'])
project('gpu-screen-recorder', ['c', 'cpp'], version : '3.8.0', default_options : ['warning_level=2'])
add_project_arguments('-Wall', '-Wextra', '-Wshadow', language : ['c', 'cpp'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
add_project_arguments('-g3', language : ['c', 'cpp'])
elif get_option('buildtype') == 'release'