CMakeLists.txt: Find AT-specific jni.h
Updated the java CMakeLists file to set the JAVA_INCLUDE_PATH for Android Things. The JAVA SWIG wrapper will require the jni.h from the Android NDK. Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
FIND_PACKAGE (JNI REQUIRED)
|
FIND_PACKAGE (JNI REQUIRED)
|
||||||
|
|
||||||
|
if (PERIPHERALMAN)
|
||||||
|
# Override the JNI include directory for Android Things since these
|
||||||
|
# will require an Android-friendly jni.h
|
||||||
|
set(JAVA_INCLUDE_PATH "${ANDROID_SYSROOT}/usr/include")
|
||||||
|
endif()
|
||||||
|
|
||||||
include_directories (
|
include_directories (
|
||||||
${JAVA_INCLUDE_PATH}
|
${JAVA_INCLUDE_PATH}
|
||||||
${JAVA_INCLUDE_PATH2}
|
${JAVA_INCLUDE_PATH2}
|
||||||
|
|||||||
Reference in New Issue
Block a user