Skip to content

Commit 2c0386b

Browse files
committed
refactor packaging
1 parent 22496fc commit 2c0386b

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sinpin_vr
22
.vscode/
33
*.zip
4+
*.tar.xz

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
VERSION=v0.2.2
1+
VERSION=v0.2.3
22

33
CXX := g++
44
# CXX := clang++
55
CPPFLAGS := -g -Wall -std=c++17
66
LFLAGS := -lX11 -lXrandr -lXtst -lglfw -lGL
7-
OVR := -Lopenvr -lopenvr_api
7+
OVR := -Llib -lopenvr_api
88
TARGET := ./sinpin_vr
99

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

1313
release: build
14-
zip -r sinpin_vr-$(VERSION).zip sinpin_vr bindings openvr/libopenvr_api.so
14+
mkdir -p sinpin-vr/lib
15+
cp lib/libopenvr_api.so sinpin-vr/lib
16+
cp -r bindings sinpin-vr
17+
cp sinpin_vr sinpin-vr
18+
tar -caf sinpin-vr-$(VERSION).tar.xz sinpin-vr
19+
rm -rf sinpin-vr
1520

1621
run: build
1722
$(TARGET)
File renamed without changes.
File renamed without changes.

src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "../openvr/openvr.h"
3+
#include "../lib/openvr.h"
44
#include <glm/glm.hpp>
55

66
typedef vr::TrackedDeviceIndex_t TrackerID;

0 commit comments

Comments
 (0)