OpenXR - Add manifest for Pico

This commit is contained in:
Lubos 2022-09-24 21:22:55 +02:00
parent ca77240f36
commit ec22cee96a
2 changed files with 44 additions and 0 deletions

19
android/PicoManifest.xml Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-feature android:glEsVersion="0x00030001" />
<uses-feature android:name="android.hardware.vr.headtracking" android:version="1" android:required="true" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:logo="@drawable/ic_banner"
android:isGame="true"
android:banner="@drawable/tv_banner"
android:requestLegacyExternalStorage="true"
android:preserveLegacyExternalStorage="true">
<meta-data android:name="pvr.app.type" android:value="vr" />
</application>
</manifest>

View file

@ -103,6 +103,9 @@ android {
gold {
res.srcDirs = ['gold/res']
}
vr_pico {
manifest.srcFile 'PicoManifest.xml'
}
vr_quest {
manifest.srcFile 'QuestManifest.xml'
}
@ -145,6 +148,25 @@ android {
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
}
vr_pico {
applicationId 'org.ppsspp.ppsspp'
dimension "variant"
externalNativeBuild {
cmake {
// Available arguments listed at https://developer.android.com/ndk/guides/cmake.html
arguments '-DANDROID=true',
'-DANDROID_PLATFORM=android-16',
'-DANDROID_TOOLCHAIN=clang',
'-DANDROID_CPP_FEATURES=',
'-DANDROID_STL=c++_static',
'-DANDROID_ARM_NEON=TRUE',
'-DOPENXR=TRUE'
}
}
ndk {
abiFilters 'arm64-v8a'
}
}
vr_quest {
applicationId 'org.ppsspp.ppsspp'
dimension "variant"
@ -171,6 +193,9 @@ android {
'normalOptimized', // for testing
'normalRelease', // for Google Play releases
'goldRelease', // for Google Play releases
'vr_picoDebug', // for VR debugging on Pico
'vr_picoOptimized', // for VR testing on Pico
'vr_picoRelease', // for VR releases on Pico
'vr_questDebug', // for VR debugging on Quest
'vr_questOptimized',// for VR testing on Quest
'vr_questRelease', // for VR releases on Quest