Private
Public Access
2
0

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:
Noel Eck
2017-04-11 14:50:03 -07:00
parent 1d200840f4
commit 380d2cf638

View File

@@ -1,4 +1,11 @@
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 (
${JAVA_INCLUDE_PATH}
${JAVA_INCLUDE_PATH2}