improvement
This commit is contained in:
parent
0caab36c0b
commit
b3224e5a2f
|
@ -8,23 +8,27 @@ ifeq ($(OS),Windows_NT)
|
||||||
LIBRARY_RESOURCE=ckzg4844jni.dll
|
LIBRARY_RESOURCE=ckzg4844jni.dll
|
||||||
else
|
else
|
||||||
CLANG_EXECUTABLE=clang
|
CLANG_EXECUTABLE=clang
|
||||||
GRADLE_COMMAND=./gradlew
|
GRADLE_COMMAND=./gradlew
|
||||||
UNAME_S := $(shell uname -s)
|
UNAME_S := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
CLANG_FLAGS=-fPIC -shared
|
CLANG_FLAGS=-fPIC -shared
|
||||||
JNI_INCLUDE_FOLDER=linux
|
JNI_INCLUDE_FOLDER=linux
|
||||||
LIBRARY_RESOURCE=libckzg4844jni.so
|
LIBRARY_RESOURCE=libckzg4844jni.so
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAME_S),Darwin)
|
ifeq ($(UNAME_S),Darwin)
|
||||||
ifeq ($(JAVA_HOME),)
|
ifeq ($(JAVA_HOME),)
|
||||||
JAVA_HOME := $(shell /usr/libexec/java_home)
|
JAVA_HOME := $(shell /usr/libexec/java_home)
|
||||||
endif
|
endif
|
||||||
CLANG_FLAGS=-dynamiclib
|
CLANG_FLAGS=-dynamiclib
|
||||||
JNI_INCLUDE_FOLDER=darwin
|
JNI_INCLUDE_FOLDER=darwin
|
||||||
LIBRARY_RESOURCE=libckzg4844jni.dylib
|
LIBRARY_RESOURCE=libckzg4844jni.dylib
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(JAVA_HOME),)
|
||||||
|
$(error JAVA_HOME is not set and autodetection failed)
|
||||||
|
endif
|
||||||
|
|
||||||
all: build test
|
all: build test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue