2001-05-04 17:47:58 +04:00
|
|
|
#
|
|
|
|
# This module finds if Java is installed and determines where the
|
|
|
|
# include files and libraries are. It also determines what the name of
|
|
|
|
# the library is. This code sets the following variables:
|
|
|
|
#
|
|
|
|
# JAVA_AWT_LIB_PATH = the path to where the jawt library is
|
|
|
|
# JAVA_INCLUDE_PATH = the path to where jni.h can be found
|
|
|
|
# JAVA_AWT_INCLUDE_PATH = the path to where jni.h can be found
|
|
|
|
#
|
2001-12-20 05:51:39 +03:00
|
|
|
|
2001-06-06 17:43:54 +04:00
|
|
|
FIND_LIBRARY(JAVA_AWT_LIBRARY jawt
|
2002-07-15 17:22:17 +04:00
|
|
|
PATHS /usr/lib
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/lib/java/jre/lib/i386
|
|
|
|
/usr/local/lib/java/jre/lib/i386
|
2002-11-14 17:38:45 +03:00
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/lib"
|
2002-07-15 17:22:17 +04:00
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/lib"
|
2001-06-06 17:43:54 +04:00
|
|
|
)
|
2001-05-04 17:47:58 +04:00
|
|
|
|
|
|
|
# add in the include path
|
2001-06-06 17:43:54 +04:00
|
|
|
FIND_PATH(JAVA_INCLUDE_PATH jni.h
|
|
|
|
/usr/include
|
|
|
|
/usr/local/include
|
2002-06-17 21:43:21 +04:00
|
|
|
/usr/lib/java/include
|
2002-07-15 17:22:17 +04:00
|
|
|
/usr/local/lib/java/include
|
2002-11-14 17:38:45 +03:00
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.4;JavaHome]/include"
|
2001-07-17 17:54:05 +04:00
|
|
|
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\JavaSoft\\Java Development Kit\\1.3;JavaHome]/include"
|
2001-06-06 17:43:54 +04:00
|
|
|
)
|
|
|
|
|
2001-05-04 18:13:37 +04:00
|
|
|
FIND_PATH(JAVA_INCLUDE_PATH2 jni_md.h
|
|
|
|
${JAVA_INCLUDE_PATH}/win32
|
|
|
|
${JAVA_INCLUDE_PATH}/linux
|
|
|
|
)
|
2001-06-06 17:43:54 +04:00
|
|
|
|
2001-12-19 00:21:54 +03:00
|
|
|
FIND_PATH(JAVA_AWT_INCLUDE_PATH jawt.h ${JAVA_INCLUDE_PATH} )
|
2001-12-20 05:51:39 +03:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(
|
|
|
|
JAVA_AWT_LIBRARY
|
|
|
|
JAVA_AWT_INCLUDE_PATH
|
|
|
|
JAVA_INCLUDE_PATH
|
|
|
|
JAVA_INCLUDE_PATH2
|
|
|
|
)
|