mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Keep install script behavior the same as before, dont use it if you want normal meson behavior
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,6 +11,8 @@ external/wlr-export-dmabuf-unstable-v1-protocol.c
|
|||||||
.cache/
|
.cache/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
build/
|
||||||
|
|
||||||
*.o
|
*.o
|
||||||
gpu-screen-recorder
|
gpu-screen-recorder
|
||||||
gsr-kms-server
|
gsr-kms-server
|
||||||
|
|||||||
@@ -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)"
|
|
||||||
@@ -5,8 +5,10 @@ cd "$script_dir"
|
|||||||
|
|
||||||
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
|
[ $(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
|
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
|
ninja -C build install
|
||||||
|
|
||||||
echo "Successfully installed gpu-screen-recorder"
|
echo "Successfully installed gpu-screen-recorder"
|
||||||
|
|||||||
@@ -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'
|
if get_option('buildtype') == 'debug'
|
||||||
add_project_arguments('-g3', language : ['c', 'cpp'])
|
add_project_arguments('-g3', language : ['c', 'cpp'])
|
||||||
elif get_option('buildtype') == 'release'
|
elif get_option('buildtype') == 'release'
|
||||||
|
|||||||
Reference in New Issue
Block a user