Skip to content
Snippets Groups Projects
Commit 0868a90a authored by Ryan Pavlik's avatar Ryan Pavlik Committed by Jakob Bornecrantz
Browse files

gradle: Only forward EIGEN3_INCLUDE_DIR definition if we actually have it set.

parent d65829c6
No related branches found
No related tags found
No related merge requests found
...@@ -48,8 +48,8 @@ ext { ...@@ -48,8 +48,8 @@ ext {
sharedMinSdk = 26 sharedMinSdk = 26
// 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
eigenIncludeDir = project.findProperty('eigenIncludeDir') ?: '/usr/include/eigen3' eigenIncludeDir = project.findProperty('eigenIncludeDir')
// If you're having trouble with a "can't find python" CMake error, you can specify the path to // 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" // Python 3 explicitly in local.properties with a property named "pythonBinary"
......
...@@ -89,13 +89,17 @@ android { ...@@ -89,13 +89,17 @@ android {
externalNativeBuild { externalNativeBuild {
cmake { cmake {
arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}", "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE" arguments "-DANDROID_PLATFORM=26", "-DANDROID_STL=c++_shared", "-DANDROID_ARM_NEON=TRUE"
} }
if (project.pythonBinary != null) { if (project.pythonBinary != null) {
println "Path to Python 3 explicitly specified: ${project.pythonBinary}" println "Path to Python 3 explicitly specified: pythonBinary=${project.pythonBinary}"
cmake.arguments "-DPYTHON_EXECUTABLE=${project.pythonBinary}" cmake.arguments "-DPYTHON_EXECUTABLE=${project.pythonBinary}"
} }
if (project.eigenIncludeDir != null) {
println "Path to Eigen3 includes explicitly specified: eigenIncludeDir=${project.eigenIncludeDir}"
cmake.arguments "-DEIGEN3_INCLUDE_DIR=${project.eigenIncludeDir}"
}
} }
// Be sure to copy over licenses formatted as required. // Be sure to copy over licenses formatted as required.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment