mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
FFM build requires Java 25, Jextract 25. Generates FFM bindings during configure. JNI is default when the requirements are not met or can be forced. Presets added for maven and FFM - JNI is default selection. Enhanced Maven options will work with either JNI or FFM New Workflows for testing and maven uploads. Extensive documentation changes for java.
51 lines
1.3 KiB
CMake
51 lines
1.3 KiB
CMake
#-----------------------------------------------------------------------------
|
|
# Define Sources, one file per application
|
|
#-----------------------------------------------------------------------------
|
|
set (HDF_JAVA_EXAMPLES
|
|
H5Ex_D_Alloc.java
|
|
H5Ex_D_Checksum.java
|
|
H5Ex_D_Chunk.java
|
|
H5Ex_D_Compact.java
|
|
H5Ex_D_External.java
|
|
H5Ex_D_FillValue.java
|
|
H5Ex_D_Hyperslab.java
|
|
H5Ex_D_ReadWrite.java
|
|
H5Ex_D_Nbit.java
|
|
H5Ex_D_Transform.java
|
|
H5Ex_D_Sofloat.java
|
|
H5Ex_D_Soint.java
|
|
)
|
|
|
|
# Unlimited examples have known FFM memory issues - only include with JNI
|
|
if (HDF5_PROVIDES_JNI)
|
|
set (HDF_JAVA_EXAMPLES ${HDF_JAVA_EXAMPLES}
|
|
H5Ex_D_UnlimitedAdd.java
|
|
H5Ex_D_UnlimitedMod.java
|
|
)
|
|
endif ()
|
|
|
|
set (HDF_JAVA_ZLIB_EXAMPLES
|
|
H5Ex_D_Gzip.java
|
|
H5Ex_D_Shuffle.java
|
|
)
|
|
|
|
# UnlimitedGzip has known FFM memory issues - only include with JNI
|
|
if (HDF5_PROVIDES_JNI)
|
|
set (HDF_JAVA_ZLIB_EXAMPLES ${HDF_JAVA_ZLIB_EXAMPLES}
|
|
H5Ex_D_UnlimitedGzip.java
|
|
)
|
|
endif ()
|
|
|
|
set (HDF_JAVA_SZIP_EXAMPLES
|
|
H5Ex_D_Szip.java
|
|
)
|
|
|
|
# detect whether the encoder is present.
|
|
if (${HDF5_PROVIDES_ZLIB_SUPPORT})
|
|
set (HDF_JAVA_EXAMPLES ${HDF_JAVA_EXAMPLES} ${HDF_JAVA_ZLIB_EXAMPLES})
|
|
endif ()
|
|
|
|
if (${HDF5_PROVIDES_SZIP_SUPPORT})
|
|
set (HDF_JAVA_EXAMPLES ${HDF_JAVA_EXAMPLES} ${HDF_JAVA_SZIP_EXAMPLES})
|
|
endif ()
|