mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
gradle: Allow python location to be explicitly specified in local.properties
This commit is contained in:
parent
ed519b1601
commit
cb09e68f0c
|
@ -31,6 +31,10 @@ ext {
|
||||||
// If you are building on Windows, you will need to explicitly set eigenIncludeDir in your
|
// If you are building on Windows, you will need to explicitly set eigenIncludeDir in your
|
||||||
// local.properties file since the default value provided below only makes sense on *nix
|
// local.properties file since the default value provided below only makes sense on *nix
|
||||||
eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3'
|
eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3'
|
||||||
|
|
||||||
|
// If you're having trouble with a "can't find python" CMake error, you can specify the path to
|
||||||
|
// Python 3 explicitly in local.properties with a property named "pythonBinary"
|
||||||
|
pythonBinary = project.findProperty('pythonBinary')
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
|
|
@ -38,6 +38,11 @@ android {
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"
|
arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"
|
||||||
|
|
||||||
|
}
|
||||||
|
if (project.pythonBinary != null) {
|
||||||
|
println "Path to Python 3 explicitly specified: ${project.pythonBinary}"
|
||||||
|
cmake.arguments "-DPYTHON_EXECUTABLE=${project.pythonBinary}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue