diff options
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,8 +1,9 @@ #!/bin/sh -e -dependencies="glm glew sdl2 openvr x11 xcomposite xfixes" +dependencies="glew sdl2 openvr x11 xcomposite xfixes mpv libxdo" 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 +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 |