blob: 9d8dab98b1ba404aa1e8c498cb76d0ea0566371f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
LIBRARY()
OWNER(heretic)
PEERDIR(
build/platform/java/jdk
${JDK_RESOURCE_PEERDIR}
)
IF(OS_DARWIN)
SET(PLATFORM_NAME darwin)
ELSEIF(OS_LINUX)
SET(PLATFORM_NAME linux)
ELSEIF(OS_WINDOWS)
SET(PLATFORM_NAME win32)
ENDIF()
IF (USE_SYSTEM_JDK)
SET(JDK_ROOT ${USE_SYSTEM_JDK})
ELSE()
SET(JDK_ROOT ${JDK_DEFAULT_RESOURCE_GLOBAL})
ENDIF()
IF (PLATFORM_NAME)
CFLAGS(GLOBAL -I${JDK_ROOT}/include)
CFLAGS(GLOBAL -I${JDK_ROOT}/include/${PLATFORM_NAME})
ELSE()
MESSAGE(FATAL_ERROR Unsupported platform for jni)
ENDIF()
END()
|