I develop 3D engine (c++ in visual studio) for windows/android/android oculus.
On Android, I use AndroidManifest.xml
, where I need
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only">
VR_ONLY for oculus, and
<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_dual"/>
with VR_DUAL for mobile phones. Is there any way how to write any #if #def like in c++? Because now I have to rewrite this file every time I switch device.
I think if this works at all it's through gradle during the build process. check this links out: