From 91251712e6b4dc0fa32b2ff465b9006fe3aa8bb6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 5 Jun 2020 00:09:57 +0200 Subject: Add simple build script instead of depending on sibs --- .gitignore | 3 +++ README.md | 4 ++-- build.sh | 8 ++++++++ project.conf | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100755 build.sh diff --git a/.gitignore b/.gitignore index 636c6b9..dbb08f9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ sibs-build/ compile_commands.json tests/sibs-build/ tests/compile_commands.json +vr-video-player +window_texture.o +main.o diff --git a/README.md b/README.md index 64ee780..b9ac1b2 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Still early in development, not very user friendly. Currently only works with stereo video. -# Installation -vr video player can be built using [sibs](https://github.com/DEC05EBA/sibs) or if you are running Arch Linux, then you can find it on aur under the name vr-video-player-git (`yay -S vr-video-player-git`). +# Building +vr video player can be built by running `./build.sh` or by using [sibs](https://github.com/DEC05EBA/sibs) or if you are running Arch Linux, then you can find it on aur under the name vr-video-player-git (`yay -S vr-video-player-git`). # How to use Start a video in your video player of choice (tested with mpv) and then get the x11 window id (this can be done with xwininfo) and then fullscreen the video (for best quality). diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..bfb0aec --- /dev/null +++ b/build.sh @@ -0,0 +1,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 diff --git a/project.conf b/project.conf index 09bc4a6..7bf0d49 100644 --- a/project.conf +++ b/project.conf @@ -1,5 +1,5 @@ [package] -name = "vr_video_player" +name = "vr-video-player" type = "executable" version = "0.1.0" platforms = ["linux"] -- cgit v1.2.3