-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get the JNI examples working with modern versions of the tools.
* Try and debug native builds some more * Slightly adjust CMakeLists.txt and build.sbt * Enable fortran because life is sad. * JDK11+ seems reasonable for "high performance" Fix the library we are loading. --------- Co-authored-by: Grigory Pomadchin <[email protected]>
- Loading branch information
Showing
96 changed files
with
115 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
include: | ||
- java: 17 | ||
- java: 11 | ||
- java: 8 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
################################################################ | ||
# A minimal CMake file that is compatible with sbt-jni # | ||
# # | ||
# All settings required by sbt-jni have been marked so, please # | ||
# add/modify/remove settings to build your specific library. # | ||
################################################################ | ||
|
||
cmake_minimum_required(VERSION 3.12) | ||
|
||
option(SBT "Set if invoked from sbt-jni" OFF) | ||
|
||
# Define project and related variables | ||
# (required by sbt-jni) please use semantic versioning | ||
# | ||
project (high-performance-spark) | ||
enable_language(Fortran) | ||
set(PROJECT_VERSION_MAJOR 0) | ||
set(PROJECT_VERSION_MINOR 0) | ||
set(PROJECT_VERSION_PATCH 0) | ||
|
||
# Setup JNI | ||
find_package(JNI REQUIRED) | ||
if (JNI_FOUND) | ||
message (STATUS "JNI include directories: ${JNI_INCLUDE_DIRS}") | ||
endif() | ||
|
||
# Include directories | ||
include_directories(.) | ||
include_directories(include) | ||
include_directories(${JNI_INCLUDE_DIRS}) | ||
|
||
# Sources | ||
file(GLOB LIB_SRC | ||
"*.c" | ||
"*.f95" | ||
"*.f*" | ||
"*.cc" | ||
"*.cpp" | ||
"./c/*.c" | ||
"./c/*.cpp" | ||
"./fortran/*.f95" | ||
"./fortran/*.f*" | ||
) | ||
|
||
# Setup installation targets | ||
# (required by sbt-jni) major version should always be appended to library name | ||
# | ||
set (LIB_NAME ${PROJECT_NAME}${PROJECT_VERSION_MAJOR}) | ||
add_library(${LIB_NAME} SHARED ${LIB_SRC}) | ||
install(TARGETS ${LIB_NAME} LIBRARY DESTINATION .) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.