Fix "Oculus SDK not found or older than 1.0" when uploading to Oculus store
This commit is contained in:
+2
-2
@@ -65,10 +65,10 @@ android {
|
||||
// for Vulkan, need at least 24
|
||||
// for AImage_getHardwareBuffer, API 26
|
||||
minSdkVersion 29
|
||||
compileSdkVersion 29
|
||||
compileSdkVersion 32
|
||||
targetSdkVersion 32 // for Oculus Store
|
||||
|
||||
versionName = "1.0"
|
||||
versionName = "0.19"
|
||||
versionCode = 1
|
||||
|
||||
externalNativeBuild {
|
||||
|
||||
@@ -27,7 +27,8 @@ if(ANDROID)
|
||||
find_library(AAUDIO_LIBRARY NAMES aaudio REQUIRED)
|
||||
target_link_libraries(wivrn ${ANDROID_LIBRARY} ${MEDIA_LIBRARY} ${AAUDIO_LIBRARY})
|
||||
|
||||
set(DYNAMIC_LOADER OFF)
|
||||
# The OpenXR loader must be dynamically loaded or the Oculus store will refuse it with "Oculus SDK not found or older than 1.0"
|
||||
set(DYNAMIC_LOADER ON)
|
||||
FetchContent_MakeAvailable(openxr_loader)
|
||||
target_link_libraries(wivrn openxr_loader)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user