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

dependencies="glew sdl2 openvr x11 xcomposite xfixes mpv libxdo"
includes=$(pkg-config --cflags $dependencies)
libs="$(pkg-config --libs $dependencies) -lm -pthread"
gcc -c src/window_texture.c -O2 -DNDEBUG $includes
g++ -c src/mpv.cpp -O2 -DNDEBUG $includes
g++ -c src/main.cpp -O2 -DNDEBUG $includes
g++ -o vr-video-player -O2 window_texture.o mpv.o main.o -s $libs