2022-01-30 22:24:20 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2022-10-13 23:16:31 +00:00
|
|
|
dependencies="libavcodec libavformat libavutil x11 xcomposite xrandr libpulse libswresample"
|
2022-10-11 00:47:17 +00:00
|
|
|
includes="$(pkg-config --cflags $dependencies)"
|
2022-09-25 23:26:45 +00:00
|
|
|
libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm"
|
2022-10-13 23:16:31 +00:00
|
|
|
gcc -c src/capture/capture.c -O2 -g0 -DNDEBUG $includes
|
|
|
|
gcc -c src/capture/nvfbc.c -O2 -g0 -DNDEBUG $includes
|
2022-10-16 00:08:40 +00:00
|
|
|
gcc -c src/capture/xcomposite.c -O2 -g0 -DNDEBUG $includes
|
|
|
|
gcc -c src/gl.c -O2 -g0 -DNDEBUG $includes
|
|
|
|
gcc -c src/cuda.c -O2 -g0 -DNDEBUG $includes
|
|
|
|
gcc -c src/window_texture.c -O2 -g0 -DNDEBUG $includes
|
|
|
|
gcc -c src/time.c -O2 -g0 -DNDEBUG $includes
|
2022-10-11 00:47:17 +00:00
|
|
|
g++ -c src/sound.cpp -O2 -g0 -DNDEBUG $includes
|
|
|
|
g++ -c src/main.cpp -O2 -g0 -DNDEBUG $includes
|
2022-10-16 00:08:40 +00:00
|
|
|
g++ -o gpu-screen-recorder -O2 capture.o nvfbc.o gl.o cuda.o window_texture.o time.o xcomposite.o sound.o main.o -s $libs
|
2022-10-11 16:57:09 +00:00
|
|
|
echo "Successfully built gpu-screen-recorder"
|