aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-01-30 23:24:20 +0100
committerdec05eba <dec05eba@protonmail.com>2022-01-30 23:24:20 +0100
commit4162e9b2720d58df5d19a29f91d5c26034fa7aa0 (patch)
tree6cfe02f7781686fc908820a11d07dd895d5c5f63 /build.sh
parent33ed64355f0e1147aece724bee2be07616ebddff (diff)
Remove dependency on sibs for building
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..ee1e9b3
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,8 @@
+#!/bin/sh -e
+
+dependencies="glew libavcodec libavformat libavutil x11 xcomposite glfw3 libpulse-simple libswresample"
+includes="$(pkg-config --cflags $dependencies) -I/opt/cuda/targets/x86_64-linux/include"
+libs="$(pkg-config --libs $dependencies) /usr/lib/libcuda.so -ldl -pthread -lm"
+g++ -c src/sound.cpp -O2 $includes -DPULSEAUDIO=1
+g++ -c src/main.cpp -O2 $includes -DPULSEAUDIO=1
+g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs