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

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