Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/CMakeLists.txt
Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | if(SECP256K1_ENABLE_JNI) | ||||
endif() | endif() | ||||
find_package(Java REQUIRED) | find_package(Java REQUIRED) | ||||
find_package(JNI REQUIRED) | find_package(JNI REQUIRED) | ||||
include(UseJava) | include(UseJava) | ||||
add_library(secp256k1_jni SHARED | add_library(secp256k1_jni SHARED | ||||
src/java/org_bitcoin_NativeSecp256k1.c | src/java/org_bitcoin_NativeSecp256k1.c | ||||
src/java/org_bitcoin_Secp256k1Context.c | |||||
) | ) | ||||
install_shared_library(secp256k1_jni) | install_shared_library(secp256k1_jni) | ||||
target_include_directories(secp256k1_jni PUBLIC ${JNI_INCLUDE_DIRS}) | target_include_directories(secp256k1_jni PUBLIC ${JNI_INCLUDE_DIRS}) | ||||
# As per CMake documentation: the POSITION_INDEPENDENT_CODE property is set | # As per CMake documentation: the POSITION_INDEPENDENT_CODE property is set | ||||
# when a target is created. It defaults to True for SHARED or MODULE library | # when a target is created. It defaults to True for SHARED or MODULE library | ||||
# targets and False otherwise. | # targets and False otherwise. | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |