diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-01-30 23:24:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-01-30 23:24:20 +0100 |
commit | 4162e9b2720d58df5d19a29f91d5c26034fa7aa0 (patch) | |
tree | 6cfe02f7781686fc908820a11d07dd895d5c5f63 /build.sh | |
parent | 33ed64355f0e1147aece724bee2be07616ebddff (diff) |
Remove dependency on sibs for building
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
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 |