Skip to content

Commit

Permalink
refactor packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
CrispyPin committed May 4, 2023
1 parent 22496fc commit 2c0386b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sinpin_vr
.vscode/
*.zip
*.tar.xz
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
VERSION=v0.2.2
VERSION=v0.2.3

CXX := g++
# CXX := clang++
CPPFLAGS := -g -Wall -std=c++17
LFLAGS := -lX11 -lXrandr -lXtst -lglfw -lGL
OVR := -Lopenvr -lopenvr_api
OVR := -Llib -lopenvr_api
TARGET := ./sinpin_vr

build:
$(CXX) src/*.cpp $(CPPFLAGS) $(LFLAGS) -Wl,-rpath,'$$ORIGIN/openvr' $(OVR) -o $(TARGET)
$(CXX) src/*.cpp $(CPPFLAGS) $(LFLAGS) -Wl,-rpath,'$$ORIGIN/lib' $(OVR) -o $(TARGET)

release: build
zip -r sinpin_vr-$(VERSION).zip sinpin_vr bindings openvr/libopenvr_api.so
mkdir -p sinpin-vr/lib
cp lib/libopenvr_api.so sinpin-vr/lib
cp -r bindings sinpin-vr
cp sinpin_vr sinpin-vr
tar -caf sinpin-vr-$(VERSION).tar.xz sinpin-vr
rm -rf sinpin-vr

run: build
$(TARGET)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/util.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "../openvr/openvr.h"
#include "../lib/openvr.h"
#include <glm/glm.hpp>

typedef vr::TrackedDeviceIndex_t TrackerID;
Expand Down

0 comments on commit 2c0386b

Please sign in to comment.