diff options
author | A person <agooglygooglr@gmail.com> | 2024-06-10 22:38:19 -0400 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-06-11 17:01:51 +0200 |
commit | dfa7dc6659755b7a8385aad5003fd80483dd4ffe (patch) | |
tree | 4644056c6eef43103dcaeab53d1a3d9cfe3a15cc /build.sh | |
parent | e43934e2d2219bdd9a99c78463aa47cfc0404dcd (diff) |
Migrate to Meson build system
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/build.sh b/build.sh deleted file mode 100755 index b353406..0000000 --- a/build.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh -e - -script_dir=$(dirname "$0") -cd "$script_dir" - -CC=${CC:-gcc} -CXX=${CXX:-g++} - -opts="-O2 -g0 -DNDEBUG -Wall -Wextra -Wshadow" -[ -n "$DEBUG" ] && opts="-O0 -g3 -Wall -Wextra -Wshadow"; - -build_gsr_kms_server() { - # TODO: -fcf-protection=full, not supported on arm - extra_opts="-fstack-protector-all" - dependencies="libdrm" - includes="$(pkg-config --cflags $dependencies)" - libs="$(pkg-config --libs $dependencies) -ldl" - $CC -c kms/server/kms_server.c $opts $extra_opts $includes - $CC -o gsr-kms-server kms_server.o $libs $opts $extra_opts -} - -build_gsr() { - dependencies="libavcodec libavformat libavutil x11 xcomposite xrandr xfixes libpulse libswresample libavfilter libva libcap libdrm wayland-egl wayland-client" - includes="$(pkg-config --cflags $dependencies)" - libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm" - $CC -c src/capture/capture.c $opts $includes - $CC -c src/capture/nvfbc.c $opts $includes - $CC -c src/capture/xcomposite.c $opts $includes - $CC -c src/capture/xcomposite_cuda.c $opts $includes - $CC -c src/capture/xcomposite_vaapi.c $opts $includes - $CC -c src/capture/kms_vaapi.c $opts $includes - $CC -c src/capture/kms_cuda.c $opts $includes - $CC -c src/capture/kms.c $opts $includes - $CC -c kms/client/kms_client.c $opts $includes - $CC -c src/egl.c $opts $includes - $CC -c src/cuda.c $opts $includes - $CC -c src/xnvctrl.c $opts $includes - $CC -c src/overclock.c $opts $includes - $CC -c src/window_texture.c $opts $includes - $CC -c src/shader.c $opts $includes - $CC -c src/color_conversion.c $opts $includes - $CC -c src/utils.c $opts $includes - $CC -c src/library_loader.c $opts $includes - $CC -c src/cursor.c $opts $includes - $CXX -c src/sound.cpp $opts $includes - $CXX -c src/main.cpp $opts $includes - $CXX -o gpu-screen-recorder capture.o nvfbc.o kms_client.o egl.o cuda.o xnvctrl.o overclock.o window_texture.o shader.o \ - color_conversion.o utils.o library_loader.o cursor.o xcomposite.o xcomposite_cuda.o xcomposite_vaapi.o kms_vaapi.o kms_cuda.o kms.o sound.o main.o $libs $opts -} - -build_gsr_kms_server -build_gsr -echo "Successfully built gpu-screen-recorder" |