Skip to content

Commit

Permalink
Switch to the Khronos OpenXR Loader for Android gradle dependency (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
m4gr3d authored Jun 29, 2024
1 parent dd7183c commit c0650fe
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 44 deletions.
9 changes: 2 additions & 7 deletions godotopenxrkhronos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ project(godotopenxrvendors LANGUAGES CXX)
include(${PROJECT_SOURCE_DIR}/../common/common.cmake)

## khronos OpenXR loader library
set(KHRONOS_OPENXR_LIB_PATH "${PROJECT_SOURCE_DIR}/../thirdparty/khronos_openxr_sdk/${ANDROID_ABI}/libopenxr_loader.so")
add_library(openxr_loader
SHARED
IMPORTED GLOBAL
)
set_target_properties(openxr_loader PROPERTIES IMPORTED_LOCATION ${KHRONOS_OPENXR_LIB_PATH})
find_package(OpenXR REQUIRED CONFIG)

## Setup the project sources
file(GLOB_RECURSE ANDROID_SOURCES ${PROJECT_SOURCE_DIR}/src/main/cpp/*.c**)
Expand All @@ -37,7 +32,7 @@ target_link_libraries(${PROJECT_NAME}
android
log
${GODOT-CPP}
openxr_loader
OpenXR::openxr_loader
)

# Add the compile flags
Expand Down
2 changes: 2 additions & 0 deletions godotopenxrkhronos/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ android {
}

buildFeatures {
prefab true
prefabPublishing true
}

Expand All @@ -65,6 +66,7 @@ android {

dependencies {
compileOnly libraries.godotAndroidLib
implementation "org.khronos.openxr:openxr_loader_for_android:1.0.34"
}

task cleanAssets(type: Delete) {
Expand Down
25 changes: 0 additions & 25 deletions thirdparty/khronos_openxr_sdk/README.md

This file was deleted.

6 changes: 0 additions & 6 deletions thirdparty/khronos_openxr_sdk/arm64-v8a/abi.json

This file was deleted.

Binary file not shown.
6 changes: 0 additions & 6 deletions thirdparty/khronos_openxr_sdk/x86_64/abi.json

This file was deleted.

Binary file not shown.

0 comments on commit c0650fe

Please sign in to comment.