2022-01-30 22:24:20 +00:00
|
|
|
#!/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"
|
2022-03-21 23:29:20 +00:00
|
|
|
libs="$(pkg-config --libs $dependencies) /usr/lib64/libcuda.so -ldl -pthread -lm"
|
2022-01-30 22:24:20 +00:00
|
|
|
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
|