Skip to content

Commit

Permalink
Vivecraft OpenXR
Browse files Browse the repository at this point in the history
  • Loading branch information
The Judge committed Apr 20, 2024
1 parent 5628805 commit 61026fa
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 7,573 deletions.
2 changes: 1 addition & 1 deletion src/main/java/pojlib/util/VLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public class VLoader {
static {
System.loadLibrary("openxr_loader");
System.loadLibrary("openvr_api");
System.loadLibrary("vloader");
}

public static native void setAndroidInitInfo(Context ctx);
Expand Down
32 changes: 3 additions & 29 deletions src/main/jni/Android.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LOCAL_PATH := $(call my-dir)
LOCAL_PATH := $(call my-dir)
HERE_PATH := $(LOCAL_PATH)

# include $(HERE_PATH)/crash_dump/libbase/Android.mk
Expand Down Expand Up @@ -30,35 +30,9 @@ LOCAL_SRC_FILES := tinywrapper/main.c tinywrapper/string_utils.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/tinywrapper
include $(BUILD_SHARED_LIBRARY)


include $(CLEAR_VARS)
LOCAL_MODULE := openxr_loader
LOCAL_SRC_FILES := libopenxr_loader.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := occore
LOCAL_SRC_FILES := ./OpenOVR/libOCCore.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_SHARED_LIBRARIES := openxr_loader
LOCAL_MODULE := drvopenxr
LOCAL_SRC_FILES := ./OpenOVR/libDrvOpenXR.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := ocovr
LOCAL_STATIC_LIBRARIES := drvopenxr occore drvopenxr
LOCAL_SRC_FILES := ./OpenOVR/OCOVR.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog -landroid -lGLESv3 -lvulkan -lEGL
LOCAL_CFLAGS := -DXR_USE_PLATFORM_ANDROID -DXR_USE_GRAPHICS_API_OPENGL_ES
LOCAL_SHARED_LIBRARIES := openxr_loader
LOCAL_WHOLE_STATIC_LIBRARIES := ocovr
LOCAL_MODULE := openvr_api
LOCAL_MODULE := vloader
LOCAL_SRC_FILES := \
vloader.cpp
include $(BUILD_SHARED_LIBRARY)
Expand All @@ -69,7 +43,7 @@ LOCAL_LDLIBS := -ldl -llog -landroid -lGLESv3 -lEGL
# -lGLESv2
LOCAL_MODULE := pojavexec
# LOCAL_CFLAGS += -DDEBUG
LOCAL_SHARED_LIBRARIES := openvr_api regal
LOCAL_SHARED_LIBRARIES := regal
# -DGLES_TEST
LOCAL_SRC_FILES := \
egl_bridge.c \
Expand Down
Binary file removed src/main/jni/OpenOVR/OCOVR.a
Binary file not shown.
16 changes: 0 additions & 16 deletions src/main/jni/OpenOVR/android_api.h

This file was deleted.

Binary file removed src/main/jni/OpenOVR/libDrvOpenXR.a
Binary file not shown.
Binary file removed src/main/jni/OpenOVR/libOCCore.a
Binary file not shown.
Binary file removed src/main/jni/OpenOVR/libOpenXR.a
Binary file not shown.
Loading

0 comments on commit 61026fa

Please sign in to comment.