aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-06-05 00:09:57 +0200
committerdec05eba <dec05eba@protonmail.com>2020-06-05 00:09:57 +0200
commit91251712e6b4dc0fa32b2ff465b9006fe3aa8bb6 (patch)
tree9e14240862b5b0e99625e0b3fa929b0fb0c5ba80
parent7f658e81ab32ea2474e1fce3759b5050a8e79738 (diff)
Add simple build script instead of depending on sibs
-rw-r--r--.gitignore3
-rw-r--r--README.md4
-rwxr-xr-xbuild.sh8
-rw-r--r--project.conf2
4 files changed, 14 insertions, 3 deletions
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"]