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

dependencies="glm glew sdl2 openvr x11 xcomposite"
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 window_texture.o main.o $libs