2022-01-30 22:24:20 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2022-09-27 23:03:06 +00:00
|
|
|
dependencies="libavcodec libavformat libavutil x11 xcomposite 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-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-01-30 22:24:20 +00:00
|
|
|
g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs
|