Improve NDK build error handling

Change-Id: I1dd51d8c5d3b8eef829f60a72c8c869e18b64830
This commit is contained in:
Keir Mierle
2018-02-21 15:57:01 -08:00
committed by Sameer Agarwal
parent 27789c0d96
commit d2090cd10a
+5
View File
@@ -79,6 +79,11 @@ ifneq ($(shell $(LOCAL_PATH)/assert_ndk_version.sh "r9d" $(NDK_ROOT)), true)
$(error Ceres requires NDK version r9d or greater)
endif
# Ceres requires Eigen to build.
ifndef EIGEN_PATH
$(error Ceres requires Eigen; please invoke via EIGEN_PATH=... ndk-build)
endif
EIGEN_PATH := $(EIGEN_PATH)
CERES_INCLUDE_PATHS := $(CERES_EXTRA_INCLUDES)
CERES_INCLUDE_PATHS += $(LOCAL_PATH)/../internal