aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-14 01:16:31 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-14 01:22:43 +0200
commit93d46b976730bced7a70be1617a0171600167314 (patch)
tree63580cf3ec44425531f95547c54c2ae519a1da00 /build.sh
parent9d65552d057a7a629ead9758f7627f0c7879bf4a (diff)
Refactor nvfbc into abstract capture api
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 8b92d92..5d42a3c 100755
--- a/build.sh
+++ b/build.sh
@@ -1,9 +1,11 @@
#!/bin/sh -e
-dependencies="libavcodec libavformat libavutil x11 xcomposite libpulse libswresample"
+dependencies="libavcodec libavformat libavutil x11 xcomposite xrandr libpulse libswresample"
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm"
+gcc -c src/capture/capture.c -O2 -g0 -DNDEBUG $includes
+gcc -c src/capture/nvfbc.c -O2 -g0 -DNDEBUG $includes
g++ -c src/sound.cpp -O2 -g0 -DNDEBUG $includes
g++ -c src/main.cpp -O2 -g0 -DNDEBUG $includes
-g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs
+g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o sound.o main.o -s $libs
echo "Successfully built gpu-screen-recorder" \ No newline at end of file