The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

gradle: Allow python location to be explicitly specified in local.properties

+9
+4
build.gradle
··· 31 31 // If you are building on Windows, you will need to explicitly set eigenIncludeDir in your 32 32 // local.properties file since the default value provided below only makes sense on *nix 33 33 eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3' 34 + 35 + // If you're having trouble with a "can't find python" CMake error, you can specify the path to 36 + // Python 3 explicitly in local.properties with a property named "pythonBinary" 37 + pythonBinary = project.findProperty('pythonBinary') 34 38 } 35 39 36 40 allprojects {
+5
src/xrt/targets/openxr_android/build.gradle
··· 38 38 externalNativeBuild { 39 39 cmake { 40 40 arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE" 41 + 42 + } 43 + if (project.pythonBinary != null) { 44 + println "Path to Python 3 explicitly specified: ${project.pythonBinary}" 45 + cmake.arguments "-DPYTHON_EXECUTABLE=${project.pythonBinary}" 41 46 } 42 47 } 43 48 }