aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 62bb59a7122775d486666d8734a78cfe5a596580 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh -e

dependencies="libavcodec libavformat libavutil x11 xcomposite libpulse libswresample"
includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl -pthread -lm"
g++ -c src/sound.cpp -O2 -g0 -DNDEBUG $includes
g++ -c src/main.cpp -O2 -g0 -DNDEBUG $includes
g++ -o gpu-screen-recorder -O2 sound.o main.o -s $libs