From 4162e9b2720d58df5d19a29f91d5c26034fa7aa0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 30 Jan 2022 23:24:20 +0100 Subject: Remove dependency on sibs for building --- build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 build.sh (limited to 'build.sh') 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 -- cgit v1.2.3