mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
[svn-r27469] Merge from trunk with dual-binary CMake code.
Tested: local linux with CMake
This commit is contained in:
parent
0b4b73331d
commit
9e2434625d
@ -28,11 +28,12 @@ option (HDF5_ENABLE_Z_LIB_SUPPORT "Enable Zlib Filters" OFF)
|
||||
if (HDF5_ENABLE_Z_LIB_SUPPORT)
|
||||
if (NOT H5_ZLIB_HEADER)
|
||||
if (NOT ZLIB_USE_EXTERNAL)
|
||||
find_package (ZLIB NAMES ${ZLIB_PACKAGE_NAME}${HDF_PACKAGE_EXT})
|
||||
find_package (ZLIB NAMES ${ZLIB_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared)
|
||||
if (NOT ZLIB_FOUND)
|
||||
find_package (ZLIB) # Legacy find
|
||||
if (ZLIB_FOUND)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${ZLIB_LIBRARIES})
|
||||
set (LINK_SHARED_LIBS ${LINK_SHARED_LIBS} ${ZLIB_LIBRARIES})
|
||||
endif (ZLIB_FOUND)
|
||||
endif (NOT ZLIB_FOUND)
|
||||
endif (NOT ZLIB_USE_EXTERNAL)
|
||||
@ -45,7 +46,7 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT)
|
||||
set (ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
|
||||
else (ZLIB_FOUND)
|
||||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
EXTERNAL_ZLIB_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${LIB_TYPE})
|
||||
EXTERNAL_ZLIB_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT})
|
||||
set (H5_HAVE_FILTER_DEFLATE 1)
|
||||
set (H5_HAVE_ZLIB_H 1)
|
||||
set (H5_HAVE_LIBZ 1)
|
||||
@ -63,7 +64,10 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT)
|
||||
if (H5_HAVE_FILTER_DEFLATE)
|
||||
set (EXTERNAL_FILTERS "${EXTERNAL_FILTERS} DEFLATE")
|
||||
endif (H5_HAVE_FILTER_DEFLATE)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${ZLIB_LIBRARIES})
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (LINK_SHARED_LIBS ${LINK_SHARED_LIBS} ${ZLIB_SHARED_LIBRARY})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${ZLIB_STATIC_LIBRARY})
|
||||
INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS})
|
||||
message (STATUS "Filter ZLIB is ON")
|
||||
endif (HDF5_ENABLE_Z_LIB_SUPPORT)
|
||||
@ -75,11 +79,12 @@ option (HDF5_ENABLE_SZIP_SUPPORT "Use SZip Filter" OFF)
|
||||
if (HDF5_ENABLE_SZIP_SUPPORT)
|
||||
option (HDF5_ENABLE_SZIP_ENCODING "Use SZip Encoding" OFF)
|
||||
if (NOT SZIP_USE_EXTERNAL)
|
||||
find_package (SZIP NAMES ${SZIP_PACKAGE_NAME}${HDF_PACKAGE_EXT})
|
||||
find_package (SZIP NAMES ${SZIP_PACKAGE_NAME}${HDF_PACKAGE_EXT} COMPONENTS static shared)
|
||||
if (NOT SZIP_FOUND)
|
||||
find_package (SZIP) # Legacy find
|
||||
if (SZIP_FOUND)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${SZIP_LIBRARIES})
|
||||
set (LINK_SHARED_LIBS ${LINK_SHARED_LIBS} ${SZIP_LIBRARIES})
|
||||
endif (SZIP_FOUND)
|
||||
endif (NOT SZIP_FOUND)
|
||||
endif (NOT SZIP_USE_EXTERNAL)
|
||||
@ -88,10 +93,10 @@ if (HDF5_ENABLE_SZIP_SUPPORT)
|
||||
set (H5_HAVE_SZLIB_H 1)
|
||||
set (H5_HAVE_LIBSZ 1)
|
||||
set (SZIP_INCLUDE_DIR_GEN ${SZIP_INCLUDE_DIR})
|
||||
set (SZIP_INCLUDE_DIRS ${SZIP_INCLUDE_DIR})
|
||||
set (SZIP_INCLUDE_DIRS ${SZIP_INCLUDE_DIRS} ${SZIP_INCLUDE_DIR})
|
||||
else (SZIP_FOUND)
|
||||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
EXTERNAL_SZIP_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${LIB_TYPE} ${HDF5_ENABLE_SZIP_ENCODING})
|
||||
EXTERNAL_SZIP_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${HDF5_ENABLE_SZIP_ENCODING})
|
||||
set (H5_HAVE_FILTER_SZIP 1)
|
||||
set (H5_HAVE_SZLIB_H 1)
|
||||
set (H5_HAVE_LIBSZ 1)
|
||||
@ -100,7 +105,10 @@ if (HDF5_ENABLE_SZIP_SUPPORT)
|
||||
message (FATAL_ERROR "SZIP is Required for SZIP support in HDF5")
|
||||
endif (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
endif (SZIP_FOUND)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${SZIP_LIBRARIES})
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (LINK_SHARED_LIBS ${LINK_SHARED_LIBS} ${SZIP_SHARED_LIBRARY})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${SZIP_STATIC_LIBRARY})
|
||||
INCLUDE_DIRECTORIES (${SZIP_INCLUDE_DIRS})
|
||||
message (STATUS "Filter SZIP is ON")
|
||||
if (H5_HAVE_FILTER_SZIP)
|
||||
|
@ -167,11 +167,11 @@ install (
|
||||
option (HDF5_PACK_EXAMPLES "Package the HDF5 Library Examples Compressed File" OFF)
|
||||
if (HDF5_PACK_EXAMPLES)
|
||||
configure_file (
|
||||
${HDF_RESOURCES_DIR}/HDF518_Examples.cmake.in
|
||||
${HDF5_BINARY_DIR}/HDF518_Examples.cmake @ONLY
|
||||
${HDF_RESOURCES_DIR}/HDF5_Examples.cmake.in
|
||||
${HDF5_BINARY_DIR}/HDF5_Examples.cmake @ONLY
|
||||
)
|
||||
install (
|
||||
FILES ${HDF5_BINARY_DIR}/HDF518_Examples.cmake
|
||||
FILES ${HDF5_BINARY_DIR}/HDF5_Examples.cmake
|
||||
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
||||
COMPONENT hdfdocuments
|
||||
)
|
||||
@ -180,7 +180,7 @@ if (HDF5_PACK_EXAMPLES)
|
||||
COMMAND ${CMAKE_COMMAND} -E tar xzf ${HDF5_EXAMPLES_COMPRESSED_DIR}/${HDF5_EXAMPLES_COMPRESSED}
|
||||
)
|
||||
install (
|
||||
DIRECTORY ${HDF5_BINARY_DIR}/HDF5Examples-0.1.1-Source
|
||||
DIRECTORY ${HDF5_BINARY_DIR}/HDF5Examples
|
||||
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
||||
USE_SOURCE_PERMISSIONS
|
||||
COMPONENT hdfdocuments
|
||||
|
@ -87,6 +87,7 @@ endif ()
|
||||
# # Add the sub project
|
||||
# add_subdirectory (Utilities/hdf5-1.8)
|
||||
#-----------------------------------------------------------------------------
|
||||
string(TIMESTAMP CONFIG_DATE "%Y-%m-%d")
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Allow Visual Studio solution directories
|
||||
@ -138,18 +139,30 @@ set (HDF5_HL_F90_C_LIB_NAME "${HDF5_EXTERNAL_LIB_PREFIX}${HDF5_HL_F90_C_LIB_
|
||||
#-----------------------------------------------------------------------------
|
||||
# Set the target names of all the libraries
|
||||
#-----------------------------------------------------------------------------
|
||||
set (HDF5_LIB_TARGET ${HDF5_LIB_CORENAME})
|
||||
set (HDF5_TEST_LIB_TARGET ${HDF5_TEST_LIB_CORENAME})
|
||||
set (HDF5_CPP_LIB_TARGET ${HDF5_CPP_LIB_CORENAME})
|
||||
set (HDF5_HL_LIB_TARGET ${HDF5_HL_LIB_CORENAME})
|
||||
set (HDF5_HL_CPP_LIB_TARGET ${HDF5_HL_CPP_LIB_CORENAME})
|
||||
set (HDF5_TOOLS_LIB_TARGET ${HDF5_TOOLS_LIB_CORENAME})
|
||||
set (HDF5_F90_LIB_TARGET ${HDF5_F90_LIB_CORENAME})
|
||||
set (HDF5_F90_C_LIB_TARGET ${HDF5_F90_C_LIB_CORENAME})
|
||||
set (HDF5_F90_TEST_LIB_TARGET ${HDF5_F90_TEST_LIB_CORENAME})
|
||||
set (HDF5_F90_C_TEST_LIB_TARGET ${HDF5_F90_C_TEST_LIB_CORENAME})
|
||||
set (HDF5_HL_F90_LIB_TARGET ${HDF5_HL_F90_LIB_CORENAME})
|
||||
set (HDF5_HL_F90_C_LIB_TARGET ${HDF5_HL_F90_C_LIB_CORENAME})
|
||||
set (HDF5_LIB_TARGET "${HDF5_LIB_CORENAME}-static")
|
||||
set (HDF5_TEST_LIB_TARGET "${HDF5_TEST_LIB_CORENAME}-static")
|
||||
set (HDF5_CPP_LIB_TARGET "${HDF5_CPP_LIB_CORENAME}-static")
|
||||
set (HDF5_HL_LIB_TARGET "${HDF5_HL_LIB_CORENAME}-static")
|
||||
set (HDF5_HL_CPP_LIB_TARGET "${HDF5_HL_CPP_LIB_CORENAME}-static")
|
||||
set (HDF5_TOOLS_LIB_TARGET "${HDF5_TOOLS_LIB_CORENAME}-static")
|
||||
set (HDF5_F90_LIB_TARGET "${HDF5_F90_LIB_CORENAME}-static")
|
||||
set (HDF5_F90_C_LIB_TARGET "${HDF5_F90_C_LIB_CORENAME}-static")
|
||||
set (HDF5_F90_TEST_LIB_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-static")
|
||||
set (HDF5_F90_C_TEST_LIB_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}-static")
|
||||
set (HDF5_HL_F90_LIB_TARGET "${HDF5_HL_F90_LIB_CORENAME}-static")
|
||||
set (HDF5_HL_F90_C_LIB_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}-static")
|
||||
set (HDF5_LIBSH_TARGET "${HDF5_LIB_CORENAME}-shared")
|
||||
set (HDF5_TEST_LIBSH_TARGET "${HDF5_TEST_LIB_CORENAME}-shared")
|
||||
set (HDF5_CPP_LIBSH_TARGET "${HDF5_CPP_LIB_CORENAME}-shared")
|
||||
set (HDF5_HL_LIBSH_TARGET "${HDF5_HL_LIB_CORENAME}-shared")
|
||||
set (HDF5_HL_CPP_LIBSH_TARGET "${HDF5_HL_CPP_LIB_CORENAME}-shared")
|
||||
set (HDF5_TOOLS_LIBSH_TARGET "${HDF5_TOOLS_LIB_CORENAME}-shared")
|
||||
set (HDF5_F90_LIBSH_TARGET "${HDF5_F90_LIB_CORENAME}-shared")
|
||||
set (HDF5_F90_C_LIBSH_TARGET "${HDF5_F90_C_LIB_CORENAME}-shared")
|
||||
set (HDF5_F90_TEST_LIBSH_TARGET "${HDF5_F90_TEST_LIB_CORENAME}-shared")
|
||||
set (HDF5_F90_C_TEST_LIBSH_TARGET "${HDF5_F90_C_TEST_LIB_CORENAME}-shared")
|
||||
set (HDF5_HL_F90_LIBSH_TARGET "${HDF5_HL_F90_LIB_CORENAME}-shared")
|
||||
set (HDF5_HL_F90_C_LIBSH_TARGET "${HDF5_HL_F90_C_LIB_CORENAME}-shared")
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Define some CMake variables for use later in the project
|
||||
@ -308,20 +321,15 @@ if (HDF5_BUILD_FRAMEWORKS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_FRAMEWORKS AND NOT BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Option to Build Shared/Static libs, default is static
|
||||
# Option to Build Shared and Static libs, default is static
|
||||
#-----------------------------------------------------------------------------
|
||||
option (BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
|
||||
set (LIB_TYPE STATIC)
|
||||
option (BUILD_SHARED_LIBS "Build Shared Libraries" ON)
|
||||
set (H5_ENABLE_SHARED_LIB NO)
|
||||
set (H5_ENABLE_STATIC_LIB NO)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (LIB_TYPE SHARED)
|
||||
set (H5_BUILT_AS_DYNAMIC_LIB 1)
|
||||
set (H5_ENABLE_SHARED_LIB YES)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
set (H5_BUILT_AS_STATIC_LIB 1)
|
||||
set (H5_ENABLE_STATIC_LIB YES)
|
||||
set (LINK_SHARED_LIBS ${LINK_LIBS})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set (H5_ENABLE_STATIC_LIB YES)
|
||||
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -471,6 +479,7 @@ endif (HDF5_ENABLE_PARALLEL)
|
||||
# Parallel IO usage requires MPI to be Linked and Included
|
||||
if (H5_HAVE_PARALLEL)
|
||||
set (LINK_LIBS ${LINK_LIBS} ${MPI_C_LIBRARIES})
|
||||
set (LINK_SHARED_LIBS ${LINK_SHARED_LIBS} ${MPI_C_LIBRARIES})
|
||||
if (MPI_C_LINK_FLAGS)
|
||||
set (CMAKE_EXE_LINKER_FLAGS "${MPI_C_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")
|
||||
endif (MPI_C_LINK_FLAGS)
|
||||
@ -571,9 +580,15 @@ add_subdirectory (${HDF5_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/src)
|
||||
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
if (ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
||||
ADD_DEPENDENCIES (${HDF5_LIB_TARGET} ZLIB)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_dependencies (${HDF5_LIBSH_TARGET} ZLIB)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
||||
if (SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
||||
ADD_DEPENDENCIES (${HDF5_LIB_TARGET} SZIP)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_dependencies (${HDF5_LIBSH_TARGET} SZIP)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
||||
endif (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "SVN" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
||||
|
||||
@ -707,7 +722,6 @@ endif (EXISTS "${HDF5_SOURCE_DIR}/c++" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/c++"
|
||||
# Check if Fortran's default real is double precision. If it is and HL is
|
||||
# being built then configure should fail due to bug HDFFV-889.
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
if (HDF5_BUILD_FORTRAN AND HDF5_BUILD_HL_LIB )
|
||||
if (NOT FORTRAN_DEFAULT_REAL_NOT_DOUBLE)
|
||||
message (FATAL_ERROR " **** Fortran high-level routines are not supported when the default REAL is DOUBLE PRECISION, use HDF5_BUILD_HL_LIB:BOOL=OFF **** ")
|
||||
|
1
MANIFEST
1
MANIFEST
@ -2331,6 +2331,7 @@
|
||||
./config/cmake/UserMacros/Windows_MT.cmake
|
||||
|
||||
# CMake-specific Examples Files
|
||||
./config/cmake/HDF5_Examples.cmake.in
|
||||
./config/cmake/HDF518_Examples.cmake.in
|
||||
./release_docs/USING_CMake_Examples.txt
|
||||
|
||||
|
@ -122,7 +122,10 @@ DIST_COMMON = $(top_srcdir)/config/commence.am $(srcdir)/Makefile.in \
|
||||
subdir = .
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
|
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.9.226 currently under development
|
||||
HDF5 version 1.9.227 currently under development
|
||||
Please refer to the release_docs/INSTALL file for installation instructions.
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
8592
aclocal.m4
vendored
8592
aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -6,15 +6,6 @@ PROJECT (HDF5_CPP)
|
||||
#-----------------------------------------------------------------------------
|
||||
add_definitions (${HDF_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared/Static Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (CPP_BUILT_AS_DYNAMIC_LIB 1)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
set (CPP_BUILT_AS_STATIC_LIB 1)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Generate configure file
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -102,7 +102,10 @@ TESTS =
|
||||
subdir = c++
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -34,16 +34,16 @@ set (tutr_examples
|
||||
|
||||
foreach (example ${examples})
|
||||
add_executable (cpp_ex_${example} ${HDF5_CPP_EXAMPLES_SOURCE_DIR}/${example}.cpp)
|
||||
TARGET_NAMING (cpp_ex_${example} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cpp_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cpp_ex_${example} STATIC)
|
||||
TARGET_C_PROPERTIES (cpp_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (cpp_ex_${example} ${HDF5_CPP_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (cpp_ex_${example} PROPERTIES FOLDER examples/cpp)
|
||||
endforeach (example ${examples})
|
||||
|
||||
foreach (example ${tutr_examples})
|
||||
add_executable (cpp_ex_${example} ${HDF5_CPP_EXAMPLES_SOURCE_DIR}/${example}.cpp)
|
||||
TARGET_NAMING (cpp_ex_${example} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cpp_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cpp_ex_${example} STATIC)
|
||||
TARGET_C_PROPERTIES (cpp_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (cpp_ex_${example} ${HDF5_CPP_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (cpp_ex_${example} PROPERTIES FOLDER examples/cpp)
|
||||
endforeach (example ${tutr_examples})
|
||||
|
@ -108,7 +108,10 @@ TESTS = $(TEST_SCRIPT)
|
||||
subdir = c++/examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -1,13 +1,6 @@
|
||||
cmake_minimum_required (VERSION 3.1.0)
|
||||
PROJECT (HDF5_CPP_SRC)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared/Static Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (CPP_BUILT_AS_DYNAMIC_LIB 1)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Generate configure file
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -83,15 +76,31 @@ set (CPP_HDRS
|
||||
${HDF5_CPP_SRC_SOURCE_DIR}/H5VarLenType.h
|
||||
)
|
||||
|
||||
add_library (${HDF5_CPP_LIB_TARGET} ${LIB_TYPE} ${CPP_SRCS} ${CPP_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_CPP_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_CPP_LIB_TARGET} STATIC ${CPP_SRCS} ${CPP_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_CPP_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_CPP_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_CPP_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_CPP_LIB_TARGET} ${HDF5_CPP_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_CPP_LIB_TARGET} ${HDF5_CPP_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_CPP_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/cpp
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
set (install_targets ${HDF5_CPP_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_CPP_LIBSH_TARGET} SHARED ${CPP_SRCS} ${CPP_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_CPP_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_CPP_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_CPP_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_CPP_LIBSH_TARGET} ${HDF5_CPP_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_CPP_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/cpp
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
set (install_targets ${install_targets} ${HDF5_CPP_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
@ -110,12 +119,12 @@ install (
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_CPP_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} cpplibraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_CPP_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} cpplibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_CPP_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT cpplibraries
|
||||
|
@ -107,7 +107,10 @@ TESTS =
|
||||
subdir = c++/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -35,8 +35,8 @@ set (srcdir ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
configure_file (${HDF5_CPP_TEST_SOURCE_DIR}/H5srcdir_str.h.in H5srcdir_str.h @ONLY)
|
||||
|
||||
add_executable (cpp_testhdf5 ${CPP_TEST_SRCS} )
|
||||
TARGET_NAMING (cpp_testhdf5 ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cpp_testhdf5 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cpp_testhdf5 STATIC)
|
||||
TARGET_C_PROPERTIES (cpp_testhdf5 STATIC " " " ")
|
||||
target_link_libraries (cpp_testhdf5
|
||||
${HDF5_CPP_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
|
@ -104,7 +104,10 @@ TESTS = $(am__EXEEXT_1)
|
||||
subdir = c++/test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -32,6 +32,18 @@ if (HDF5_METADATA_TRACE_FILE)
|
||||
endif (HDF5_METADATA_TRACE_FILE)
|
||||
MARK_AS_ADVANCED (HDF5_METADATA_TRACE_FILE)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Decide whether the data accuracy has higher priority during data
|
||||
# conversions. If not, some hard conversions will still be prefered even
|
||||
# though the data may be wrong (for example, some compilers don't
|
||||
# support denormalized floating values) to maximize speed.
|
||||
#
|
||||
option (HDF5_WANT_DATA_ACCURACY "IF data accuracy is guaranteed during data conversions" ON)
|
||||
if (HDF5_WANT_DATA_ACCURACY)
|
||||
set (H5_WANT_DATA_ACCURACY 1)
|
||||
endif (HDF5_WANT_DATA_ACCURACY)
|
||||
MARK_AS_ADVANCED (HDF5_WANT_DATA_ACCURACY)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Decide whether the presence of user's exception handling functions is
|
||||
# checked and data conversion exceptions are returned. This is mainly
|
||||
@ -231,6 +243,24 @@ H5ConversionTests (H5_LDOUBLE_TO_LONG_SPECIAL "Checking IF your system converts
|
||||
#
|
||||
H5ConversionTests (H5_LONG_TO_LDOUBLE_SPECIAL "Checking IF your system can convert (unsigned) long to long double values with special algorithm")
|
||||
# ----------------------------------------------------------------------
|
||||
# Set the flag to indicate that the machine can accurately convert
|
||||
# 'long double' to '(unsigned) long long' values. (This flag should be set for
|
||||
# all machines, except for Mac OS 10.4 and SGI IRIX64 6.5. When the bit sequence
|
||||
# of long double is 0x4351ccf385ebc8a0bfcc2a3c..., the values of (unsigned)long long
|
||||
# start to go wrong on these two machines. Adjusting it higher to
|
||||
# 0x4351ccf385ebc8a0dfcc... or 0x4351ccf385ebc8a0ffcc... will make the converted
|
||||
# values wildly wrong. This test detects this wrong behavior and disable the test.
|
||||
#
|
||||
H5ConversionTests (H5_LDOUBLE_TO_LLONG_ACCURATE "Checking IF correctly converting long double to (unsigned) long long values")
|
||||
# ----------------------------------------------------------------------
|
||||
# Set the flag to indicate that the machine can accurately convert
|
||||
# '(unsigned) long long' to 'long double' values. (This flag should be set for
|
||||
# all machines, except for Mac OS 10.4, when the bit sequences are 003fff...,
|
||||
# 007fff..., 00ffff..., 01ffff..., ..., 7fffff..., the converted values are twice
|
||||
# as big as they should be.
|
||||
#
|
||||
H5ConversionTests (H5_LLONG_TO_LDOUBLE_CORRECT "Checking IF correctly converting (unsigned) long long to long double values")
|
||||
# ----------------------------------------------------------------------
|
||||
# Check if pointer alignments are enforced
|
||||
#
|
||||
H5ConversionTests (H5_NO_ALIGNMENT_RESTRICTIONS "Checking IF alignment restrictions are strictly enforced")
|
||||
@ -249,6 +279,3 @@ set (FC ${CMAKE_Fortran_COMPILER})
|
||||
foreach (LINK_LIB ${LINK_LIBS})
|
||||
set (LIBS "${LIBS} -l${LINK_LIB}")
|
||||
endforeach (LINK_LIB ${LINK_LIBS})
|
||||
|
||||
|
||||
|
||||
|
@ -116,6 +116,88 @@ done:
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef H5_LDOUBLE_TO_LLONG_ACCURATE_TEST
|
||||
int main(void)
|
||||
{
|
||||
long double ld = 20041683600089727.779961L;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int ret = 0;
|
||||
|
||||
if(sizeof(long double) == 16) {
|
||||
/*make sure the long double type is the same as the failing type
|
||||
*which has 16 bytes in size and 11 bits of exponent. If it is,
|
||||
*the bit sequence should be like below. It's not
|
||||
*a decent way to check but this info isn't available. */
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x43 && s[1]==0x51 && s[2]==0xcc && s[3]==0xf3 &&
|
||||
s[4]==0x85 && s[5]==0xeb && s[6]==0xc8 && s[7]==0xa0 &&
|
||||
s[8]==0xbf && s[9]==0xcc && s[10]==0x2a && s[11]==0x3c) {
|
||||
|
||||
/*slightly adjust the bit sequence (s[8]=0xdf). The converted
|
||||
*values will go wild on Mac OS 10.4 and IRIX64 6.5.*/
|
||||
s[0]=0x43; s[1]=0x51; s[2]=0xcc; s[3]=0xf3;
|
||||
s[4]=0x85; s[5]=0xeb; s[6]=0xc8; s[7]=0xa0;
|
||||
s[8]=0xdf; s[9]=0xcc; s[10]=0x2a; s[11]=0x3c;
|
||||
s[12]=0x3d; s[13]=0x85; s[14]=0x56; s[15]=0x20;
|
||||
|
||||
memcpy(&ld, s, 16);
|
||||
ll = (long long)ld;
|
||||
ull = (unsigned long long)ld;
|
||||
|
||||
if(ll != 20041683600089728 || ull != 20041683600089728)
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef H5_LLONG_TO_LDOUBLE_CORRECT_TEST
|
||||
int main(void)
|
||||
{
|
||||
long double ld;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int flag=0, ret=0;
|
||||
|
||||
/*Determine if long double has 16 byte in size, 11 bit exponent, and
|
||||
*the bias is 0x3ff */
|
||||
if(sizeof(long double) == 16) {
|
||||
ld = 1.0L;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x3f && s[1]==0xf0 && s[2]==0x00 && s[3]==0x00 &&
|
||||
s[4]==0x00 && s[5]==0x00 && s[6]==0x00 && s[7]==0x00)
|
||||
flag = 1;
|
||||
}
|
||||
|
||||
if(flag==1 && sizeof(long long)==8) {
|
||||
ll = 0x01ffffffffffffffLL;
|
||||
ld = (long double)ll;
|
||||
memcpy(s, &ld, 16);
|
||||
/*Check if the bit sequence is as supposed to be*/
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
if(flag==1 && sizeof(unsigned long long)==8) {
|
||||
ull = 0x01ffffffffffffffULL;
|
||||
ld = (long double)ull;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef H5_NO_ALIGNMENT_RESTRICTIONS_TEST
|
||||
|
||||
#include <stdlib.h>
|
||||
|
@ -15,24 +15,6 @@
|
||||
/* Define if using a Windows compiler (i.e. Visual Studio) */
|
||||
#cmakedefine H5_HAVE_VISUAL_STUDIO @H5_HAVE_VISUAL_STUDIO@
|
||||
|
||||
/* Defined if HDF5 was built with CMake AND build as a shared library */
|
||||
#cmakedefine H5_BUILT_AS_DYNAMIC_LIB @H5_BUILT_AS_DYNAMIC_LIB@
|
||||
|
||||
/* Defined if HDF5 was built with CMake AND build as a static library */
|
||||
#cmakedefine H5_BUILT_AS_STATIC_LIB @H5_BUILT_AS_STATIC_LIB@
|
||||
|
||||
/* Defined if HDF5 CPP was built with CMake AND build as a shared library */
|
||||
#cmakedefine H5_CPP_BUILT_AS_DYNAMIC_LIB @H5_CPP_BUILT_AS_DYNAMIC_LIB@
|
||||
|
||||
/* Defined if HDF5 CPP was built with CMake AND build as a static library */
|
||||
#cmakedefine H5_CPP_BUILT_AS_STATIC_LIB @H5_CPP_BUILT_AS_STATIC_LIB@
|
||||
|
||||
/* Defined if HDF5 HL was built with CMake AND build as a shared library */
|
||||
#cmakedefine H5_HL_BUILT_AS_DYNAMIC_LIB @H5_HL_BUILT_AS_DYNAMIC_LIB@
|
||||
|
||||
/* Defined if HDF5 HL was built with CMake AND build as a static library */
|
||||
#cmakedefine H5_HL_BUILT_AS_STATIC_LIB @H5_HL_BUILT_AS_STATIC_LIB@
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine H5_AC_APPLE_UNIVERSAL_BUILD @H5_AC_APPLE_UNIVERSAL_BUILD@
|
||||
|
||||
@ -410,10 +392,18 @@
|
||||
/* Define if HDF5's high-level library headers should be included in hdf5.h */
|
||||
#cmakedefine H5_INCLUDE_HL @H5_INCLUDE_HL@
|
||||
|
||||
/* Define if your system can convert long double to (unsigned) long long
|
||||
values correctly. */
|
||||
#cmakedefine H5_LDOUBLE_TO_LLONG_ACCURATE @H5_LDOUBLE_TO_LLONG_ACCURATE@
|
||||
|
||||
/* Define if your system converts long double to (unsigned) long values with
|
||||
special algorithm. */
|
||||
#cmakedefine H5_LDOUBLE_TO_LONG_SPECIAL @H5_LDOUBLE_TO_LONG_SPECIAL@
|
||||
|
||||
/* Define if your system can convert (unsigned) long long to long double
|
||||
values correctly. */
|
||||
#cmakedefine H5_LLONG_TO_LDOUBLE_CORRECT @H5_LLONG_TO_LDOUBLE_CORRECT@
|
||||
|
||||
/* Define if your system can convert (unsigned) long to long double values
|
||||
with special algorithm. */
|
||||
#cmakedefine H5_LONG_TO_LDOUBLE_SPECIAL @H5_LONG_TO_LDOUBLE_SPECIAL@
|
||||
@ -618,6 +608,9 @@
|
||||
/* Version number of package */
|
||||
#define H5_VERSION "@HDF5_PACKAGE_VERSION_STRING@"
|
||||
|
||||
/* Data accuracy is prefered to speed during data conversions */
|
||||
#cmakedefine H5_WANT_DATA_ACCURACY @H5_WANT_DATA_ACCURACY@
|
||||
|
||||
/* Check exception handling functions during data conversions */
|
||||
#cmakedefine H5_WANT_DCONV_EXCEPTION @H5_WANT_DCONV_EXCEPTION@
|
||||
|
||||
|
126
config/cmake/HDF5_Examples.cmake.in
Normal file
126
config/cmake/HDF5_Examples.cmake.in
Normal file
@ -0,0 +1,126 @@
|
||||
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
||||
###############################################################################################################
|
||||
# This script will build and run the examples from a compressed file
|
||||
# Execute from a command line:
|
||||
# ctest -S HDF5_Examples.cmake,HDF5Examples -C Release -V -O test.log
|
||||
###############################################################################################################
|
||||
|
||||
set(INSTALLDIR "@CMAKE_INSTALL_PREFIX@")
|
||||
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
|
||||
set(STATICLIBRARIES "@H5_ENABLE_STATIC_LIB@")
|
||||
set(CTEST_SOURCE_NAME ${CTEST_SCRIPT_ARG})
|
||||
set(CTEST_DASHBOARD_ROOT ${CTEST_SCRIPT_DIRECTORY})
|
||||
set(CTEST_BUILD_CONFIGURATION "Release")
|
||||
#set(NO_MAC_FORTRAN "true")
|
||||
#set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=ON")
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF_ENABLE_F2003:BOOL=ON")
|
||||
#set(CTEST_USE_TAR_SOURCE "${CTEST_SCRIPT_ARG}")
|
||||
|
||||
###############################################################################################################
|
||||
# Adjust the following SET Commands as needed
|
||||
###############################################################################################################
|
||||
if(WIN32)
|
||||
if(STATICLIBRARIES)
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF")
|
||||
endif(STATICLIBRARIES)
|
||||
set(ENV{HDF5_DIR} "${INSTALLDIR}/cmake")
|
||||
set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}\\build)
|
||||
set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_SOURCE_NAME}")
|
||||
set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_BINARY_NAME}")
|
||||
else(WIN32)
|
||||
if(STATICLIBRARIES)
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_ANSI_CFLAGS:STRING=-fPIC")
|
||||
endif(STATICLIBRARIES)
|
||||
set(ENV{HDF5_DIR} "${INSTALLDIR}/share/cmake")
|
||||
set(ENV{LD_LIBRARY_PATH} "${INSTALLDIR}/lib")
|
||||
set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}/build)
|
||||
set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}")
|
||||
set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}/${CTEST_BINARY_NAME}")
|
||||
endif(WIN32)
|
||||
|
||||
###############################################################################################################
|
||||
# For any comments please contact cdashhelp@hdfgroup.org
|
||||
#
|
||||
###############################################################################################################
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# MAC machines need special option
|
||||
#-----------------------------------------------------------------------------
|
||||
if(APPLE)
|
||||
# Compiler choice
|
||||
execute_process(COMMAND xcrun --find cc OUTPUT_VARIABLE XCODE_CC OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
execute_process(COMMAND xcrun --find c++ OUTPUT_VARIABLE XCODE_CXX OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
set(ENV{CC} "${XCODE_CC}")
|
||||
set(ENV{CXX} "${XCODE_CXX}")
|
||||
if(NOT NO_MAC_FORTRAN)
|
||||
# Shared fortran is not supported, build static
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF -DCMAKE_ANSI_CFLAGS:STRING=-fPIC")
|
||||
else(NOT NO_MAC_FORTRAN)
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=OFF")
|
||||
endif(NOT NO_MAC_FORTRAN)
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DCTEST_USE_LAUNCHERS:BOOL=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF")
|
||||
endif(APPLE)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
set(CTEST_CMAKE_COMMAND "\"${CMAKE_COMMAND}\"")
|
||||
## --------------------------
|
||||
if(CTEST_USE_TAR_SOURCE)
|
||||
## Uncompress source if tar or zip file provided
|
||||
## --------------------------
|
||||
if(WIN32)
|
||||
message(STATUS "extracting... [${CMAKE_EXECUTABLE_NAME} -E tar -xvf ${CTEST_USE_TAR_SOURCE}.zip]")
|
||||
execute_process(COMMAND ${CMAKE_EXECUTABLE_NAME} -E tar -xvf ${CTEST_USE_TAR_SOURCE}.zip RESULT_VARIABLE rv)
|
||||
else(WIN32)
|
||||
message(STATUS "extracting... [${CMAKE_EXECUTABLE_NAME} -E tar -xvf ${CTEST_USE_TAR_SOURCE}.tar]")
|
||||
execute_process(COMMAND ${CMAKE_EXECUTABLE_NAME} -E tar -xvf ${CTEST_USE_TAR_SOURCE}.tar RESULT_VARIABLE rv)
|
||||
endif(WIN32)
|
||||
|
||||
if(NOT rv EQUAL 0)
|
||||
message(STATUS "extracting... [error-(${rv}) clean up]")
|
||||
file(REMOVE_RECURSE "${CTEST_SOURCE_DIRECTORY}")
|
||||
message(FATAL_ERROR "error: extract of ${CTEST_SOURCE_NAME} failed")
|
||||
endif(NOT rv EQUAL 0)
|
||||
endif(CTEST_USE_TAR_SOURCE)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
## Clear the build directory
|
||||
## --------------------------
|
||||
set(CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
|
||||
if (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}")
|
||||
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
|
||||
else (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}")
|
||||
file(MAKE_DIRECTORY "${CTEST_BINARY_DIRECTORY}")
|
||||
endif (EXISTS "${CTEST_BINARY_DIRECTORY}" AND IS_DIRECTORY "${CTEST_BINARY_DIRECTORY}")
|
||||
|
||||
# Use multiple CPU cores to build
|
||||
include(ProcessorCount)
|
||||
ProcessorCount(N)
|
||||
if(NOT N EQUAL 0)
|
||||
if(NOT WIN32)
|
||||
set(CTEST_BUILD_FLAGS -j${N})
|
||||
endif(NOT WIN32)
|
||||
set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})
|
||||
endif()
|
||||
set (CTEST_CONFIGURE_COMMAND
|
||||
"${CTEST_CMAKE_COMMAND} -C \"${CTEST_SOURCE_DIRECTORY}/config/cmake/cacheinit.cmake\" -DCMAKE_BUILD_TYPE:STRING=${CTEST_BUILD_CONFIGURATION} ${BUILD_OPTIONS} \"-G${CTEST_CMAKE_GENERATOR}\" \"${CTEST_SOURCE_DIRECTORY}\""
|
||||
)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
## -- set output to english
|
||||
set($ENV{LC_MESSAGES} "en_EN")
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
configure_file(${CTEST_SOURCE_DIRECTORY}/config/cmake/CTestCustom.cmake ${CTEST_BINARY_DIRECTORY}/CTestCustom.cmake)
|
||||
ctest_read_custom_files ("${CTEST_BINARY_DIRECTORY}")
|
||||
## NORMAL process
|
||||
## --------------------------
|
||||
ctest_start (Experimental)
|
||||
ctest_configure (BUILD "${CTEST_BINARY_DIRECTORY}")
|
||||
ctest_build (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND)
|
||||
ctest_test (BUILD "${CTEST_BINARY_DIRECTORY}" APPEND ${ctest_test_args} RETURN_VALUE res)
|
||||
if(res GREATER 0)
|
||||
message (FATAL_ERROR "tests FAILED")
|
||||
endif(res GREATER 0)
|
||||
#-----------------------------------------------------------------------------
|
||||
##############################################################################################################
|
||||
message(STATUS "DONE")
|
@ -26,18 +26,18 @@ After Installation
|
||||
===========================================================================
|
||||
The examples folder, HDF5Examples, located in the
|
||||
HDF5 install folder, can be built and tested with CMake and the supplied
|
||||
HDF518_Examples.cmake file. The HDF518_Examples.cmake expects HDF5 to have
|
||||
HDF5_Examples.cmake file. The HDF5_Examples.cmake expects HDF5 to have
|
||||
been installed in the default location with above compilers. Also, the CMake
|
||||
utility should be installed.
|
||||
|
||||
To test the installation with the examples;
|
||||
Create a directory to run the examples.
|
||||
Copy HDF5Examples folder to this directory.
|
||||
Copy HDF518_Examples.cmake to this directory.
|
||||
Edit HDF518_Examples.cmake line 8 to set INSTALLDIR to where HDF5 is installed.
|
||||
Copy HDF5_Examples.cmake to this directory.
|
||||
Edit HDF5_Examples.cmake line 8 to set INSTALLDIR to where HDF5 is installed.
|
||||
(The default should be correct unless you installed into a different folder.)
|
||||
Execute from this directory:
|
||||
ctest -S HDF518_Examples.cmake,HDF5Examples-0.1.1-Source -C Release -V -O test.log
|
||||
ctest -S HDF5_Examples.cmake,HDF5Examples -C Release -V -O test.log
|
||||
|
||||
When executed, the ctest script will save the results to the log file, test.log, as
|
||||
indicated by the ctest command. If you wish the to see more build and test information,
|
||||
|
@ -4,18 +4,12 @@
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
set (BUILD_SHARED_LIBS ON CACHE BOOL "Build Shared Libraries" FORCE)
|
||||
|
||||
set (BUILD_TESTING ON CACHE BOOL "Build HDF5 Unit Testing" FORCE)
|
||||
|
||||
set (CMAKE_INSTALL_FRAMEWORK_PREFIX "Library/Frameworks" CACHE STRING "Frameworks installation directory" FORCE)
|
||||
|
||||
set (HDF_PACKAGE_EXT "" CACHE STRING "Name of HDF package extension" FORCE)
|
||||
|
||||
set (HDF5_BUILD_FORTRAN ON CACHE BOOL "Build FORTRAN support" FORCE)
|
||||
|
||||
set (HDF5_ENABLE_F2003 ON CACHE BOOL "Enable FORTRAN 2003 Standard" FORCE)
|
||||
|
||||
set (HDF5_BUILD_GENERATORS OFF CACHE BOOL "Build Test Generators" FORCE)
|
||||
|
||||
set (HDF5_ENABLE_Z_LIB_SUPPORT ON CACHE BOOL "Enable Zlib Filters" FORCE)
|
||||
|
@ -6,6 +6,8 @@
|
||||
string(TOUPPER @HDF5_PACKAGE@ HDF5_PACKAGE_NAME)
|
||||
|
||||
set (${HDF5_PACKAGE_NAME}_VALID_COMPONENTS
|
||||
static
|
||||
shared
|
||||
C
|
||||
CXX
|
||||
Fortran
|
||||
@ -67,12 +69,6 @@ if (${HDF5_PACKAGE_NAME}_BUILD_TOOLS)
|
||||
set_and_check (${HDF5_PACKAGE_NAME}_TOOLS_DIR "@PACKAGE_CURRENT_BUILD_DIR@/bin")
|
||||
endif ()
|
||||
|
||||
if (HDF5_BUILD_SHARED_LIBS)
|
||||
set (H5_BUILT_AS_DYNAMIC_LIB 1)
|
||||
else ()
|
||||
set (H5_BUILT_AS_STATIC_LIB 1)
|
||||
endif ()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Version Strings
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -94,14 +90,25 @@ if (NOT TARGET "@HDF5_PACKAGE@")
|
||||
include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@@HDF_PACKAGE_EXT@-targets.cmake)
|
||||
endif ()
|
||||
|
||||
# Handle default component :
|
||||
# Handle default component(static) :
|
||||
if (NOT ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
set (${HDF5_PACKAGE_NAME}_FIND_COMPONENTS C HL)
|
||||
set (${HDF5_PACKAGE_NAME}_FIND_REQUIRED_C true)
|
||||
set (${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
||||
set (${HDF5_PACKAGE_NAME}_FIND_COMPONENTS C HL static)
|
||||
set (${HDF5_PACKAGE_NAME}_FIND_REQUIRED_static_C true)
|
||||
endif ()
|
||||
|
||||
# Handle requested components:
|
||||
list (REMOVE_DUPLICATES ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
if (${comp} STREQUAL "shared")
|
||||
list (REMOVE_ITEM ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS ${comp})
|
||||
set (${HDF5_PACKAGE_NAME}_LIB_TYPE ${${HDF5_PACKAGE_NAME}_LIB_TYPE} ${comp})
|
||||
elseif (${comp} STREQUAL "static")
|
||||
list (REMOVE_ITEM ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS ${comp})
|
||||
set (${HDF5_PACKAGE_NAME}_LIB_TYPE ${${HDF5_PACKAGE_NAME}_LIB_TYPE} ${comp})
|
||||
endif ()
|
||||
endforeach ()
|
||||
foreach (libtype IN LISTS ${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
||||
foreach (comp IN LISTS ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
set (hdf5_comp2)
|
||||
if (${comp} STREQUAL "C")
|
||||
@ -121,26 +128,28 @@ list (REMOVE_DUPLICATES ${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
set (hdf5_comp2 "hdf5_hl_f90cstub")
|
||||
set (hdf5_comp "hdf5_hl_fortran")
|
||||
endif ()
|
||||
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp}" HAVE_COMP)
|
||||
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp}-${libtype}" HAVE_COMP)
|
||||
if (${HAVE_COMP} LESS 0)
|
||||
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 0)
|
||||
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 0)
|
||||
else ()
|
||||
if (hdf5_comp2)
|
||||
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp2}" HAVE_COMP2)
|
||||
list (FIND ${HDF5_PACKAGE_NAME}_EXPORT_LIBRARIES "${hdf5_comp2}-${libtype}" HAVE_COMP2)
|
||||
if (${HAVE_COMP2} LESS 0)
|
||||
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 0)
|
||||
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 0)
|
||||
else ()
|
||||
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 1)
|
||||
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
|
||||
set (${HDF5_PACKAGE_NAME}_LIBRARIES ${${HDF5_PACKAGE_NAME}_LIBRARIES} ${hdf5_comp2} ${hdf5_comp})
|
||||
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 1)
|
||||
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_${libtype}_LIBRARY COMP_LIBRARY)
|
||||
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} ${hdf5_comp2}-${libtype} ${hdf5_comp}-${libtype})
|
||||
endif ()
|
||||
else ()
|
||||
set (${HDF5_PACKAGE_NAME}_${comp}_FOUND 1)
|
||||
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
|
||||
set (${HDF5_PACKAGE_NAME}_LIBRARIES ${${HDF5_PACKAGE_NAME}_LIBRARIES} ${hdf5_comp})
|
||||
set (${HDF5_PACKAGE_NAME}_${libtype}_${comp}_FOUND 1)
|
||||
string(TOUPPER ${HDF5_PACKAGE_NAME}_${comp}_${libtype}_LIBRARY COMP_LIBRARY)
|
||||
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} ${hdf5_comp}-${libtype})
|
||||
endif ()
|
||||
endif ()
|
||||
endforeach ()
|
||||
endforeach ()
|
||||
|
||||
check_required_components(${HDF5_PACKAGE_NAME}_FIND_COMPONENTS)
|
||||
|
||||
foreach (libtype IN LISTS ${HDF5_PACKAGE_NAME}_LIB_TYPE)
|
||||
check_required_components(${HDF5_PACKAGE_NAME}_${libtype})
|
||||
endforeach ()
|
||||
|
@ -42,7 +42,7 @@ Languages:
|
||||
@BUILD_FORTRAN_CONDITIONAL_TRUE@ H5 Fortran Flags: @H5_FCFLAGS@
|
||||
@BUILD_FORTRAN_CONDITIONAL_TRUE@ AM Fortran Flags: @AM_FCFLAGS@
|
||||
@BUILD_FORTRAN_CONDITIONAL_TRUE@ Shared Fortran Library: @H5_ENABLE_SHARED_LIB@
|
||||
@BUILD_FORTRAN_CONDITIONAL_TRUE@ Static Fortran Library: @H5_ENABLE_STATIC_LIB@
|
||||
@BUILD_FORTRAN_CONDITIONAL_TRUE@ Static Fortran Library: YES
|
||||
|
||||
C++: @HDF5_BUILD_CPP_LIB@
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ C++ Compiler: @CMAKE_CXX_COMPILER@
|
||||
@ -50,7 +50,7 @@ Languages:
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ H5 C++ Flags: @H5_CXXFLAGS@
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ AM C++ Flags: @AM_CXXFLAGS@
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ Shared C++ Library: @H5_ENABLE_SHARED_LIB@
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ Static C++ Library: @H5_ENABLE_STATIC_LIB@
|
||||
@BUILD_CXX_CONDITIONAL_TRUE@ Static C++ Library: YES
|
||||
|
||||
Features:
|
||||
---------
|
||||
|
240
configure
vendored
240
configure
vendored
@ -1,7 +1,7 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac Id: configure.ac 22697 2012-08-19 14:35:47Z hdftest .
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.69 for HDF5 1.9.226.
|
||||
# Generated by GNU Autoconf 2.69 for HDF5 1.9.227.
|
||||
#
|
||||
# Report bugs to <help@hdfgroup.org>.
|
||||
#
|
||||
@ -591,8 +591,8 @@ MAKEFLAGS=
|
||||
# Identity of this package.
|
||||
PACKAGE_NAME='HDF5'
|
||||
PACKAGE_TARNAME='hdf5'
|
||||
PACKAGE_VERSION='1.9.226'
|
||||
PACKAGE_STRING='HDF5 1.9.226'
|
||||
PACKAGE_VERSION='1.9.227'
|
||||
PACKAGE_STRING='HDF5 1.9.227'
|
||||
PACKAGE_BUGREPORT='help@hdfgroup.org'
|
||||
PACKAGE_URL=''
|
||||
|
||||
@ -918,6 +918,7 @@ with_mpe
|
||||
enable_direct_vfd
|
||||
with_default_plugindir
|
||||
enable_dconv_exception
|
||||
enable_dconv_accuracy
|
||||
enable_build_all
|
||||
enable_deprecated_symbols
|
||||
with_default_api_version
|
||||
@ -1479,7 +1480,7 @@ if test "$ac_init_help" = "long"; then
|
||||
# Omit some internal or obsolete options to make the list less imposing.
|
||||
# This message is too long to be a string in the A/UX 3.1 sh.
|
||||
cat <<_ACEOF
|
||||
\`configure' configures HDF5 1.9.226 to adapt to many kinds of systems.
|
||||
\`configure' configures HDF5 1.9.227 to adapt to many kinds of systems.
|
||||
|
||||
Usage: $0 [OPTION]... [VAR=VALUE]...
|
||||
|
||||
@ -1549,7 +1550,7 @@ fi
|
||||
|
||||
if test -n "$ac_init_help"; then
|
||||
case $ac_init_help in
|
||||
short | recursive ) echo "Configuration of HDF5 1.9.226:";;
|
||||
short | recursive ) echo "Configuration of HDF5 1.9.227:";;
|
||||
esac
|
||||
cat <<\_ACEOF
|
||||
|
||||
@ -1613,6 +1614,8 @@ Optional Features:
|
||||
--enable-dconv-exception
|
||||
if exception handling functions is checked during
|
||||
data conversions [default=yes]
|
||||
--enable-dconv-accuracy if data accuracy is guaranteed during data
|
||||
conversions [default=yes]
|
||||
--enable-build-all Build helper programs that only developers should
|
||||
need [default=no]
|
||||
--enable-deprecated-symbols
|
||||
@ -1736,7 +1739,7 @@ fi
|
||||
test -n "$ac_init_help" && exit $ac_status
|
||||
if $ac_init_version; then
|
||||
cat <<\_ACEOF
|
||||
HDF5 configure 1.9.226
|
||||
HDF5 configure 1.9.227
|
||||
generated by GNU Autoconf 2.69
|
||||
|
||||
Copyright (C) 2012 Free Software Foundation, Inc.
|
||||
@ -2667,7 +2670,7 @@ cat >config.log <<_ACEOF
|
||||
This file contains any messages produced by compilers while
|
||||
running configure, to aid debugging if configure makes a mistake.
|
||||
|
||||
It was created by HDF5 $as_me 1.9.226, which was
|
||||
It was created by HDF5 $as_me 1.9.227, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
$ $0 $@
|
||||
@ -3592,7 +3595,7 @@ fi
|
||||
|
||||
# Define the identity of the package.
|
||||
PACKAGE='hdf5'
|
||||
VERSION='1.9.226'
|
||||
VERSION='1.9.227'
|
||||
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
@ -12578,6 +12581,10 @@ _lt_linker_boilerplate=`cat conftest.err`
|
||||
$RM -r conftest*
|
||||
|
||||
|
||||
## CAVEAT EMPTOR:
|
||||
## There is no encapsulation within the following macros, do not change
|
||||
## the running order or otherwise move them around unless you know exactly
|
||||
## what you are doing...
|
||||
if test -n "$compiler"; then
|
||||
|
||||
lt_prog_compiler_no_builtin_flag=
|
||||
@ -28255,6 +28262,33 @@ else
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Decide whether the data accuracy has higher priority during data
|
||||
## conversions. If not, some hard conversions will still be prefered even
|
||||
## though the data may be wrong (for example, some compilers don't
|
||||
## support denormalized floating values) to maximize speed.
|
||||
##
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether data accuracy is guaranteed during data conversions" >&5
|
||||
$as_echo_n "checking whether data accuracy is guaranteed during data conversions... " >&6; }
|
||||
# Check whether --enable-dconv-accuracy was given.
|
||||
if test "${enable_dconv_accuracy+set}" = set; then :
|
||||
enableval=$enable_dconv_accuracy; DATA_ACCURACY=$enableval
|
||||
else
|
||||
DATA_ACCURACY=yes
|
||||
fi
|
||||
|
||||
|
||||
if test "$DATA_ACCURACY" = "yes"; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
$as_echo "#define WANT_DATA_ACCURACY 1" >>confdefs.h
|
||||
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine has window style pathname,
|
||||
## that is, "drive-letter:\" (e.g. "C:") or "drive-letter:/" (e.g. "C:/").
|
||||
@ -28518,6 +28552,190 @@ else
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine can accurately convert
|
||||
## 'long double' to '(unsigned) long long' values. (This flag should
|
||||
## be set for all machines, except for Mac OS 10.4, SGI IRIX64 6.5 and
|
||||
## Powerpc Linux using XL compilers.
|
||||
## When the bit sequence of long double is 0x4351ccf385ebc8a0bfcc2a3c...,
|
||||
## the values of (unsigned)long long start to go wrong on these
|
||||
## two machines. Adjusting it higher to 0x4351ccf385ebc8a0dfcc... or
|
||||
## 0x4351ccf385ebc8a0ffcc... will make the converted values wildly wrong.
|
||||
## This test detects this wrong behavior and disable the test.
|
||||
##
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if correctly converting long double to (unsigned) long long values" >&5
|
||||
$as_echo_n "checking if correctly converting long double to (unsigned) long long values... " >&6; }
|
||||
|
||||
if test ${ac_cv_sizeof_long_double} = 0; then
|
||||
hdf5_cv_ldouble_to_llong_accurate=${hdf5_cv_ldouble_to_llong_accurate=no}
|
||||
else
|
||||
if ${hdf5_cv_ldouble_to_llong_accurate+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
as_fn_error $? "cannot run test program while cross compiling
|
||||
See \`config.log' for more details" "$LINENO" 5; }
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
long double ld = 20041683600089727.779961L;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int ret = 0;
|
||||
|
||||
if(sizeof(long double) == 16) {
|
||||
/*make sure the long double type is the same as the failing type
|
||||
*which has 16 bytes in size and 11 bits of exponent. If it is,
|
||||
*the bit sequence should be like below. It's not
|
||||
*a decent way to check but this info isn't available. */
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x43 && s[1]==0x51 && s[2]==0xcc && s[3]==0xf3 &&
|
||||
s[4]==0x85 && s[5]==0xeb && s[6]==0xc8 && s[7]==0xa0 &&
|
||||
s[8]==0xbf && s[9]==0xcc && s[10]==0x2a && s[11]==0x3c) {
|
||||
|
||||
/*slightly adjust the bit sequence (s[8]=0xdf). The converted
|
||||
*values will go wild on Mac OS 10.4 and IRIX64 6.5.*/
|
||||
s[0]=0x43; s[1]=0x51; s[2]=0xcc; s[3]=0xf3;
|
||||
s[4]=0x85; s[5]=0xeb; s[6]=0xc8; s[7]=0xa0;
|
||||
s[8]=0xdf; s[9]=0xcc; s[10]=0x2a; s[11]=0x3c;
|
||||
s[12]=0x3d; s[13]=0x85; s[14]=0x56; s[15]=0x20;
|
||||
|
||||
memcpy(&ld, s, 16);
|
||||
ll = (long long)ld;
|
||||
ull = (unsigned long long)ld;
|
||||
|
||||
if(ll != 20041683600089728 || ull != 20041683600089728)
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
hdf5_cv_ldouble_to_llong_accurate=yes
|
||||
else
|
||||
hdf5_cv_ldouble_to_llong_accurate=no
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if test ${hdf5_cv_ldouble_to_llong_accurate} = "yes"; then
|
||||
|
||||
$as_echo "#define LDOUBLE_TO_LLONG_ACCURATE 1" >>confdefs.h
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine can accurately convert
|
||||
## '(unsigned) long long' to 'long double' values. (This flag should be
|
||||
## set for all machines, except for Mac OS 10.4 and Powerpc Linux using
|
||||
## XL compilers.
|
||||
## When the bit sequences are 003fff..., 007fff..., 00ffff..., 01ffff...,
|
||||
## ..., 7fffff..., the converted values are twice as big as they should be.
|
||||
##
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if correctly converting (unsigned) long long to long double values" >&5
|
||||
$as_echo_n "checking if correctly converting (unsigned) long long to long double values... " >&6; }
|
||||
|
||||
if test ${ac_cv_sizeof_long_double} = 0; then
|
||||
hdf5_cv_llong_to_ldouble_correct=${hdf5_cv_llong_to_ldouble_correct=no}
|
||||
else
|
||||
if ${hdf5_cv_llong_to_ldouble_correct+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if test "$cross_compiling" = yes; then :
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
as_fn_error $? "cannot run test program while cross compiling
|
||||
See \`config.log' for more details" "$LINENO" 5; }
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
long double ld;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int flag=0, ret=0;
|
||||
|
||||
/*Determine if long double has 16 byte in size, 11 bit exponent, and
|
||||
*the bias is 0x3ff */
|
||||
if(sizeof(long double) == 16) {
|
||||
ld = 1.0L;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x3f && s[1]==0xf0 && s[2]==0x00 && s[3]==0x00 &&
|
||||
s[4]==0x00 && s[5]==0x00 && s[6]==0x00 && s[7]==0x00)
|
||||
flag = 1;
|
||||
}
|
||||
|
||||
if(flag==1 && sizeof(long long)==8) {
|
||||
ll = 0x01ffffffffffffffLL;
|
||||
ld = (long double)ll;
|
||||
memcpy(s, &ld, 16);
|
||||
/*Check if the bit sequence is as supposed to be*/
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
if(flag==1 && sizeof(unsigned long long)==8) {
|
||||
ull = 0x01ffffffffffffffULL;
|
||||
ld = (long double)ull;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
|
||||
_ACEOF
|
||||
if ac_fn_c_try_run "$LINENO"; then :
|
||||
hdf5_cv_llong_to_ldouble_correct=yes
|
||||
else
|
||||
hdf5_cv_llong_to_ldouble_correct=no
|
||||
fi
|
||||
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
||||
conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if test ${hdf5_cv_llong_to_ldouble_correct} = "yes"; then
|
||||
|
||||
$as_echo "#define LLONG_TO_LDOUBLE_CORRECT 1" >>confdefs.h
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
else
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
$as_echo "no" >&6; }
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set some variables for general configuration information to be saved
|
||||
## and installed with the libraries (used to generate libhdf5.settings).
|
||||
@ -29368,7 +29586,7 @@ Usage: $0 [OPTIONS]
|
||||
Report bugs to <bug-libtool@gnu.org>."
|
||||
|
||||
lt_cl_version="\
|
||||
HDF5 config.lt 1.9.226
|
||||
HDF5 config.lt 1.9.227
|
||||
configured by $0, generated by GNU Autoconf 2.69.
|
||||
|
||||
Copyright (C) 2011 Free Software Foundation, Inc.
|
||||
@ -31464,7 +31682,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
||||
# report actual input values of CONFIG_FILES etc. instead of their
|
||||
# values after options handling.
|
||||
ac_log="
|
||||
This file was extended by HDF5 $as_me 1.9.226, which was
|
||||
This file was extended by HDF5 $as_me 1.9.227, which was
|
||||
generated by GNU Autoconf 2.69. Invocation command line was
|
||||
|
||||
CONFIG_FILES = $CONFIG_FILES
|
||||
@ -31530,7 +31748,7 @@ _ACEOF
|
||||
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
||||
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
||||
ac_cs_version="\\
|
||||
HDF5 config.status 1.9.226
|
||||
HDF5 config.status 1.9.227
|
||||
configured by $0, generated by GNU Autoconf 2.69,
|
||||
with options \\"\$ac_cs_config\\"
|
||||
|
||||
|
155
configure.ac
155
configure.ac
@ -26,7 +26,7 @@ AC_PREREQ([2.69])
|
||||
## NOTE: Do not forget to change the version number here when we do a
|
||||
## release!!!
|
||||
##
|
||||
AC_INIT([HDF5], [1.9.226], [help@hdfgroup.org])
|
||||
AC_INIT([HDF5], [1.9.227], [help@hdfgroup.org])
|
||||
|
||||
|
||||
|
||||
@ -2373,6 +2373,27 @@ else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Decide whether the data accuracy has higher priority during data
|
||||
## conversions. If not, some hard conversions will still be prefered even
|
||||
## though the data may be wrong (for example, some compilers don't
|
||||
## support denormalized floating values) to maximize speed.
|
||||
##
|
||||
AC_MSG_CHECKING([whether data accuracy is guaranteed during data conversions])
|
||||
AC_ARG_ENABLE([dconv-accuracy],
|
||||
[AS_HELP_STRING([--enable-dconv-accuracy],
|
||||
[if data accuracy is guaranteed during
|
||||
data conversions [default=yes]])],
|
||||
[DATA_ACCURACY=$enableval], [DATA_ACCURACY=yes])
|
||||
|
||||
if test "$DATA_ACCURACY" = "yes"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_DEFINE([WANT_DATA_ACCURACY], [1],
|
||||
[Data accuracy is prefered to speed during data conversions])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine has window style pathname,
|
||||
## that is, "drive-letter:\" (e.g. "C:") or "drive-letter:/" (e.g. "C:/").
|
||||
@ -2552,6 +2573,138 @@ else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine can accurately convert
|
||||
## 'long double' to '(unsigned) long long' values. (This flag should
|
||||
## be set for all machines, except for Mac OS 10.4, SGI IRIX64 6.5 and
|
||||
## Powerpc Linux using XL compilers.
|
||||
## When the bit sequence of long double is 0x4351ccf385ebc8a0bfcc2a3c...,
|
||||
## the values of (unsigned)long long start to go wrong on these
|
||||
## two machines. Adjusting it higher to 0x4351ccf385ebc8a0dfcc... or
|
||||
## 0x4351ccf385ebc8a0ffcc... will make the converted values wildly wrong.
|
||||
## This test detects this wrong behavior and disable the test.
|
||||
##
|
||||
AC_MSG_CHECKING([if correctly converting long double to (unsigned) long long values])
|
||||
|
||||
if test ${ac_cv_sizeof_long_double} = 0; then
|
||||
hdf5_cv_ldouble_to_llong_accurate=${hdf5_cv_ldouble_to_llong_accurate=no}
|
||||
else
|
||||
AC_CACHE_VAL([hdf5_cv_ldouble_to_llong_accurate],
|
||||
[AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
long double ld = 20041683600089727.779961L;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int ret = 0;
|
||||
|
||||
if(sizeof(long double) == 16) {
|
||||
/*make sure the long double type is the same as the failing type
|
||||
*which has 16 bytes in size and 11 bits of exponent. If it is,
|
||||
*the bit sequence should be like below. It's not
|
||||
*a decent way to check but this info isn't available. */
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x43 && s[1]==0x51 && s[2]==0xcc && s[3]==0xf3 &&
|
||||
s[4]==0x85 && s[5]==0xeb && s[6]==0xc8 && s[7]==0xa0 &&
|
||||
s[8]==0xbf && s[9]==0xcc && s[10]==0x2a && s[11]==0x3c) {
|
||||
|
||||
/*slightly adjust the bit sequence (s[8]=0xdf). The converted
|
||||
*values will go wild on Mac OS 10.4 and IRIX64 6.5.*/
|
||||
s[0]=0x43; s[1]=0x51; s[2]=0xcc; s[3]=0xf3;
|
||||
s[4]=0x85; s[5]=0xeb; s[6]=0xc8; s[7]=0xa0;
|
||||
s[8]=0xdf; s[9]=0xcc; s[10]=0x2a; s[11]=0x3c;
|
||||
s[12]=0x3d; s[13]=0x85; s[14]=0x56; s[15]=0x20;
|
||||
|
||||
memcpy(&ld, s, 16);
|
||||
ll = (long long)ld;
|
||||
ull = (unsigned long long)ld;
|
||||
|
||||
if(ll != 20041683600089728 || ull != 20041683600089728)
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
], [hdf5_cv_ldouble_to_llong_accurate=yes], [hdf5_cv_ldouble_to_llong_accurate=no],)])
|
||||
fi
|
||||
|
||||
if test ${hdf5_cv_ldouble_to_llong_accurate} = "yes"; then
|
||||
AC_DEFINE([LDOUBLE_TO_LLONG_ACCURATE], [1],
|
||||
[Define if your system can convert long double to (unsigned) long long values correctly.])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set the flag to indicate that the machine can accurately convert
|
||||
## '(unsigned) long long' to 'long double' values. (This flag should be
|
||||
## set for all machines, except for Mac OS 10.4 and Powerpc Linux using
|
||||
## XL compilers.
|
||||
## When the bit sequences are 003fff..., 007fff..., 00ffff..., 01ffff...,
|
||||
## ..., 7fffff..., the converted values are twice as big as they should be.
|
||||
##
|
||||
AC_MSG_CHECKING([if correctly converting (unsigned) long long to long double values])
|
||||
|
||||
if test ${ac_cv_sizeof_long_double} = 0; then
|
||||
hdf5_cv_llong_to_ldouble_correct=${hdf5_cv_llong_to_ldouble_correct=no}
|
||||
else
|
||||
AC_CACHE_VAL([hdf5_cv_llong_to_ldouble_correct],
|
||||
[AC_TRY_RUN([
|
||||
int main(void)
|
||||
{
|
||||
long double ld;
|
||||
long long ll;
|
||||
unsigned long long ull;
|
||||
unsigned char s[16];
|
||||
int flag=0, ret=0;
|
||||
|
||||
/*Determine if long double has 16 byte in size, 11 bit exponent, and
|
||||
*the bias is 0x3ff */
|
||||
if(sizeof(long double) == 16) {
|
||||
ld = 1.0L;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]==0x3f && s[1]==0xf0 && s[2]==0x00 && s[3]==0x00 &&
|
||||
s[4]==0x00 && s[5]==0x00 && s[6]==0x00 && s[7]==0x00)
|
||||
flag = 1;
|
||||
}
|
||||
|
||||
if(flag==1 && sizeof(long long)==8) {
|
||||
ll = 0x01ffffffffffffffLL;
|
||||
ld = (long double)ll;
|
||||
memcpy(s, &ld, 16);
|
||||
/*Check if the bit sequence is as supposed to be*/
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
if(flag==1 && sizeof(unsigned long long)==8) {
|
||||
ull = 0x01ffffffffffffffULL;
|
||||
ld = (long double)ull;
|
||||
memcpy(s, &ld, 16);
|
||||
if(s[0]!=0x43 || s[1]!=0x7f || s[2]!=0xff || s[3]!=0xff ||
|
||||
s[4]!=0xff || s[5]!=0xff || s[6]!=0xff || s[7]!=0xff ||
|
||||
s[8]!=0xf0 || s[9]!=0x00 || s[10]!=0x00 || s[11]!=0x00)
|
||||
ret = 1;
|
||||
}
|
||||
done:
|
||||
exit(ret);
|
||||
}
|
||||
], [hdf5_cv_llong_to_ldouble_correct=yes], [hdf5_cv_llong_to_ldouble_correct=no],)])
|
||||
fi
|
||||
|
||||
if test ${hdf5_cv_llong_to_ldouble_correct} = "yes"; then
|
||||
AC_DEFINE([LLONG_TO_LDOUBLE_CORRECT], [1],
|
||||
[Define if your system can convert (unsigned) long long to long double values correctly.])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
|
||||
## ----------------------------------------------------------------------
|
||||
## Set some variables for general configuration information to be saved
|
||||
## and installed with the libraries (used to generate libhdf5.settings).
|
||||
|
@ -38,18 +38,32 @@ set (examples
|
||||
|
||||
foreach (example ${examples})
|
||||
add_executable (${example} ${HDF5_EXAMPLES_SOURCE_DIR}/${example}.c)
|
||||
TARGET_NAMING (${example} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (${example} STATIC)
|
||||
TARGET_C_PROPERTIES (${example} STATIC " " " ")
|
||||
target_link_libraries (${example} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (${example} PROPERTIES FOLDER examples)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (${example}-shared ${HDF5_EXAMPLES_SOURCE_DIR}/${example}.c)
|
||||
TARGET_NAMING (${example}-shared SHARED)
|
||||
TARGET_C_PROPERTIES (${example}-shared SHARED " " " ")
|
||||
target_link_libraries (${example}-shared ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (${example}-shared PROPERTIES FOLDER examples)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (example ${examples})
|
||||
|
||||
if (H5_HAVE_PARALLEL)
|
||||
add_executable (ph5example ${HDF5_EXAMPLES_SOURCE_DIR}/ph5example.c)
|
||||
TARGET_NAMING (ph5example ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (ph5example ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (ph5example STATIC)
|
||||
TARGET_C_PROPERTIES (ph5example STATIC " " " ")
|
||||
target_link_libraries (ph5example ${HDF5_LIB_TARGET})
|
||||
set_target_properties (ph5example PROPERTIES FOLDER examples)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (ph5example-shared ${HDF5_EXAMPLES_SOURCE_DIR}/ph5example.c)
|
||||
TARGET_NAMING (ph5example-shared SHARED)
|
||||
TARGET_C_PROPERTIES (ph5example-shared SHARED " " " ")
|
||||
target_link_libraries (ph5example-shared ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (ph5example-shared PROPERTIES FOLDER examples)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (H5_HAVE_PARALLEL)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
|
@ -5,6 +5,10 @@
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/red ${PROJECT_BINARY_DIR}/blue ${PROJECT_BINARY_DIR}/u2w)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5EX-shared")
|
||||
file (MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/H5EX-shared/red ${PROJECT_BINARY_DIR}/H5EX-shared/blue ${PROJECT_BINARY_DIR}/H5EX-shared/u2w)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
# Remove any output file left over from previous test run
|
||||
add_test (
|
||||
@ -56,6 +60,61 @@
|
||||
set (last_test "EXAMPLES-${example}")
|
||||
endforeach (example ${examples})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
# Remove any output file left over from previous test run
|
||||
add_test (
|
||||
NAME EXAMPLES-shared-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
Attributes.h5
|
||||
btrees_file.h5
|
||||
cmprss.h5
|
||||
default_file.h5
|
||||
dset.h5
|
||||
extend.h5
|
||||
extlink_prefix_source.h5
|
||||
extlink_source.h5
|
||||
extlink_target.h5
|
||||
group.h5
|
||||
groups.h5
|
||||
hard_link.h5
|
||||
mount1.h5
|
||||
mount2.h5
|
||||
one_index_file.h5
|
||||
only_dspaces_and_attrs_file.h5
|
||||
only_huge_mesgs_file.h5
|
||||
REF_REG.h5
|
||||
refere.h5
|
||||
SDS.h5
|
||||
SDScompound.h5
|
||||
SDSextendible.h5
|
||||
Select.h5
|
||||
separate_indexes_file.h5
|
||||
small_lists_file.h5
|
||||
soft_link.h5
|
||||
subset.h5
|
||||
unix2win.h5
|
||||
blue/prefix_target.h5
|
||||
red/prefix_target.h5
|
||||
u2w/u2w_target.h5
|
||||
WORKING_DIRECTORY
|
||||
${PROJECT_BINARY_DIR}/H5EX-shared
|
||||
)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (EXAMPLES-shared-clear-objects PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "EXAMPLES-shared-clear-objects")
|
||||
|
||||
foreach (example ${examples})
|
||||
add_test (NAME EXAMPLES-shared-${example} COMMAND $<TARGET_FILE:${example}-shared>)
|
||||
set_tests_properties (EXAMPLES-shared-${example} PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/H5EX-shared)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (EXAMPLES-shared-${example} PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "EXAMPLES-shared-${example}")
|
||||
endforeach (example ${examples})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
### Windows pops up a modal permission dialog on this test
|
||||
if (H5_HAVE_PARALLEL AND NOT WIN32)
|
||||
add_test (NAME EXAMPLES-ph5example COMMAND $<TARGET_FILE:ph5example>)
|
||||
@ -63,4 +122,12 @@
|
||||
set_tests_properties (EXAMPLES-ph5example PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "EXAMPLES-ph5example")
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME EXAMPLES-shared-ph5example COMMAND $<TARGET_FILE:ph5example-shared>)
|
||||
set_tests_properties (EXAMPLES-shared-ph5example PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/H5EX-shared)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (EXAMPLES-shared-ph5example PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "EXAMPLES-shared-ph5example")
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (H5_HAVE_PARALLEL AND NOT WIN32)
|
||||
|
@ -108,7 +108,10 @@ TESTS = $(TEST_SCRIPT)
|
||||
subdir = examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -106,7 +106,10 @@ TESTS =
|
||||
subdir = fortran
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -40,8 +40,8 @@ set (F2003_examples
|
||||
|
||||
foreach (example ${examples})
|
||||
add_executable (f90_ex_${example} ${HDF5_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
TARGET_NAMING (f90_ex_${example} ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (f90_ex_${example} STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (f90_ex_${example}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
@ -50,14 +50,29 @@ foreach (example ${examples})
|
||||
set_target_properties (f90_ex_${example} PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (f90_ex_${example}-shared ${HDF5_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
TARGET_NAMING (f90_ex_${example}-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_${example}-shared SHARED " " " ")
|
||||
target_link_libraries (f90_ex_${example}-shared
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
target_include_directories (f90_ex_${example}-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (f90_ex_${example}-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (example ${examples})
|
||||
|
||||
foreach (example ${F2003_examples})
|
||||
add_executable (f03_ex_${example} ${HDF5_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
TARGET_NAMING (f03_ex_${example} ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (f03_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (f03_ex_${example} STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (f03_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (f03_ex_${example}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
@ -68,12 +83,27 @@ foreach (example ${F2003_examples})
|
||||
FOLDER examples/fortran03
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (f03_ex_${example}-shared ${HDF5_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
TARGET_NAMING (f03_ex_${example}-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (f03_ex_${example}-shared SHARED " " " ")
|
||||
target_link_libraries (f03_ex_${example}-shared
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
target_include_directories (f03_ex_${example}-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (f03_ex_${example}-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran03
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (example ${F2003_examples})
|
||||
|
||||
if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
add_executable (f90_ex_ph5example ${HDF5_F90_EXAMPLES_SOURCE_DIR}/ph5example.f90)
|
||||
TARGET_NAMING (f90_ex_ph5example ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_ph5example ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (f90_ex_ph5example STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_ph5example STATIC " " " ")
|
||||
target_link_libraries (f90_ex_ph5example
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
@ -83,8 +113,24 @@ if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
set_target_properties (f90_ex_ph5example PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (f90_ex_ph5example-shared ${HDF5_F90_EXAMPLES_SOURCE_DIR}/ph5example.f90)
|
||||
TARGET_NAMING (f90_ex_ph5example-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (f90_ex_ph5example-shared SHARED " " " ")
|
||||
target_link_libraries (f90_ex_ph5example-shared
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
${MPI_Fortran_LIBRARIES}
|
||||
)
|
||||
target_include_directories (f90_ex_ph5example-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (f90_ex_ph5example-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER examples/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
|
@ -28,6 +28,30 @@
|
||||
set_tests_properties (f90_ex-clear-objects PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f90_ex-clear-objects")
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME f90_ex-shared-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
compound.h5
|
||||
copy1.h5
|
||||
copy2.h5
|
||||
dsetf.h5
|
||||
extend.h5
|
||||
FORTRAN.h5
|
||||
groupf.h5
|
||||
groupsf.h5
|
||||
h5_cmprss.h5
|
||||
mount1.h5
|
||||
mount2.h5
|
||||
sdsf.h5
|
||||
subset.h5
|
||||
)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (f90_ex-shared-clear-objects PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f90_ex-shared-clear-objects")
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
foreach (example ${examples})
|
||||
add_test (NAME f90_ex_${example} COMMAND $<TARGET_FILE:f90_ex_${example}>)
|
||||
@ -35,6 +59,13 @@ foreach (example ${examples})
|
||||
set_tests_properties (f90_ex_${example} PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f90_ex_${example}")
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME f90_ex-shared_${example} COMMAND $<TARGET_FILE:f90_ex_${example}-shared>)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (f90_ex-shared_${example} PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f90_ex-shared_${example}")
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (example ${examples})
|
||||
|
||||
if (HDF5_ENABLE_F2003)
|
||||
@ -44,9 +75,19 @@ if (HDF5_ENABLE_F2003)
|
||||
set_tests_properties (f03_ex_${example} PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f03_ex_${example}")
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME f03_ex-shared_${example} COMMAND $<TARGET_FILE:f03_ex_${example}-shared>)
|
||||
if (NOT "${last_test}" STREQUAL "")
|
||||
set_tests_properties (f03_ex-shared_${example} PROPERTIES DEPENDS ${last_test})
|
||||
endif (NOT "${last_test}" STREQUAL "")
|
||||
set (last_test "f03_ex-shared_${example}")
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (example ${F2003_examples})
|
||||
endif (HDF5_ENABLE_F2003)
|
||||
|
||||
if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
add_test (NAME f90_ex_ph5example COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:f90_ex_ph5example>)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME f90_ex-shared_ph5example COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:f90_ex_ph5example>)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
|
@ -108,7 +108,10 @@ TESTS = $(TEST_SCRIPT)
|
||||
subdir = fortran/examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -106,16 +106,33 @@ set (f90CStub_C_HDRS
|
||||
${HDF5_F90_BINARY_DIR}/H5f90i_gen.h
|
||||
)
|
||||
|
||||
add_library (${HDF5_F90_C_LIB_TARGET} ${LIB_TYPE} ${f90CStub_C_SRCS} ${f90CStub_C_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_F90_C_LIB_TARGET} STATIC ${f90CStub_C_SRCS} ${f90CStub_C_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_F90_C_LIB_TARGET} ${HDF5_LIB_TARGET} ${LINK_LIBS})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_F90_C_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_LIB_TARGET} ${HDF5_F90_C_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_LIB_TARGET} ${HDF5_F90_C_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_F90_C_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/fortran
|
||||
LINKER_LANGUAGE C
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
set (install_targets ${HDF5_F90_C_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_F90_C_LIBSH_TARGET} SHARED ${f90CStub_C_SRCS} ${f90CStub_C_HDRS})
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_F90_C_LIBSH_TARGET} ${HDF5_LIBSH_TARGET} ${LINK_SHARED_LIBS})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_F90_C_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_LIBSH_TARGET} ${HDF5_F90_C_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_F90_C_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/fortran
|
||||
LINKER_LANGUAGE C
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
set (install_targets ${install_targets} ${HDF5_F90_C_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set_source_files_properties (${HDF5_F90_BINARY_DIR}/H5_gen.F90 PROPERTIES GENERATED TRUE)
|
||||
|
||||
@ -167,36 +184,56 @@ set_source_files_properties (${f90_F_SRCS} PROPERTIES LANGUAGE Fortran)
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add Main fortran library
|
||||
#-----------------------------------------------------------------------------
|
||||
add_library (${HDF5_F90_LIB_TARGET} ${LIB_TYPE} ${f90_F_SRCS})
|
||||
add_library (${HDF5_F90_LIB_TARGET} STATIC ${f90_F_SRCS})
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
BUILD_HDF5_DLL
|
||||
)
|
||||
if (MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def")
|
||||
endif (MSVC)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
HDF5F90_WINDOWS
|
||||
)
|
||||
endif (WIN32)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_LIB_TARGET} ${LIB_TYPE} " " ${SHARED_LINK_FLAGS})
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_F90_LIB_TARGET} ${HDF5_F90_C_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
target_link_libraries (${HDF5_F90_LIB_TARGET} ${MPI_Fortran_LIBRARIES})
|
||||
endif (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_F90_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_LIB_TARGET} ${HDF5_F90_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_LIB_TARGET} ${HDF5_F90_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_F90_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS "HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
set (install_targets ${install_targets} ${HDF5_F90_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_F90_LIBSH_TARGET} SHARED ${f90_F_SRCS})
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32 AND MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def")
|
||||
endif (WIN32 AND MSVC)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_LIBSH_TARGET} SHARED " " ${SHARED_LINK_FLAGS})
|
||||
target_link_libraries (${HDF5_F90_LIBSH_TARGET} ${HDF5_F90_C_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
if (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
target_link_libraries (${HDF5_F90_LIBSH_TARGET} ${MPI_Fortran_LIBRARIES})
|
||||
endif (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_F90_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_LIBSH_TARGET} ${HDF5_F90_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_F90_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_F90_LIBSH_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS "BUILD_HDF5_DLL;HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
set (install_targets ${install_targets} ${HDF5_F90_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
@ -214,11 +251,19 @@ install (
|
||||
fortheaders
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
endif (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
endif (WIN32)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set (mod_files
|
||||
${MOD_BUILD_DIR}/h5fortran_types.mod
|
||||
@ -254,14 +299,13 @@ install (
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_F90_C_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} fortlibraries)
|
||||
#INSTALL_TARGET_PDB (${HDF5_F90_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} fortlibraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_F90_C_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} fortlibraries)
|
||||
#INSTALL_TARGET_PDB (${HDF5_F90_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} fortlibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_F90_C_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT fortlibraries
|
||||
|
@ -113,7 +113,10 @@ TESTS =
|
||||
subdir = fortran/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -9,46 +9,88 @@ INCLUDE_DIRECTORIES (${HDF5_F90_BINARY_DIR} ${HDF5_F90_SRC_DIR}/src)
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add Test Lib
|
||||
#-----------------------------------------------------------------------------
|
||||
add_library (${HDF5_F90_C_TEST_LIB_TARGET} ${LIB_TYPE} t.c)
|
||||
add_library (${HDF5_F90_C_TEST_LIB_TARGET} STATIC t.c)
|
||||
set_source_files_properties (t.c PROPERTIES LANGUAGE C)
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_TEST_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_TEST_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_F90_C_TEST_LIB_TARGET}
|
||||
${HDF5_F90_C_LIB_TARGET}
|
||||
${HDF5_TEST_LIB_TARGET}
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_TEST_LIB_TARGET} ${HDF5_F90_C_TEST_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_TEST_LIB_TARGET} ${HDF5_F90_C_TEST_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_F90_C_TEST_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/test/fortran
|
||||
LINKER_LANGUAGE C
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_F90_C_TEST_LIBSH_TARGET} SHARED t.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_F90_C_TEST_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_F90_C_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_C_LIBSH_TARGET}
|
||||
${HDF5_TEST_LIBSH_TARGET}
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_C_TEST_LIBSH_TARGET} ${HDF5_F90_C_TEST_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_F90_C_TEST_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/test/fortran
|
||||
LINKER_LANGUAGE C
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set_source_files_properties (tf.F90 ${HDF5_F90_BINARY_DIR}/tf_gen.F90 PROPERTIES LANGUAGE Fortran)
|
||||
add_library (${HDF5_F90_TEST_LIB_TARGET} ${LIB_TYPE} tf.F90 ${HDF5_F90_BINARY_DIR}/tf_gen.F90)
|
||||
add_library (${HDF5_F90_TEST_LIB_TARGET} STATIC tf.F90 ${HDF5_F90_BINARY_DIR}/tf_gen.F90)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_F90_TEST_LIBSH_TARGET} SHARED tf.F90 ${HDF5_F90_BINARY_DIR}/tf_gen.F90)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_F90_TEST_LIB_TARGET} APPEND PROPERTY COMPILE_DEFINITIONS BUILD_HDF5_TEST_DLL)
|
||||
if (MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL")
|
||||
endif (MSVC)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_F90_TEST_LIB_TARGET} APPEND PROPERTY COMPILE_DEFINITIONS HDF5F90_WINDOWS)
|
||||
endif (WIN32)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_TEST_LIB_TARGET} ${LIB_TYPE} " " ${SHARED_LINK_FLAGS})
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_TEST_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_C_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_TEST_LIB_TARGET} ${HDF5_F90_TEST_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_TEST_LIB_TARGET} ${HDF5_F90_TEST_LIB_NAME} STATIC)
|
||||
target_include_directories (${HDF5_F90_TEST_LIB_TARGET} PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (${HDF5_F90_TEST_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/test/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_F90_TEST_LIB_TARGET} APPEND PROPERTY
|
||||
COMPILE_DEFINITIONS "HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32 AND MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL")
|
||||
endif (WIN32 AND MSVC)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_F90_TEST_LIBSH_TARGET} SHARED " " ${SHARED_LINK_FLAGS})
|
||||
target_link_libraries (${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_C_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_F90_TEST_LIBSH_TARGET} ${HDF5_F90_TEST_LIB_NAME} SHARED)
|
||||
target_include_directories (${HDF5_F90_TEST_LIBSH_TARGET} PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (${HDF5_F90_TEST_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/test/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_F90_TEST_LIBSH_TARGET} APPEND PROPERTY
|
||||
COMPILE_DEFINITIONS "BUILD_HDF5_TEST_DLL;HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup the Fortran auto-detection utilities
|
||||
@ -106,8 +148,8 @@ add_executable (testhdf5_fortran
|
||||
tH5Z.f90
|
||||
tHDF5.f90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (testhdf5_fortran STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran STATIC " " " ")
|
||||
target_link_libraries (testhdf5_fortran
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
@ -120,8 +162,43 @@ target_include_directories (testhdf5_fortran PRIVATE ${CMAKE_Fortran_MODULE_DIRE
|
||||
set_target_properties (testhdf5_fortran PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (testhdf5_fortran-shared
|
||||
fortranlib_test.f90
|
||||
tH5A.f90
|
||||
tH5D.f90
|
||||
tH5E.f90
|
||||
tH5F.f90
|
||||
tH5G.f90
|
||||
tH5I.f90
|
||||
tH5P.f90
|
||||
tH5R.f90
|
||||
tH5S.f90
|
||||
tH5Sselect.f90
|
||||
tH5T.f90
|
||||
tH5VL.f90
|
||||
tH5Z.f90
|
||||
tHDF5.f90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran-shared SHARED " " " ")
|
||||
target_link_libraries (testhdf5_fortran-shared
|
||||
${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (testhdf5_fortran-shared "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (testhdf5_fortran-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (testhdf5_fortran-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for testhdf5_fortran_1_8
|
||||
add_executable (testhdf5_fortran_1_8
|
||||
@ -132,8 +209,8 @@ add_executable (testhdf5_fortran_1_8
|
||||
tH5MISC_1_8.f90
|
||||
tHDF5_1_8.f90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran_1_8 ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran_1_8 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (testhdf5_fortran_1_8 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran_1_8 STATIC " " " ")
|
||||
target_link_libraries (testhdf5_fortran_1_8
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
@ -146,8 +223,34 @@ target_include_directories (testhdf5_fortran_1_8 PRIVATE ${CMAKE_Fortran_MODULE_
|
||||
set_target_properties (testhdf5_fortran_1_8 PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (testhdf5_fortran_1_8-shared
|
||||
fortranlib_test_1_8.f90
|
||||
tH5O.f90
|
||||
tH5A_1_8.f90
|
||||
tH5G_1_8.f90
|
||||
tH5MISC_1_8.f90
|
||||
tHDF5_1_8.f90
|
||||
)
|
||||
TARGET_NAMING (testhdf5_fortran_1_8-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (testhdf5_fortran_1_8-shared SHARED " " " ")
|
||||
target_link_libraries (testhdf5_fortran_1_8-shared
|
||||
${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (testhdf5_fortran_1_8-shared "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (testhdf5_fortran_1_8-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (testhdf5_fortran_1_8-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for fortranlib_test_F03
|
||||
add_executable (fortranlib_test_F03
|
||||
@ -159,9 +262,9 @@ add_executable (fortranlib_test_F03
|
||||
tH5P_F03.f90
|
||||
tH5T_F03.F90
|
||||
tHDF5_F03.f90
|
||||
)
|
||||
TARGET_NAMING (fortranlib_test_F03 ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (fortranlib_test_F03 ${LIB_TYPE} " " " ")
|
||||
)
|
||||
TARGET_NAMING (fortranlib_test_F03 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fortranlib_test_F03 STATIC " " " ")
|
||||
target_link_libraries (fortranlib_test_F03
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
@ -174,13 +277,41 @@ target_include_directories (fortranlib_test_F03 PRIVATE ${CMAKE_Fortran_MODULE_D
|
||||
set_target_properties (fortranlib_test_F03 PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (fortranlib_test_F03-shared
|
||||
fortranlib_test_F03.f90
|
||||
tH5E_F03.f90
|
||||
tH5F_F03.f90
|
||||
tH5L_F03.f90
|
||||
tH5O_F03.f90
|
||||
tH5P_F03.f90
|
||||
tH5T_F03.F90
|
||||
tHDF5_F03.f90
|
||||
)
|
||||
TARGET_NAMING (fortranlib_test_F03-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fortranlib_test_F03-shared SHARED " " " ")
|
||||
target_link_libraries (fortranlib_test_F03-shared
|
||||
${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (fortranlib_test_F03-shared "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (fortranlib_test_F03-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (fortranlib_test_F03-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for fflush1
|
||||
add_executable (fflush1 fflush1.f90)
|
||||
TARGET_NAMING (fflush1 ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (fflush1 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (fflush1 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush1 STATIC " " " ")
|
||||
target_link_libraries (fflush1
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
@ -193,13 +324,32 @@ target_include_directories (fflush1 PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/st
|
||||
set_target_properties (fflush1 PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (fflush1-shared fflush1.f90)
|
||||
TARGET_NAMING (fflush1-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush1-shared SHARED " " " ")
|
||||
target_link_libraries (fflush1-shared
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (fflush1-shared "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (fflush1-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (fflush1-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for fflush2
|
||||
add_executable (fflush2 fflush2.f90)
|
||||
TARGET_NAMING (fflush2 ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (fflush2 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (fflush2 STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush2 STATIC " " " ")
|
||||
target_link_libraries (fflush2
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
@ -212,7 +362,26 @@ target_include_directories (fflush2 PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/st
|
||||
set_target_properties (fflush2 PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (fflush2-shared fflush2.f90)
|
||||
TARGET_NAMING (fflush2-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (fflush2-shared SHARED " " " ")
|
||||
target_link_libraries (fflush2-shared
|
||||
${HDF5_F90_TEST_LIBSH_TARGET}
|
||||
${HDF5_F90_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (fflush2-shared "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (fflush2-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (fflush2-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
@ -26,3 +26,29 @@ add_test (NAME FORTRAN_fflush1 COMMAND $<TARGET_FILE:fflush1>)
|
||||
#-- Adding test for fflush2
|
||||
add_test (NAME FORTRAN_fflush2 COMMAND $<TARGET_FILE:fflush2>)
|
||||
set_tests_properties (FORTRAN_fflush2 PROPERTIES DEPENDS FORTRAN_fflush1)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (NAME FORTRAN_testhdf5_fortran-shared COMMAND $<TARGET_FILE:testhdf5_fortran-shared>)
|
||||
set_tests_properties (FORTRAN_testhdf5_fortran-shared PROPERTIES PASS_REGULAR_EXPRESSION "[ ]*0 error.s")
|
||||
set_tests_properties (FORTRAN_testhdf5_fortran-shared PROPERTIES DEPENDS FORTRAN_testhdf5_fortran)
|
||||
|
||||
#-- Adding test for testhdf5_fortran_1_8
|
||||
add_test (NAME FORTRAN_testhdf5_fortran_1_8-shared COMMAND $<TARGET_FILE:testhdf5_fortran_1_8-shared>)
|
||||
set_tests_properties (FORTRAN_testhdf5_fortran_1_8-shared PROPERTIES PASS_REGULAR_EXPRESSION "[ ]*0 error.s")
|
||||
set_tests_properties (FORTRAN_testhdf5_fortran_1_8-shared PROPERTIES DEPENDS FORTRAN_testhdf5_fortran_1_8)
|
||||
|
||||
#-- Adding test for fortranlib_test_F03
|
||||
if (HDF5_ENABLE_F2003)
|
||||
add_test (NAME FORTRAN_fortranlib_test_F03-shared COMMAND $<TARGET_FILE:fortranlib_test_F03-shared>)
|
||||
set_tests_properties (FORTRAN_fortranlib_test_F03-shared PROPERTIES PASS_REGULAR_EXPRESSION "[ ]*0 error.s")
|
||||
set_tests_properties (FORTRAN_fortranlib_test_F03-shared PROPERTIES DEPENDS FORTRAN_fortranlib_test_F03)
|
||||
endif (HDF5_ENABLE_F2003)
|
||||
|
||||
#-- Adding test for fflush1
|
||||
add_test (NAME FORTRAN_fflush1-shared COMMAND $<TARGET_FILE:fflush1-shared>)
|
||||
set_tests_properties (FORTRAN_fflush1-shared PROPERTIES DEPENDS FORTRAN_fflush2)
|
||||
|
||||
#-- Adding test for fflush2
|
||||
add_test (NAME FORTRAN_fflush2-shared COMMAND $<TARGET_FILE:fflush2-shared>)
|
||||
set_tests_properties (FORTRAN_fflush2-shared PROPERTIES DEPENDS FORTRAN_fflush1-shared)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
@ -94,7 +94,10 @@ TESTS = $(am__EXEEXT_1)
|
||||
subdir = fortran/test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -16,8 +16,8 @@ add_executable (parallel_test
|
||||
hyper.f90
|
||||
mdset.f90
|
||||
)
|
||||
TARGET_NAMING (parallel_test ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (parallel_test ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (parallel_test STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (parallel_test STATIC " " " ")
|
||||
target_link_libraries (parallel_test
|
||||
${HDF5_F90_TEST_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
@ -27,7 +27,7 @@ target_link_libraries (parallel_test
|
||||
if (WIN32 AND MSVC)
|
||||
target_link_libraries (parallel_test "ws2_32.lib")
|
||||
endif (WIN32 AND MSVC)
|
||||
target_include_directories (parallel_test PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (parallel_test PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (parallel_test PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (parallel_test PROPERTIES FOLDER test/fortran)
|
||||
|
||||
|
@ -110,7 +110,10 @@ TESTS =
|
||||
subdir = fortran/testpar
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -6,14 +6,6 @@ PROJECT (HDF5_HL C CXX)
|
||||
#-----------------------------------------------------------------------------
|
||||
add_definitions (${HDF_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (HL_BUILT_AS_DYNAMIC_LIB 1)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
set (HL_BUILT_AS_STATIC_LIB 1)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# List Source files
|
||||
|
@ -106,7 +106,10 @@ TESTS =
|
||||
subdir = hl
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -102,7 +102,10 @@ TESTS =
|
||||
subdir = hl/c++
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -11,8 +11,8 @@ INCLUDE_DIRECTORIES (${HDF5_HL_CPP_SRC_DIR}/src)
|
||||
# Add in the examples for the Packet Table codes
|
||||
# --------------------------------------------------------------------
|
||||
add_executable (ptExampleFL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleFL.cpp)
|
||||
TARGET_NAMING (ptExampleFL ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (ptExampleFL ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (ptExampleFL STATIC)
|
||||
TARGET_C_PROPERTIES (ptExampleFL STATIC " " " ")
|
||||
target_link_libraries (
|
||||
ptExampleFL
|
||||
${HDF5_HL_CPP_LIB_TARGET}
|
||||
|
@ -107,7 +107,10 @@ TESTS =
|
||||
subdir = hl/c++/examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -10,22 +10,42 @@ INCLUDE_DIRECTORIES (${HDF5_HL_CPP_SRC_SOURCE_DIR})
|
||||
set (HDF5_HL_CPP_SRCS ${HDF5_HL_CPP_SRC_SOURCE_DIR}/H5PacketTable.cpp)
|
||||
set (HDF5_HL_CPP_HDRS ${HDF5_HL_CPP_SRC_SOURCE_DIR}/H5PacketTable.h)
|
||||
|
||||
add_library (${HDF5_HL_CPP_LIB_TARGET} ${LIB_TYPE} ${HDF5_HL_CPP_SRCS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_CPP_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_HL_CPP_LIB_TARGET} STATIC ${HDF5_HL_CPP_SRCS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_CPP_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (
|
||||
${HDF5_HL_CPP_LIB_TARGET}
|
||||
${HDF5_HL_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_CPP_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_CPP_LIB_TARGET} ${HDF5_HL_CPP_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_CPP_LIB_TARGET} ${HDF5_HL_CPP_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_HL_CPP_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
set (install_targets ${HDF5_HL_CPP_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_HL_CPP_LIBSH_TARGET} SHARED ${HDF5_HL_CPP_SRCS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_CPP_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (
|
||||
${HDF5_HL_CPP_LIBSH_TARGET}
|
||||
${HDF5_HL_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_CPP_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_CPP_LIBSH_TARGET} ${HDF5_HL_CPP_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_HL_CPP_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
set (install_targets ${install_targets} ${HDF5_HL_CPP_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
# Add file(s) to CMake Install
|
||||
#-----------------------------------------------------------------------------
|
||||
install (
|
||||
FILES
|
||||
@ -41,12 +61,12 @@ install (
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_CPP_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} hlcpplibraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_CPP_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} hlcpplibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_HL_CPP_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT hlcpplibraries
|
||||
|
@ -106,7 +106,10 @@ TESTS =
|
||||
subdir = hl/c++/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -16,8 +16,8 @@ INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/test)
|
||||
INCLUDE_DIRECTORIES (${HDF5_CPP_SRC_DIR}/src)
|
||||
|
||||
add_executable (hl_ptableTest ${HDF5_HL_CPP_TEST_SOURCE_DIR}/ptableTest.cpp)
|
||||
TARGET_C_PROPERTIES (hl_ptableTest ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_ptableTest ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (hl_ptableTest STATIC " " " ")
|
||||
TARGET_NAMING (hl_ptableTest STATIC)
|
||||
target_link_libraries (
|
||||
hl_ptableTest
|
||||
${HDF5_LIB_TARGET}
|
||||
|
@ -103,7 +103,10 @@ TESTS = $(am__EXEEXT_1)
|
||||
subdir = hl/c++/test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -28,8 +28,8 @@ set (examples
|
||||
|
||||
foreach (example ${examples})
|
||||
add_executable (hl_ex_${example} ${HDF5_HL_EXAMPLES_SOURCE_DIR}/${example}.c)
|
||||
TARGET_NAMING (hl_ex_${example} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (hl_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_ex_${example} STATIC)
|
||||
TARGET_C_PROPERTIES (hl_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (hl_ex_${example} ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (hl_ex_${example} PROPERTIES FOLDER examples/hl)
|
||||
endforeach (example ${examples})
|
||||
|
@ -107,7 +107,10 @@ TESTS =
|
||||
subdir = hl/examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -106,7 +106,10 @@ TESTS =
|
||||
subdir = hl/fortran
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -16,14 +16,14 @@ set (examples
|
||||
|
||||
foreach (example ${examples})
|
||||
add_executable (hl_f90_ex_${example} ${HDF5_HL_F90_EXAMPLES_SOURCE_DIR}/${example}.f90)
|
||||
TARGET_NAMING (hl_f90_ex_${example} ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_ex_${example} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_f90_ex_${example} STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_ex_${example} STATIC " " " ")
|
||||
target_link_libraries (hl_f90_ex_${example}
|
||||
${HDF5_HL_F90_LIB_TARGET}
|
||||
${HDF5_F90_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
)
|
||||
target_include_directories (hl_f90_ex_${example} PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (hl_f90_ex_${example} PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (hl_f90_ex_${example} PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (hl_f90_ex_${example} PROPERTIES FOLDER examples/hl/fortran)
|
||||
|
||||
|
@ -107,7 +107,10 @@ TESTS =
|
||||
subdir = hl/fortran/examples
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -60,16 +60,33 @@ set_source_files_properties (${HDF5_HL_F90_C_SRCS} PROPERTIES LANGUAGE C)
|
||||
|
||||
set (HDF5_HL_F90_HEADERS ${HDF5_HL_F90_SRC_SOURCE_DIR}/H5LTf90proto.h)
|
||||
|
||||
add_library (${HDF5_HL_F90_C_LIB_TARGET} ${LIB_TYPE} ${HDF5_HL_F90_C_SRCS} ${HDF5_HL_F90_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_F90_C_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_HL_F90_C_LIB_TARGET} STATIC ${HDF5_HL_F90_C_SRCS} ${HDF5_HL_F90_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_F90_C_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_F90_C_LIB_TARGET} ${HDF5_HL_LIB_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_C_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_HL_F90_C_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_HL_F90_C_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_HL_F90_C_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl/fortran
|
||||
LINKER_LANGUAGE C
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
set (install_targets ${HDF5_HL_F90_C_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_HL_F90_C_LIBSH_TARGET} SHARED ${HDF5_HL_F90_C_SRCS} ${HDF5_HL_F90_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_F90_C_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_HL_F90_C_LIBSH_TARGET} ${HDF5_F90_C_LIBSH_TARGET} ${HDF5_HL_LIBSH_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_C_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_C_LIBSH_TARGET} ${HDF5_HL_F90_C_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_HL_F90_C_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl/fortran
|
||||
LINKER_LANGUAGE C
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
set (install_targets ${install_targets} ${HDF5_HL_F90_C_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Fortran Modules
|
||||
@ -105,43 +122,66 @@ add_custom_target (H5HLgen ALL
|
||||
DEPENDS ${HDF5_HL_F90_F_BASE_SRCS}
|
||||
)
|
||||
|
||||
add_library (${HDF5_HL_F90_LIB_TARGET} ${LIB_TYPE} ${HDF5_HL_F90_F_SRCS})
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_HL_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
BUILD_HDF5_HL_DLL
|
||||
)
|
||||
if (MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_HL_F90_SRC_BINARY_DIR}/hdf5_hl_fortrandll.def")
|
||||
endif (MSVC)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
set_property (TARGET ${HDF5_HL_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
HDF5F90_WINDOWS
|
||||
)
|
||||
endif (WIN32)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} ${LIB_TYPE} " " ${SHARED_LINK_FLAGS})
|
||||
add_library (${HDF5_HL_F90_LIB_TARGET} STATIC ${HDF5_HL_F90_F_SRCS})
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_HL_F90_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/static
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_HL_F90_LIB_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS "HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
set (install_targets ${install_targets} ${HDF5_HL_F90_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_HL_F90_LIBSH_TARGET} SHARED ${HDF5_HL_F90_F_SRCS})
|
||||
set (SHARED_LINK_FLAGS " ")
|
||||
if (WIN32 AND MSVC)
|
||||
set (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_HL_F90_SRC_BINARY_DIR}/hdf5_hl_fortrandll.def")
|
||||
endif (WIN32 AND MSVC)
|
||||
TARGET_FORTRAN_PROPERTIES (${HDF5_HL_F90_LIBSH_TARGET} SHARED " " ${SHARED_LINK_FLAGS})
|
||||
target_link_libraries (${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_HL_F90_C_LIBSH_TARGET} ${HDF5_F90_LIBSH_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_HL_F90_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_HL_F90_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl/fortran
|
||||
LINKER_LANGUAGE Fortran
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
if (WIN32)
|
||||
set_property (TARGET ${HDF5_HL_F90_LIBSH_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS "BUILD_HDF5_HL_DLL;HDF5F90_WINDOWS"
|
||||
)
|
||||
endif (WIN32)
|
||||
set (install_targets ${install_targets} ${HDF5_HL_F90_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
endif (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
endif (WIN32)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
if (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static/\${BUILD_TYPE})
|
||||
else (WIN32)
|
||||
set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
endif (WIN32)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set (mod_files
|
||||
${MOD_BUILD_DIR}/h5ds.mod
|
||||
@ -166,14 +206,13 @@ install (
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} hlfortlibraries)
|
||||
#INSTALL_TARGET_PDB (${HDF5_HL_F90_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} hlfortlibraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_F90_C_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} hlfortlibraries)
|
||||
#INSTALL_TARGET_PDB (${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} hlfortlibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_HL_F90_C_LIB_TARGET}
|
||||
${HDF5_HL_F90_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT hlfortlibraries
|
||||
|
@ -111,7 +111,10 @@ TESTS =
|
||||
subdir = hl/fortran/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -8,38 +8,86 @@ INCLUDE_DIRECTORIES (${CMAKE_Fortran_MODULE_DIRECTORY} ${HDF5_F90_BINARY_DIR} ${
|
||||
|
||||
#-- Adding test for hl_f90_tstds
|
||||
add_executable (hl_f90_tstds tstds.F90)
|
||||
TARGET_NAMING (hl_f90_tstds ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstds ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_f90_tstds STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstds STATIC " " " ")
|
||||
target_link_libraries (hl_f90_tstds ${HDF5_HL_F90_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
target_include_directories (hl_f90_tstds PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (hl_f90_tstds PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (hl_f90_tstds PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (hl_f90_tstds PROPERTIES FOLDER test/hl/fortran)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (hl_f90_tstds-shared tstds.F90)
|
||||
TARGET_NAMING (hl_f90_tstds-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstds-shared SHARED " " " ")
|
||||
target_link_libraries (hl_f90_tstds-shared ${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_F90_LIBSH_TARGET})
|
||||
target_include_directories (hl_f90_tstds-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (hl_f90_tstds-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/hl/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for hl_f90_tstlite
|
||||
add_executable (hl_f90_tstlite tstlite.F90)
|
||||
TARGET_NAMING (hl_f90_tstlite ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstlite ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_f90_tstlite STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstlite STATIC " " " ")
|
||||
target_link_libraries (hl_f90_tstlite ${HDF5_HL_F90_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
target_include_directories (hl_f90_tstlite PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (hl_f90_tstlite PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (hl_f90_tstlite PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (hl_f90_tstlite PROPERTIES FOLDER test/hl/fortran)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (hl_f90_tstlite-shared tstlite.F90)
|
||||
TARGET_NAMING (hl_f90_tstlite-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstlite-shared SHARED " " " ")
|
||||
target_link_libraries (hl_f90_tstlite-shared ${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_F90_LIBSH_TARGET})
|
||||
target_include_directories (hl_f90_tstlite-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (hl_f90_tstlite-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/hl/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for hl_f90_tstimage
|
||||
add_executable (hl_f90_tstimage tstimage.F90)
|
||||
TARGET_NAMING (hl_f90_tstimage ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstimage ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_f90_tstimage STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstimage STATIC " " " ")
|
||||
target_link_libraries (hl_f90_tstimage ${HDF5_HL_F90_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
target_include_directories (hl_f90_tstimage PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (hl_f90_tstimage PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (hl_f90_tstimage PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (hl_f90_tstimage PROPERTIES FOLDER test/hl/fortran)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (hl_f90_tstimage-shared tstimage.F90)
|
||||
TARGET_NAMING (hl_f90_tstimage-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tstimage-shared SHARED " " " ")
|
||||
target_link_libraries (hl_f90_tstimage-shared ${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_F90_LIBSH_TARGET})
|
||||
target_include_directories (hl_f90_tstimage-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (hl_f90_tstimage-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/hl/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for hl_f90_tsttable
|
||||
add_executable (hl_f90_tsttable tsttable.F90)
|
||||
TARGET_NAMING (hl_f90_tsttable ${LIB_TYPE})
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tsttable ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_f90_tsttable STATIC)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tsttable STATIC " " " ")
|
||||
target_link_libraries (hl_f90_tsttable ${HDF5_HL_F90_LIB_TARGET} ${HDF5_F90_LIB_TARGET})
|
||||
target_include_directories (hl_f90_tsttable PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
|
||||
target_include_directories (hl_f90_tsttable PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/static)
|
||||
set_target_properties (hl_f90_tsttable PROPERTIES LINKER_LANGUAGE Fortran)
|
||||
set_target_properties (hl_f90_tsttable PROPERTIES FOLDER test/hl/fortran)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (hl_f90_tsttable-shared tsttable.F90)
|
||||
TARGET_NAMING (hl_f90_tsttable-shared SHARED)
|
||||
TARGET_FORTRAN_PROPERTIES (hl_f90_tsttable-shared SHARED " " " ")
|
||||
target_link_libraries (hl_f90_tsttable-shared ${HDF5_HL_F90_LIBSH_TARGET} ${HDF5_F90_LIBSH_TARGET})
|
||||
target_include_directories (hl_f90_tsttable-shared PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY}/shared)
|
||||
set_target_properties (hl_f90_tsttable-shared PROPERTIES
|
||||
LINKER_LANGUAGE Fortran
|
||||
FOLDER test/hl/fortran
|
||||
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
@ -31,3 +31,34 @@ set_tests_properties (HL_FORTRAN_f90_tstimage PROPERTIES DEPENDS HL_FORTRAN_test
|
||||
|
||||
add_test (NAME HL_FORTRAN_f90_tsttable COMMAND $<TARGET_FILE:hl_f90_tsttable>)
|
||||
set_tests_properties (HL_FORTRAN_f90_tsttable PROPERTIES DEPENDS HL_FORTRAN_test-clear-objects)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME HL_FORTRAN_test-shared-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
dsetf1.h5
|
||||
dsetf2.h5
|
||||
dsetf3.h5
|
||||
dsetf4.h5
|
||||
dsetf5.h5
|
||||
f1img.h5
|
||||
f1tab.h5
|
||||
tstds.h5
|
||||
)
|
||||
set_tests_properties (HL_FORTRAN_test-shared-clear-objects
|
||||
PROPERTIES DEPENDS "HL_FORTRAN_f90_tsttable;HL_FORTRAN_f90_tstimage;HL_FORTRAN_f90_tstlite;HL_FORTRAN_f90_tstds"
|
||||
)
|
||||
|
||||
add_test (NAME HL_FORTRAN_f90_tstds-shared COMMAND $<TARGET_FILE:hl_f90_tstds-shared>)
|
||||
set_tests_properties (HL_FORTRAN_f90_tstds-shared PROPERTIES DEPENDS HL_FORTRAN_test-shared-clear-objects)
|
||||
|
||||
add_test (NAME HL_FORTRAN_f90_tstlite-shared COMMAND $<TARGET_FILE:hl_f90_tstlite-shared>)
|
||||
set_tests_properties (HL_FORTRAN_f90_tstlite-shared PROPERTIES DEPENDS HL_FORTRAN_test-shared-clear-objects)
|
||||
|
||||
add_test (NAME HL_FORTRAN_f90_tstimage-shared COMMAND $<TARGET_FILE:hl_f90_tstimage-shared>)
|
||||
set_tests_properties (HL_FORTRAN_f90_tstimage-shared PROPERTIES DEPENDS HL_FORTRAN_test-shared-clear-objects)
|
||||
|
||||
add_test (NAME HL_FORTRAN_f90_tsttable-shared COMMAND $<TARGET_FILE:hl_f90_tsttable-shared>)
|
||||
set_tests_properties (HL_FORTRAN_f90_tsttable-shared PROPERTIES DEPENDS HL_FORTRAN_test-shared-clear-objects)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
@ -108,7 +108,10 @@ TESTS = $(am__EXEEXT_1)
|
||||
subdir = hl/fortran/test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -1,12 +1,6 @@
|
||||
cmake_minimum_required (VERSION 3.1.0)
|
||||
PROJECT (HDF5_HL_SRC)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (HL_BUILT_AS_DYNAMIC_LIB 1)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# List Source files
|
||||
@ -33,18 +27,34 @@ set (HL_HEADERS
|
||||
${HDF5_HL_SRC_SOURCE_DIR}/hdf5_hl.h
|
||||
)
|
||||
|
||||
add_library (${HDF5_HL_LIB_TARGET} ${LIB_TYPE} ${HL_SRCS} ${HL_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_HL_LIB_TARGET} STATIC ${HL_SRCS} ${HL_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_LIB_TARGET} ${HDF5_HL_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_LIB_TARGET} ${HDF5_HL_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_HL_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_LIB_TARGET}")
|
||||
set (install_targets ${HDF5_HL_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_HL_LIBSH_TARGET} SHARED ${HL_SRCS} ${HL_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_HL_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_HL_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_HL_LIBSH_TARGET} ${HDF5_HL_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_HL_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/hl
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_LIBSH_TARGET}")
|
||||
set (install_targets ${install_targets} ${HDF5_HL_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
# Add file(s) to CMake Install
|
||||
#-----------------------------------------------------------------------------
|
||||
install (
|
||||
FILES
|
||||
@ -60,12 +70,12 @@ install (
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} hllibraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_HL_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} hllibraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_HL_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT hllibraries
|
||||
|
@ -106,7 +106,10 @@ TESTS =
|
||||
subdir = hl/src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -22,8 +22,8 @@ INCLUDE_DIRECTORIES (${HDF5_TEST_SRC_DIR})
|
||||
# --------------------------------------------------------------------
|
||||
MACRO (HL_ADD_EXE hl_name)
|
||||
add_executable (hl_${hl_name} ${hl_name}.c)
|
||||
TARGET_NAMING (hl_${hl_name} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (hl_${hl_name} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (hl_${hl_name} STATIC)
|
||||
TARGET_C_PROPERTIES (hl_${hl_name} STATIC " " " ")
|
||||
target_link_libraries (hl_${hl_name}
|
||||
${HDF5_HL_LIB_TARGET}
|
||||
${HDF5_LIB_TARGET}
|
||||
@ -32,6 +32,18 @@ MACRO (HL_ADD_EXE hl_name)
|
||||
set_target_properties (hl_${hl_name} PROPERTIES FOLDER test/hl)
|
||||
ENDMACRO (HL_ADD_EXE)
|
||||
|
||||
MACRO (HL_ADD_SHEXE hl_name)
|
||||
add_executable (hl_${hl_name} ${hl_name}.c)
|
||||
TARGET_NAMING (hl_${hl_name} SHARED)
|
||||
TARGET_C_PROPERTIES (hl_${hl_name} SHARED " " " ")
|
||||
target_link_libraries (hl_${hl_name}
|
||||
${HDF5_HL_LIBSH_TARGET}
|
||||
${HDF5_LIBSH_TARGET}
|
||||
${HDF5_TEST_LIBSH_TARGET}
|
||||
)
|
||||
set_target_properties (hl_${hl_name} PROPERTIES FOLDER test/hl)
|
||||
ENDMACRO (HL_ADD_SHEXE)
|
||||
|
||||
HL_ADD_EXE (test_ds)
|
||||
HL_ADD_EXE (test_dset_opt)
|
||||
HL_ADD_EXE (test_image)
|
||||
@ -43,7 +55,7 @@ HL_ADD_EXE (test_table)
|
||||
# This executable is used to generate test files for the test_ds test.
|
||||
# It should only be run during development when new test files are needed
|
||||
# --------------------------------------------------------------------
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
add_executable (hl_gen_test_ds gen_test_ds.c)
|
||||
TARGET_NAMING (hl_gen_test_ds STATIC)
|
||||
TARGET_C_PROPERTIES (hl_gen_test_ds STATIC " " " ")
|
||||
@ -53,6 +65,6 @@ if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
${HDF5_TEST_LIB_TARGET}
|
||||
)
|
||||
set_target_properties (hl_gen_test_ds PROPERTIES FOLDER test/hl/gen)
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
@ -108,7 +108,10 @@ TESTS = $(am__EXEEXT_1)
|
||||
subdir = hl/test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -18,8 +18,8 @@ INCLUDE_DIRECTORIES (${HDF5_TOOLS_SRC_DIR}/lib)
|
||||
INCLUDE_DIRECTORIES (${HDF5_HL_TOOLS_SOURCE_DIR}/gif2h5)
|
||||
|
||||
add_executable (gif2h5 ${GIF2H5_SRCS})
|
||||
TARGET_NAMING (gif2h5 ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (gif2h5 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (gif2h5 STATIC)
|
||||
TARGET_C_PROPERTIES (gif2h5 STATIC " " " ")
|
||||
target_link_libraries (gif2h5 ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
set_target_properties (gif2h5 PROPERTIES FOLDER tools/hl)
|
||||
|
||||
@ -29,8 +29,8 @@ set (hdf2gif_SRCS
|
||||
${HDF5_HL_TOOLS_SOURCE_DIR}/gif2h5/hdfgifwr.c
|
||||
)
|
||||
add_executable (h52gif ${hdf2gif_SRCS})
|
||||
TARGET_NAMING (h52gif ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (h52gif ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (h52gif STATIC)
|
||||
TARGET_C_PROPERTIES (h52gif STATIC " " " ")
|
||||
target_link_libraries (h52gif ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
set_target_properties (h52gif PROPERTIES FOLDER tools/hl)
|
||||
|
||||
@ -40,15 +40,15 @@ if (BUILD_TESTING)
|
||||
# used in the CMake Build system as we rely on the test files that are
|
||||
# shipped with HDF5 source archives
|
||||
# --------------------------------------------------------------------
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
add_executable (hl_h52gifgentest ${HDF5_HL_TOOLS_SOURCE_DIR}/gif2h5/h52gifgentst.c)
|
||||
TARGET_NAMING (hl_h52gifgentest STATIC)
|
||||
TARGET_C_PROPERTIES (hl_h52gifgentest STATIC " " " ")
|
||||
target_link_libraries (hl_h52gifgentest ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (hl_h52gifgentest PROPERTIES FOLDER generator/tools/hl)
|
||||
|
||||
|
||||
# add_test (NAME hl_h52gifgentest COMMAND $<TARGET_FILE:hl_h52gifgentest>)
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
endif (BUILD_TESTING)
|
||||
|
@ -102,7 +102,10 @@ TESTS =
|
||||
subdir = hl/tools
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -106,7 +106,10 @@ TESTS = $(TEST_SCRIPT)
|
||||
subdir = hl/tools/gif2h5
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -591,6 +591,7 @@ HDF5_STRICT_FORMAT_CHECKS "Whether to perform strict file format checks"
|
||||
HDF5_TEST_VFD "Execute tests with different VFDs" OFF
|
||||
HDF5_USE_16_API_DEFAULT "Use the HDF5 1.6.x API by default" OFF
|
||||
HDF5_USE_FOLDERS "Enable folder grouping of projects in IDEs." OFF
|
||||
HDF5_WANT_DATA_ACCURACY "IF data accuracy is guaranteed during data conversions" ON
|
||||
HDF5_WANT_DCONV_EXCEPTION "exception handling functions is checked during data conversions" ON
|
||||
HDF5_ENABLE_THREADSAFE "Enable Threadsafety" OFF
|
||||
if (APPLE)
|
||||
|
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.9.226 currently under development
|
||||
HDF5 version 1.9.227 currently under development
|
||||
================================================================================
|
||||
|
||||
|
||||
|
@ -853,8 +853,8 @@ set_source_files_properties (${HDF5_BINARY_DIR}/H5version.h GENERATED)
|
||||
set (common_SRCS ${common_SRCS} ${HDF5_BINARY_DIR}/H5overflow.h)
|
||||
set_source_files_properties (${HDF5_BINARY_DIR}/H5overflow.h GENERATED)
|
||||
|
||||
add_library (${HDF5_LIB_TARGET} ${LIB_TYPE} ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_LIB_TARGET} STATIC ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_LIB_TARGET} ${LINK_LIBS})
|
||||
if (NOT WIN32)
|
||||
target_link_libraries (${HDF5_LIB_TARGET} dl)
|
||||
@ -863,7 +863,7 @@ if (H5_HAVE_PARALLEL AND MPI_C_FOUND)
|
||||
target_link_libraries (${HDF5_LIB_TARGET} ${MPI_C_LIBRARIES})
|
||||
endif (H5_HAVE_PARALLEL AND MPI_C_FOUND)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT ${HDF5_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_LIB_TARGET} ${HDF5_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_LIB_TARGET} ${HDF5_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
@ -876,6 +876,35 @@ if (HDF5_ENABLE_DEBUG_APIS)
|
||||
"H5Z_DEBUG;H5VM_DEBUG;H5T_DEBUG;H5S_DEBUG;H5P_DEBUG;H5O_DEBUG;H5MM_DEBUG;H5MF_DEBUG;H5I_DEBUG;H5HL_DEBUG;H5HG_DEBUG;H5G_DEBUG;H5F_DEBUG;H5E_DEBUG;H5D_DEBUG;H5B_DEBUG;H5AC_DEBUG"
|
||||
)
|
||||
endif (HDF5_ENABLE_DEBUG_APIS)
|
||||
set (install_targets ${HDF5_LIB_TARGET})
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_LIBSH_TARGET} SHARED ${common_SRCS} ${H5_PUBLIC_HEADERS} ${H5_PRIVATE_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_LIBSH_TARGET} ${LINK_SHARED_LIBS})
|
||||
if (NOT WIN32)
|
||||
target_link_libraries (${HDF5_LIBSH_TARGET} dl)
|
||||
endif (NOT WIN32)
|
||||
if (H5_HAVE_PARALLEL AND MPI_C_FOUND)
|
||||
target_link_libraries (${HDF5_LIBSH_TARGET} ${MPI_C_LIBRARIES})
|
||||
endif (H5_HAVE_PARALLEL AND MPI_C_FOUND)
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (${HDF5_LIBSH_TARGET} ${HDF5_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
|
||||
if (HDF5_ENABLE_DEBUG_APIS)
|
||||
set_property (TARGET ${HDF5_LIBSH_TARGET}
|
||||
APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
"H5Z_DEBUG;H5VM_DEBUG;H5T_DEBUG;H5S_DEBUG;H5P_DEBUG;H5O_DEBUG;H5MM_DEBUG;H5MF_DEBUG;H5I_DEBUG;H5HL_DEBUG;H5HG_DEBUG;H5G_DEBUG;H5F_DEBUG;H5E_DEBUG;H5D_DEBUG;H5B_DEBUG;H5AC_DEBUG"
|
||||
)
|
||||
endif (HDF5_ENABLE_DEBUG_APIS)
|
||||
set (install_targets ${install_targets} ${HDF5_LIBSH_TARGET})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Add file(s) to CMake Install
|
||||
@ -896,12 +925,12 @@ endif (NOT HDF5_INSTALL_NO_DEVELOPMENT)
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_EXPORTED_TARGETS)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
INSTALL_TARGET_PDB (${HDF5_LIB_TARGET} ${HDF5_INSTALL_BIN_DIR} libraries)
|
||||
INSTALL_TARGET_PDB (${HDF5_LIBSH_TARGET} ${HDF5_INSTALL_BIN_DIR} libraries)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
${HDF5_LIB_TARGET}
|
||||
${install_targets}
|
||||
EXPORT
|
||||
${HDF5_EXPORTED_TARGETS}
|
||||
LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT libraries
|
||||
|
3
src/H5.c
3
src/H5.c
@ -145,6 +145,9 @@ H5_init_library(void)
|
||||
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Comm_set_attr(MPI_COMM_SELF, key_val, NULL)))
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Comm_set_attr failed", mpi_code)
|
||||
|
||||
if(MPI_SUCCESS != (mpi_code = MPI_Comm_free_keyval(&key_val)))
|
||||
HMPI_GOTO_ERROR(FAIL, "MPI_Comm_free_keyval failed", mpi_code)
|
||||
}
|
||||
}
|
||||
#endif /*H5_HAVE_PARALLEL*/
|
||||
|
250
src/H5Edefin.h
250
src/H5Edefin.h
@ -21,49 +21,109 @@
|
||||
#define _H5Edefin_H
|
||||
|
||||
/* Major error IDs */
|
||||
hid_t H5E_FUNC_g = FAIL; /* Function entry/exit */
|
||||
hid_t H5E_FILE_g = FAIL; /* File accessibilty */
|
||||
hid_t H5E_SOHM_g = FAIL; /* Shared Object Header Messages */
|
||||
hid_t H5E_SYM_g = FAIL; /* Symbol table */
|
||||
hid_t H5E_PLUGIN_g = FAIL; /* Plugin for dynamically loaded library */
|
||||
hid_t H5E_VFL_g = FAIL; /* Virtual File Layer */
|
||||
hid_t H5E_EARRAY_g = FAIL; /* Extensible Array */
|
||||
hid_t H5E_INTERNAL_g = FAIL; /* Internal error (too specific to document in detail) */
|
||||
hid_t H5E_BTREE_g = FAIL; /* B-Tree node */
|
||||
hid_t H5E_REFERENCE_g = FAIL; /* References */
|
||||
hid_t H5E_DATASPACE_g = FAIL; /* Dataspace */
|
||||
hid_t H5E_RESOURCE_g = FAIL; /* Resource unavailable */
|
||||
hid_t H5E_RS_g = FAIL; /* Reference Counted Strings */
|
||||
hid_t H5E_FARRAY_g = FAIL; /* Fixed Array */
|
||||
hid_t H5E_HEAP_g = FAIL; /* Heap */
|
||||
hid_t H5E_STORAGE_g = FAIL; /* Data storage */
|
||||
hid_t H5E_ATTR_g = FAIL; /* Attribute */
|
||||
hid_t H5E_TST_g = FAIL; /* Ternary Search Trees */
|
||||
hid_t H5E_DATATYPE_g = FAIL; /* Datatype */
|
||||
hid_t H5E_FARRAY_g = FAIL; /* Fixed Array */
|
||||
hid_t H5E_OHDR_g = FAIL; /* Object header */
|
||||
hid_t H5E_BTREE_g = FAIL; /* B-Tree node */
|
||||
hid_t H5E_VFL_g = FAIL; /* Virtual File Layer */
|
||||
hid_t H5E_FILE_g = FAIL; /* File accessibilty */
|
||||
hid_t H5E_PLINE_g = FAIL; /* Data filters */
|
||||
hid_t H5E_PLIST_g = FAIL; /* Property lists */
|
||||
hid_t H5E_RESOURCE_g = FAIL; /* Resource unavailable */
|
||||
hid_t H5E_DATASET_g = FAIL; /* Dataset */
|
||||
hid_t H5E_REFERENCE_g = FAIL; /* References */
|
||||
hid_t H5E_HEAP_g = FAIL; /* Heap */
|
||||
hid_t H5E_SLIST_g = FAIL; /* Skip Lists */
|
||||
hid_t H5E_DATASPACE_g = FAIL; /* Dataspace */
|
||||
hid_t H5E_LINK_g = FAIL; /* Links */
|
||||
hid_t H5E_PLUGIN_g = FAIL; /* Plugin for dynamically loaded library */
|
||||
hid_t H5E_FUNC_g = FAIL; /* Function entry/exit */
|
||||
hid_t H5E_IO_g = FAIL; /* Low-level I/O */
|
||||
hid_t H5E_EFL_g = FAIL; /* External file list */
|
||||
hid_t H5E_TST_g = FAIL; /* Ternary Search Trees */
|
||||
hid_t H5E_FSPACE_g = FAIL; /* Free Space Manager */
|
||||
hid_t H5E_DATASET_g = FAIL; /* Dataset */
|
||||
hid_t H5E_STORAGE_g = FAIL; /* Data storage */
|
||||
hid_t H5E_LINK_g = FAIL; /* Links */
|
||||
hid_t H5E_PLIST_g = FAIL; /* Property lists */
|
||||
hid_t H5E_DATATYPE_g = FAIL; /* Datatype */
|
||||
hid_t H5E_OHDR_g = FAIL; /* Object header */
|
||||
hid_t H5E_ATOM_g = FAIL; /* Object atom */
|
||||
hid_t H5E_SOHM_g = FAIL; /* Shared Object Header Messages */
|
||||
hid_t H5E_NONE_MAJOR_g = FAIL; /* No error */
|
||||
hid_t H5E_SLIST_g = FAIL; /* Skip Lists */
|
||||
hid_t H5E_ARGS_g = FAIL; /* Invalid arguments to routine */
|
||||
hid_t H5E_EARRAY_g = FAIL; /* Extensible Array */
|
||||
hid_t H5E_PLINE_g = FAIL; /* Data filters */
|
||||
hid_t H5E_ATOM_g = FAIL; /* Object atom */
|
||||
hid_t H5E_SYM_g = FAIL; /* Symbol table */
|
||||
hid_t H5E_FSPACE_g = FAIL; /* Free Space Manager */
|
||||
hid_t H5E_ERROR_g = FAIL; /* Error API */
|
||||
hid_t H5E_RS_g = FAIL; /* Reference Counted Strings */
|
||||
hid_t H5E_CACHE_g = FAIL; /* Object cache */
|
||||
hid_t H5E_ARGS_g = FAIL; /* Invalid arguments to routine */
|
||||
|
||||
/* Minor error IDs */
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
hid_t H5E_SEEKERROR_g = FAIL; /* Seek failed */
|
||||
hid_t H5E_READERROR_g = FAIL; /* Read failed */
|
||||
hid_t H5E_WRITEERROR_g = FAIL; /* Write failed */
|
||||
hid_t H5E_CLOSEERROR_g = FAIL; /* Close failed */
|
||||
hid_t H5E_OVERFLOW_g = FAIL; /* Address overflowed */
|
||||
hid_t H5E_FCNTL_g = FAIL; /* File control (fcntl) failed */
|
||||
/* Group related errors */
|
||||
hid_t H5E_CANTOPENOBJ_g = FAIL; /* Can't open object */
|
||||
hid_t H5E_CANTCLOSEOBJ_g = FAIL; /* Can't close object */
|
||||
hid_t H5E_COMPLEN_g = FAIL; /* Name component is too long */
|
||||
hid_t H5E_PATH_g = FAIL; /* Problem with path to object */
|
||||
|
||||
/* File accessibilty errors */
|
||||
hid_t H5E_FILEEXISTS_g = FAIL; /* File already exists */
|
||||
hid_t H5E_FILEOPEN_g = FAIL; /* File already open */
|
||||
hid_t H5E_CANTCREATE_g = FAIL; /* Unable to create file */
|
||||
hid_t H5E_CANTOPENFILE_g = FAIL; /* Unable to open file */
|
||||
hid_t H5E_CANTCLOSEFILE_g = FAIL; /* Unable to close file */
|
||||
hid_t H5E_NOTHDF5_g = FAIL; /* Not an HDF5 file */
|
||||
hid_t H5E_BADFILE_g = FAIL; /* Bad file ID accessed */
|
||||
hid_t H5E_TRUNCATED_g = FAIL; /* File has been truncated */
|
||||
hid_t H5E_MOUNT_g = FAIL; /* File mount error */
|
||||
|
||||
/* I/O pipeline errors */
|
||||
hid_t H5E_NOFILTER_g = FAIL; /* Requested filter is not available */
|
||||
hid_t H5E_CALLBACK_g = FAIL; /* Callback failed */
|
||||
hid_t H5E_CANAPPLY_g = FAIL; /* Error from filter 'can apply' callback */
|
||||
hid_t H5E_SETLOCAL_g = FAIL; /* Error from filter 'set local' callback */
|
||||
hid_t H5E_NOENCODER_g = FAIL; /* Filter present but encoding disabled */
|
||||
hid_t H5E_CANTFILTER_g = FAIL; /* Filter operation failed */
|
||||
|
||||
/* B-tree related errors */
|
||||
hid_t H5E_NOTFOUND_g = FAIL; /* Object not found */
|
||||
hid_t H5E_EXISTS_g = FAIL; /* Object already exists */
|
||||
hid_t H5E_CANTENCODE_g = FAIL; /* Unable to encode value */
|
||||
hid_t H5E_CANTDECODE_g = FAIL; /* Unable to decode value */
|
||||
hid_t H5E_CANTSPLIT_g = FAIL; /* Unable to split node */
|
||||
hid_t H5E_CANTREDISTRIBUTE_g = FAIL; /* Unable to redistribute records */
|
||||
hid_t H5E_CANTSWAP_g = FAIL; /* Unable to swap records */
|
||||
hid_t H5E_CANTINSERT_g = FAIL; /* Unable to insert object */
|
||||
hid_t H5E_CANTLIST_g = FAIL; /* Unable to list node */
|
||||
hid_t H5E_CANTMODIFY_g = FAIL; /* Unable to modify record */
|
||||
hid_t H5E_CANTREMOVE_g = FAIL; /* Unable to remove object */
|
||||
|
||||
/* Argument errors */
|
||||
hid_t H5E_UNINITIALIZED_g = FAIL; /* Information is uinitialized */
|
||||
hid_t H5E_UNSUPPORTED_g = FAIL; /* Feature is unsupported */
|
||||
hid_t H5E_BADTYPE_g = FAIL; /* Inappropriate type */
|
||||
hid_t H5E_BADRANGE_g = FAIL; /* Out of range */
|
||||
hid_t H5E_BADVALUE_g = FAIL; /* Bad value */
|
||||
|
||||
/* Free space errors */
|
||||
hid_t H5E_CANTMERGE_g = FAIL; /* Can't merge objects */
|
||||
hid_t H5E_CANTREVIVE_g = FAIL; /* Can't revive object */
|
||||
hid_t H5E_CANTSHRINK_g = FAIL; /* Can't shrink container */
|
||||
|
||||
/* Parallel MPI errors */
|
||||
hid_t H5E_MPI_g = FAIL; /* Some MPI function failed */
|
||||
hid_t H5E_MPIERRSTR_g = FAIL; /* MPI Error String */
|
||||
hid_t H5E_CANTRECV_g = FAIL; /* Can't receive data */
|
||||
|
||||
/* Link related errors */
|
||||
hid_t H5E_TRAVERSE_g = FAIL; /* Link traversal failure */
|
||||
hid_t H5E_NLINKS_g = FAIL; /* Too many soft links in path */
|
||||
hid_t H5E_NOTREGISTERED_g = FAIL; /* Link class not registered */
|
||||
hid_t H5E_CANTMOVE_g = FAIL; /* Can't move object */
|
||||
hid_t H5E_CANTSORT_g = FAIL; /* Can't sort objects */
|
||||
|
||||
/* No error */
|
||||
hid_t H5E_NONE_MINOR_g = FAIL; /* No error */
|
||||
|
||||
/* Plugin errors */
|
||||
hid_t H5E_OPENERROR_g = FAIL; /* Can't open directory or file */
|
||||
|
||||
/* Resource errors */
|
||||
hid_t H5E_NOSPACE_g = FAIL; /* No space available for allocation */
|
||||
@ -77,6 +137,15 @@ hid_t H5E_CANTGC_g = FAIL; /* Unable to garbage collect */
|
||||
hid_t H5E_CANTGETSIZE_g = FAIL; /* Unable to compute size */
|
||||
hid_t H5E_OBJOPEN_g = FAIL; /* Object is already open */
|
||||
|
||||
/* Datatype conversion errors */
|
||||
hid_t H5E_CANTCONVERT_g = FAIL; /* Can't convert datatypes */
|
||||
hid_t H5E_BADSIZE_g = FAIL; /* Bad size for object */
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
hid_t H5E_CANTINIT_g = FAIL; /* Unable to initialize object */
|
||||
hid_t H5E_ALREADYINIT_g = FAIL; /* Object already initialized */
|
||||
hid_t H5E_CANTRELEASE_g = FAIL; /* Unable to release object */
|
||||
|
||||
/* Heap errors */
|
||||
hid_t H5E_CANTRESTORE_g = FAIL; /* Can't restore condition */
|
||||
hid_t H5E_CANTCOMPUTE_g = FAIL; /* Can't compute value */
|
||||
@ -85,67 +154,9 @@ hid_t H5E_CANTATTACH_g = FAIL; /* Can't attach object */
|
||||
hid_t H5E_CANTUPDATE_g = FAIL; /* Can't update object */
|
||||
hid_t H5E_CANTOPERATE_g = FAIL; /* Can't operate on object */
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
hid_t H5E_CANTINIT_g = FAIL; /* Unable to initialize object */
|
||||
hid_t H5E_ALREADYINIT_g = FAIL; /* Object already initialized */
|
||||
hid_t H5E_CANTRELEASE_g = FAIL; /* Unable to release object */
|
||||
|
||||
/* Property list errors */
|
||||
hid_t H5E_CANTGET_g = FAIL; /* Can't get value */
|
||||
hid_t H5E_CANTSET_g = FAIL; /* Can't set value */
|
||||
hid_t H5E_DUPCLASS_g = FAIL; /* Duplicate class name in parent class */
|
||||
hid_t H5E_SETDISALLOWED_g = FAIL; /* Disallowed operation */
|
||||
|
||||
/* Free space errors */
|
||||
hid_t H5E_CANTMERGE_g = FAIL; /* Can't merge objects */
|
||||
hid_t H5E_CANTREVIVE_g = FAIL; /* Can't revive object */
|
||||
hid_t H5E_CANTSHRINK_g = FAIL; /* Can't shrink container */
|
||||
|
||||
/* Object header related errors */
|
||||
hid_t H5E_LINKCOUNT_g = FAIL; /* Bad object header link count */
|
||||
hid_t H5E_VERSION_g = FAIL; /* Wrong version number */
|
||||
hid_t H5E_ALIGNMENT_g = FAIL; /* Alignment error */
|
||||
hid_t H5E_BADMESG_g = FAIL; /* Unrecognized message */
|
||||
hid_t H5E_CANTDELETE_g = FAIL; /* Can't delete message */
|
||||
hid_t H5E_BADITER_g = FAIL; /* Iteration failed */
|
||||
hid_t H5E_CANTPACK_g = FAIL; /* Can't pack messages */
|
||||
hid_t H5E_CANTRESET_g = FAIL; /* Can't reset object */
|
||||
hid_t H5E_CANTRENAME_g = FAIL; /* Unable to rename object */
|
||||
|
||||
/* System level errors */
|
||||
hid_t H5E_SYSERRSTR_g = FAIL; /* System error message */
|
||||
|
||||
/* I/O pipeline errors */
|
||||
hid_t H5E_NOFILTER_g = FAIL; /* Requested filter is not available */
|
||||
hid_t H5E_CALLBACK_g = FAIL; /* Callback failed */
|
||||
hid_t H5E_CANAPPLY_g = FAIL; /* Error from filter 'can apply' callback */
|
||||
hid_t H5E_SETLOCAL_g = FAIL; /* Error from filter 'set local' callback */
|
||||
hid_t H5E_NOENCODER_g = FAIL; /* Filter present but encoding disabled */
|
||||
hid_t H5E_CANTFILTER_g = FAIL; /* Filter operation failed */
|
||||
|
||||
/* Group related errors */
|
||||
hid_t H5E_CANTOPENOBJ_g = FAIL; /* Can't open object */
|
||||
hid_t H5E_CANTCLOSEOBJ_g = FAIL; /* Can't close object */
|
||||
hid_t H5E_COMPLEN_g = FAIL; /* Name component is too long */
|
||||
hid_t H5E_PATH_g = FAIL; /* Problem with path to object */
|
||||
|
||||
/* No error */
|
||||
hid_t H5E_NONE_MINOR_g = FAIL; /* No error */
|
||||
|
||||
/* Plugin errors */
|
||||
hid_t H5E_OPENERROR_g = FAIL; /* Can't open directory or file */
|
||||
|
||||
/* File accessibilty errors */
|
||||
hid_t H5E_FILEEXISTS_g = FAIL; /* File already exists */
|
||||
hid_t H5E_FILEOPEN_g = FAIL; /* File already open */
|
||||
hid_t H5E_CANTCREATE_g = FAIL; /* Unable to create file */
|
||||
hid_t H5E_CANTOPENFILE_g = FAIL; /* Unable to open file */
|
||||
hid_t H5E_CANTCLOSEFILE_g = FAIL; /* Unable to close file */
|
||||
hid_t H5E_NOTHDF5_g = FAIL; /* Not an HDF5 file */
|
||||
hid_t H5E_BADFILE_g = FAIL; /* Bad file ID accessed */
|
||||
hid_t H5E_TRUNCATED_g = FAIL; /* File has been truncated */
|
||||
hid_t H5E_MOUNT_g = FAIL; /* File mount error */
|
||||
|
||||
/* Object atom related errors */
|
||||
hid_t H5E_BADATOM_g = FAIL; /* Unable to find atom information (already closed?) */
|
||||
hid_t H5E_BADGROUP_g = FAIL; /* Unable to find ID group information */
|
||||
@ -154,6 +165,14 @@ hid_t H5E_CANTINC_g = FAIL; /* Unable to increment reference count *
|
||||
hid_t H5E_CANTDEC_g = FAIL; /* Unable to decrement reference count */
|
||||
hid_t H5E_NOIDS_g = FAIL; /* Out of IDs for group */
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
hid_t H5E_SEEKERROR_g = FAIL; /* Seek failed */
|
||||
hid_t H5E_READERROR_g = FAIL; /* Read failed */
|
||||
hid_t H5E_WRITEERROR_g = FAIL; /* Write failed */
|
||||
hid_t H5E_CLOSEERROR_g = FAIL; /* Close failed */
|
||||
hid_t H5E_OVERFLOW_g = FAIL; /* Address overflowed */
|
||||
hid_t H5E_FCNTL_g = FAIL; /* File control (fcntl) failed */
|
||||
|
||||
/* Cache related errors */
|
||||
hid_t H5E_CANTFLUSH_g = FAIL; /* Unable to flush data from cache */
|
||||
hid_t H5E_CANTSERIALIZE_g = FAIL; /* Unable to serialize data from cache */
|
||||
@ -175,17 +194,11 @@ hid_t H5E_CANTDEPEND_g = FAIL; /* Unable to create a flush dependency *
|
||||
hid_t H5E_CANTUNDEPEND_g = FAIL; /* Unable to destroy a flush dependency */
|
||||
hid_t H5E_CANTNOTIFY_g = FAIL; /* Unable to notify object about action */
|
||||
|
||||
/* Link related errors */
|
||||
hid_t H5E_TRAVERSE_g = FAIL; /* Link traversal failure */
|
||||
hid_t H5E_NLINKS_g = FAIL; /* Too many soft links in path */
|
||||
hid_t H5E_NOTREGISTERED_g = FAIL; /* Link class not registered */
|
||||
hid_t H5E_CANTMOVE_g = FAIL; /* Can't move object */
|
||||
hid_t H5E_CANTSORT_g = FAIL; /* Can't sort objects */
|
||||
|
||||
/* Parallel MPI errors */
|
||||
hid_t H5E_MPI_g = FAIL; /* Some MPI function failed */
|
||||
hid_t H5E_MPIERRSTR_g = FAIL; /* MPI Error String */
|
||||
hid_t H5E_CANTRECV_g = FAIL; /* Can't receive data */
|
||||
/* Property list errors */
|
||||
hid_t H5E_CANTGET_g = FAIL; /* Can't get value */
|
||||
hid_t H5E_CANTSET_g = FAIL; /* Can't set value */
|
||||
hid_t H5E_DUPCLASS_g = FAIL; /* Duplicate class name in parent class */
|
||||
hid_t H5E_SETDISALLOWED_g = FAIL; /* Disallowed operation */
|
||||
|
||||
/* Dataspace errors */
|
||||
hid_t H5E_CANTCLIP_g = FAIL; /* Can't clip hyperslab region */
|
||||
@ -195,28 +208,15 @@ hid_t H5E_CANTNEXT_g = FAIL; /* Can't move to next iterator location
|
||||
hid_t H5E_BADSELECT_g = FAIL; /* Invalid selection */
|
||||
hid_t H5E_CANTCOMPARE_g = FAIL; /* Can't compare objects */
|
||||
|
||||
/* Argument errors */
|
||||
hid_t H5E_UNINITIALIZED_g = FAIL; /* Information is uinitialized */
|
||||
hid_t H5E_UNSUPPORTED_g = FAIL; /* Feature is unsupported */
|
||||
hid_t H5E_BADTYPE_g = FAIL; /* Inappropriate type */
|
||||
hid_t H5E_BADRANGE_g = FAIL; /* Out of range */
|
||||
hid_t H5E_BADVALUE_g = FAIL; /* Bad value */
|
||||
|
||||
/* B-tree related errors */
|
||||
hid_t H5E_NOTFOUND_g = FAIL; /* Object not found */
|
||||
hid_t H5E_EXISTS_g = FAIL; /* Object already exists */
|
||||
hid_t H5E_CANTENCODE_g = FAIL; /* Unable to encode value */
|
||||
hid_t H5E_CANTDECODE_g = FAIL; /* Unable to decode value */
|
||||
hid_t H5E_CANTSPLIT_g = FAIL; /* Unable to split node */
|
||||
hid_t H5E_CANTREDISTRIBUTE_g = FAIL; /* Unable to redistribute records */
|
||||
hid_t H5E_CANTSWAP_g = FAIL; /* Unable to swap records */
|
||||
hid_t H5E_CANTINSERT_g = FAIL; /* Unable to insert object */
|
||||
hid_t H5E_CANTLIST_g = FAIL; /* Unable to list node */
|
||||
hid_t H5E_CANTMODIFY_g = FAIL; /* Unable to modify record */
|
||||
hid_t H5E_CANTREMOVE_g = FAIL; /* Unable to remove object */
|
||||
|
||||
/* Datatype conversion errors */
|
||||
hid_t H5E_CANTCONVERT_g = FAIL; /* Can't convert datatypes */
|
||||
hid_t H5E_BADSIZE_g = FAIL; /* Bad size for object */
|
||||
/* Object header related errors */
|
||||
hid_t H5E_LINKCOUNT_g = FAIL; /* Bad object header link count */
|
||||
hid_t H5E_VERSION_g = FAIL; /* Wrong version number */
|
||||
hid_t H5E_ALIGNMENT_g = FAIL; /* Alignment error */
|
||||
hid_t H5E_BADMESG_g = FAIL; /* Unrecognized message */
|
||||
hid_t H5E_CANTDELETE_g = FAIL; /* Can't delete message */
|
||||
hid_t H5E_BADITER_g = FAIL; /* Iteration failed */
|
||||
hid_t H5E_CANTPACK_g = FAIL; /* Can't pack messages */
|
||||
hid_t H5E_CANTRESET_g = FAIL; /* Can't reset object */
|
||||
hid_t H5E_CANTRENAME_g = FAIL; /* Unable to rename object */
|
||||
|
||||
#endif /* H5Edefin_H */
|
||||
|
908
src/H5Einit.h
908
src/H5Einit.h
File diff suppressed because it is too large
Load Diff
446
src/H5Epubgen.h
446
src/H5Epubgen.h
@ -24,90 +24,192 @@
|
||||
/* Major error codes */
|
||||
/*********************/
|
||||
|
||||
#define H5E_FUNC (H5OPEN H5E_FUNC_g)
|
||||
#define H5E_FILE (H5OPEN H5E_FILE_g)
|
||||
#define H5E_SOHM (H5OPEN H5E_SOHM_g)
|
||||
#define H5E_SYM (H5OPEN H5E_SYM_g)
|
||||
#define H5E_PLUGIN (H5OPEN H5E_PLUGIN_g)
|
||||
#define H5E_VFL (H5OPEN H5E_VFL_g)
|
||||
#define H5E_EARRAY (H5OPEN H5E_EARRAY_g)
|
||||
#define H5E_INTERNAL (H5OPEN H5E_INTERNAL_g)
|
||||
#define H5E_BTREE (H5OPEN H5E_BTREE_g)
|
||||
#define H5E_REFERENCE (H5OPEN H5E_REFERENCE_g)
|
||||
#define H5E_DATASPACE (H5OPEN H5E_DATASPACE_g)
|
||||
#define H5E_RESOURCE (H5OPEN H5E_RESOURCE_g)
|
||||
#define H5E_RS (H5OPEN H5E_RS_g)
|
||||
#define H5E_FARRAY (H5OPEN H5E_FARRAY_g)
|
||||
#define H5E_HEAP (H5OPEN H5E_HEAP_g)
|
||||
#define H5E_STORAGE (H5OPEN H5E_STORAGE_g)
|
||||
#define H5E_ATTR (H5OPEN H5E_ATTR_g)
|
||||
#define H5E_TST (H5OPEN H5E_TST_g)
|
||||
#define H5E_DATATYPE (H5OPEN H5E_DATATYPE_g)
|
||||
#define H5E_FARRAY (H5OPEN H5E_FARRAY_g)
|
||||
#define H5E_OHDR (H5OPEN H5E_OHDR_g)
|
||||
#define H5E_BTREE (H5OPEN H5E_BTREE_g)
|
||||
#define H5E_VFL (H5OPEN H5E_VFL_g)
|
||||
#define H5E_FILE (H5OPEN H5E_FILE_g)
|
||||
#define H5E_PLINE (H5OPEN H5E_PLINE_g)
|
||||
#define H5E_PLIST (H5OPEN H5E_PLIST_g)
|
||||
#define H5E_RESOURCE (H5OPEN H5E_RESOURCE_g)
|
||||
#define H5E_DATASET (H5OPEN H5E_DATASET_g)
|
||||
#define H5E_REFERENCE (H5OPEN H5E_REFERENCE_g)
|
||||
#define H5E_HEAP (H5OPEN H5E_HEAP_g)
|
||||
#define H5E_SLIST (H5OPEN H5E_SLIST_g)
|
||||
#define H5E_DATASPACE (H5OPEN H5E_DATASPACE_g)
|
||||
#define H5E_LINK (H5OPEN H5E_LINK_g)
|
||||
#define H5E_PLUGIN (H5OPEN H5E_PLUGIN_g)
|
||||
#define H5E_FUNC (H5OPEN H5E_FUNC_g)
|
||||
#define H5E_IO (H5OPEN H5E_IO_g)
|
||||
#define H5E_EFL (H5OPEN H5E_EFL_g)
|
||||
#define H5E_TST (H5OPEN H5E_TST_g)
|
||||
#define H5E_FSPACE (H5OPEN H5E_FSPACE_g)
|
||||
#define H5E_DATASET (H5OPEN H5E_DATASET_g)
|
||||
#define H5E_STORAGE (H5OPEN H5E_STORAGE_g)
|
||||
#define H5E_LINK (H5OPEN H5E_LINK_g)
|
||||
#define H5E_PLIST (H5OPEN H5E_PLIST_g)
|
||||
#define H5E_DATATYPE (H5OPEN H5E_DATATYPE_g)
|
||||
#define H5E_OHDR (H5OPEN H5E_OHDR_g)
|
||||
#define H5E_ATOM (H5OPEN H5E_ATOM_g)
|
||||
#define H5E_SOHM (H5OPEN H5E_SOHM_g)
|
||||
#define H5E_NONE_MAJOR (H5OPEN H5E_NONE_MAJOR_g)
|
||||
#define H5E_SLIST (H5OPEN H5E_SLIST_g)
|
||||
#define H5E_ARGS (H5OPEN H5E_ARGS_g)
|
||||
#define H5E_EARRAY (H5OPEN H5E_EARRAY_g)
|
||||
#define H5E_PLINE (H5OPEN H5E_PLINE_g)
|
||||
#define H5E_ATOM (H5OPEN H5E_ATOM_g)
|
||||
#define H5E_SYM (H5OPEN H5E_SYM_g)
|
||||
#define H5E_FSPACE (H5OPEN H5E_FSPACE_g)
|
||||
#define H5E_ERROR (H5OPEN H5E_ERROR_g)
|
||||
#define H5E_RS (H5OPEN H5E_RS_g)
|
||||
#define H5E_CACHE (H5OPEN H5E_CACHE_g)
|
||||
H5_DLLVAR hid_t H5E_FUNC_g; /* Function entry/exit */
|
||||
H5_DLLVAR hid_t H5E_FILE_g; /* File accessibilty */
|
||||
H5_DLLVAR hid_t H5E_SOHM_g; /* Shared Object Header Messages */
|
||||
H5_DLLVAR hid_t H5E_SYM_g; /* Symbol table */
|
||||
H5_DLLVAR hid_t H5E_PLUGIN_g; /* Plugin for dynamically loaded library */
|
||||
H5_DLLVAR hid_t H5E_VFL_g; /* Virtual File Layer */
|
||||
#define H5E_ARGS (H5OPEN H5E_ARGS_g)
|
||||
H5_DLLVAR hid_t H5E_EARRAY_g; /* Extensible Array */
|
||||
H5_DLLVAR hid_t H5E_INTERNAL_g; /* Internal error (too specific to document in detail) */
|
||||
H5_DLLVAR hid_t H5E_BTREE_g; /* B-Tree node */
|
||||
H5_DLLVAR hid_t H5E_REFERENCE_g; /* References */
|
||||
H5_DLLVAR hid_t H5E_DATASPACE_g; /* Dataspace */
|
||||
H5_DLLVAR hid_t H5E_RESOURCE_g; /* Resource unavailable */
|
||||
H5_DLLVAR hid_t H5E_RS_g; /* Reference Counted Strings */
|
||||
H5_DLLVAR hid_t H5E_FARRAY_g; /* Fixed Array */
|
||||
H5_DLLVAR hid_t H5E_HEAP_g; /* Heap */
|
||||
H5_DLLVAR hid_t H5E_STORAGE_g; /* Data storage */
|
||||
H5_DLLVAR hid_t H5E_ATTR_g; /* Attribute */
|
||||
H5_DLLVAR hid_t H5E_TST_g; /* Ternary Search Trees */
|
||||
H5_DLLVAR hid_t H5E_DATATYPE_g; /* Datatype */
|
||||
H5_DLLVAR hid_t H5E_FARRAY_g; /* Fixed Array */
|
||||
H5_DLLVAR hid_t H5E_OHDR_g; /* Object header */
|
||||
H5_DLLVAR hid_t H5E_BTREE_g; /* B-Tree node */
|
||||
H5_DLLVAR hid_t H5E_VFL_g; /* Virtual File Layer */
|
||||
H5_DLLVAR hid_t H5E_FILE_g; /* File accessibilty */
|
||||
H5_DLLVAR hid_t H5E_PLINE_g; /* Data filters */
|
||||
H5_DLLVAR hid_t H5E_PLIST_g; /* Property lists */
|
||||
H5_DLLVAR hid_t H5E_RESOURCE_g; /* Resource unavailable */
|
||||
H5_DLLVAR hid_t H5E_DATASET_g; /* Dataset */
|
||||
H5_DLLVAR hid_t H5E_REFERENCE_g; /* References */
|
||||
H5_DLLVAR hid_t H5E_HEAP_g; /* Heap */
|
||||
H5_DLLVAR hid_t H5E_SLIST_g; /* Skip Lists */
|
||||
H5_DLLVAR hid_t H5E_DATASPACE_g; /* Dataspace */
|
||||
H5_DLLVAR hid_t H5E_LINK_g; /* Links */
|
||||
H5_DLLVAR hid_t H5E_PLUGIN_g; /* Plugin for dynamically loaded library */
|
||||
H5_DLLVAR hid_t H5E_FUNC_g; /* Function entry/exit */
|
||||
H5_DLLVAR hid_t H5E_IO_g; /* Low-level I/O */
|
||||
H5_DLLVAR hid_t H5E_EFL_g; /* External file list */
|
||||
H5_DLLVAR hid_t H5E_TST_g; /* Ternary Search Trees */
|
||||
H5_DLLVAR hid_t H5E_FSPACE_g; /* Free Space Manager */
|
||||
H5_DLLVAR hid_t H5E_DATASET_g; /* Dataset */
|
||||
H5_DLLVAR hid_t H5E_STORAGE_g; /* Data storage */
|
||||
H5_DLLVAR hid_t H5E_LINK_g; /* Links */
|
||||
H5_DLLVAR hid_t H5E_PLIST_g; /* Property lists */
|
||||
H5_DLLVAR hid_t H5E_DATATYPE_g; /* Datatype */
|
||||
H5_DLLVAR hid_t H5E_OHDR_g; /* Object header */
|
||||
H5_DLLVAR hid_t H5E_ATOM_g; /* Object atom */
|
||||
H5_DLLVAR hid_t H5E_SOHM_g; /* Shared Object Header Messages */
|
||||
H5_DLLVAR hid_t H5E_NONE_MAJOR_g; /* No error */
|
||||
H5_DLLVAR hid_t H5E_SLIST_g; /* Skip Lists */
|
||||
H5_DLLVAR hid_t H5E_ARGS_g; /* Invalid arguments to routine */
|
||||
H5_DLLVAR hid_t H5E_EARRAY_g; /* Extensible Array */
|
||||
H5_DLLVAR hid_t H5E_PLINE_g; /* Data filters */
|
||||
H5_DLLVAR hid_t H5E_ATOM_g; /* Object atom */
|
||||
H5_DLLVAR hid_t H5E_SYM_g; /* Symbol table */
|
||||
H5_DLLVAR hid_t H5E_FSPACE_g; /* Free Space Manager */
|
||||
H5_DLLVAR hid_t H5E_ERROR_g; /* Error API */
|
||||
H5_DLLVAR hid_t H5E_RS_g; /* Reference Counted Strings */
|
||||
H5_DLLVAR hid_t H5E_CACHE_g; /* Object cache */
|
||||
H5_DLLVAR hid_t H5E_ARGS_g; /* Invalid arguments to routine */
|
||||
|
||||
/*********************/
|
||||
/* Minor error codes */
|
||||
/*********************/
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
#define H5E_SEEKERROR (H5OPEN H5E_SEEKERROR_g)
|
||||
#define H5E_READERROR (H5OPEN H5E_READERROR_g)
|
||||
#define H5E_WRITEERROR (H5OPEN H5E_WRITEERROR_g)
|
||||
#define H5E_CLOSEERROR (H5OPEN H5E_CLOSEERROR_g)
|
||||
#define H5E_OVERFLOW (H5OPEN H5E_OVERFLOW_g)
|
||||
#define H5E_FCNTL (H5OPEN H5E_FCNTL_g)
|
||||
H5_DLLVAR hid_t H5E_SEEKERROR_g; /* Seek failed */
|
||||
H5_DLLVAR hid_t H5E_READERROR_g; /* Read failed */
|
||||
H5_DLLVAR hid_t H5E_WRITEERROR_g; /* Write failed */
|
||||
H5_DLLVAR hid_t H5E_CLOSEERROR_g; /* Close failed */
|
||||
H5_DLLVAR hid_t H5E_OVERFLOW_g; /* Address overflowed */
|
||||
H5_DLLVAR hid_t H5E_FCNTL_g; /* File control (fcntl) failed */
|
||||
/* Group related errors */
|
||||
#define H5E_CANTOPENOBJ (H5OPEN H5E_CANTOPENOBJ_g)
|
||||
#define H5E_CANTCLOSEOBJ (H5OPEN H5E_CANTCLOSEOBJ_g)
|
||||
#define H5E_COMPLEN (H5OPEN H5E_COMPLEN_g)
|
||||
#define H5E_PATH (H5OPEN H5E_PATH_g)
|
||||
H5_DLLVAR hid_t H5E_CANTOPENOBJ_g; /* Can't open object */
|
||||
H5_DLLVAR hid_t H5E_CANTCLOSEOBJ_g; /* Can't close object */
|
||||
H5_DLLVAR hid_t H5E_COMPLEN_g; /* Name component is too long */
|
||||
H5_DLLVAR hid_t H5E_PATH_g; /* Problem with path to object */
|
||||
|
||||
/* File accessibilty errors */
|
||||
#define H5E_FILEEXISTS (H5OPEN H5E_FILEEXISTS_g)
|
||||
#define H5E_FILEOPEN (H5OPEN H5E_FILEOPEN_g)
|
||||
#define H5E_CANTCREATE (H5OPEN H5E_CANTCREATE_g)
|
||||
#define H5E_CANTOPENFILE (H5OPEN H5E_CANTOPENFILE_g)
|
||||
#define H5E_CANTCLOSEFILE (H5OPEN H5E_CANTCLOSEFILE_g)
|
||||
#define H5E_NOTHDF5 (H5OPEN H5E_NOTHDF5_g)
|
||||
#define H5E_BADFILE (H5OPEN H5E_BADFILE_g)
|
||||
#define H5E_TRUNCATED (H5OPEN H5E_TRUNCATED_g)
|
||||
#define H5E_MOUNT (H5OPEN H5E_MOUNT_g)
|
||||
H5_DLLVAR hid_t H5E_FILEEXISTS_g; /* File already exists */
|
||||
H5_DLLVAR hid_t H5E_FILEOPEN_g; /* File already open */
|
||||
H5_DLLVAR hid_t H5E_CANTCREATE_g; /* Unable to create file */
|
||||
H5_DLLVAR hid_t H5E_CANTOPENFILE_g; /* Unable to open file */
|
||||
H5_DLLVAR hid_t H5E_CANTCLOSEFILE_g; /* Unable to close file */
|
||||
H5_DLLVAR hid_t H5E_NOTHDF5_g; /* Not an HDF5 file */
|
||||
H5_DLLVAR hid_t H5E_BADFILE_g; /* Bad file ID accessed */
|
||||
H5_DLLVAR hid_t H5E_TRUNCATED_g; /* File has been truncated */
|
||||
H5_DLLVAR hid_t H5E_MOUNT_g; /* File mount error */
|
||||
|
||||
/* I/O pipeline errors */
|
||||
#define H5E_NOFILTER (H5OPEN H5E_NOFILTER_g)
|
||||
#define H5E_CALLBACK (H5OPEN H5E_CALLBACK_g)
|
||||
#define H5E_CANAPPLY (H5OPEN H5E_CANAPPLY_g)
|
||||
#define H5E_SETLOCAL (H5OPEN H5E_SETLOCAL_g)
|
||||
#define H5E_NOENCODER (H5OPEN H5E_NOENCODER_g)
|
||||
#define H5E_CANTFILTER (H5OPEN H5E_CANTFILTER_g)
|
||||
H5_DLLVAR hid_t H5E_NOFILTER_g; /* Requested filter is not available */
|
||||
H5_DLLVAR hid_t H5E_CALLBACK_g; /* Callback failed */
|
||||
H5_DLLVAR hid_t H5E_CANAPPLY_g; /* Error from filter 'can apply' callback */
|
||||
H5_DLLVAR hid_t H5E_SETLOCAL_g; /* Error from filter 'set local' callback */
|
||||
H5_DLLVAR hid_t H5E_NOENCODER_g; /* Filter present but encoding disabled */
|
||||
H5_DLLVAR hid_t H5E_CANTFILTER_g; /* Filter operation failed */
|
||||
|
||||
/* B-tree related errors */
|
||||
#define H5E_NOTFOUND (H5OPEN H5E_NOTFOUND_g)
|
||||
#define H5E_EXISTS (H5OPEN H5E_EXISTS_g)
|
||||
#define H5E_CANTENCODE (H5OPEN H5E_CANTENCODE_g)
|
||||
#define H5E_CANTDECODE (H5OPEN H5E_CANTDECODE_g)
|
||||
#define H5E_CANTSPLIT (H5OPEN H5E_CANTSPLIT_g)
|
||||
#define H5E_CANTREDISTRIBUTE (H5OPEN H5E_CANTREDISTRIBUTE_g)
|
||||
#define H5E_CANTSWAP (H5OPEN H5E_CANTSWAP_g)
|
||||
#define H5E_CANTINSERT (H5OPEN H5E_CANTINSERT_g)
|
||||
#define H5E_CANTLIST (H5OPEN H5E_CANTLIST_g)
|
||||
#define H5E_CANTMODIFY (H5OPEN H5E_CANTMODIFY_g)
|
||||
#define H5E_CANTREMOVE (H5OPEN H5E_CANTREMOVE_g)
|
||||
H5_DLLVAR hid_t H5E_NOTFOUND_g; /* Object not found */
|
||||
H5_DLLVAR hid_t H5E_EXISTS_g; /* Object already exists */
|
||||
H5_DLLVAR hid_t H5E_CANTENCODE_g; /* Unable to encode value */
|
||||
H5_DLLVAR hid_t H5E_CANTDECODE_g; /* Unable to decode value */
|
||||
H5_DLLVAR hid_t H5E_CANTSPLIT_g; /* Unable to split node */
|
||||
H5_DLLVAR hid_t H5E_CANTREDISTRIBUTE_g; /* Unable to redistribute records */
|
||||
H5_DLLVAR hid_t H5E_CANTSWAP_g; /* Unable to swap records */
|
||||
H5_DLLVAR hid_t H5E_CANTINSERT_g; /* Unable to insert object */
|
||||
H5_DLLVAR hid_t H5E_CANTLIST_g; /* Unable to list node */
|
||||
H5_DLLVAR hid_t H5E_CANTMODIFY_g; /* Unable to modify record */
|
||||
H5_DLLVAR hid_t H5E_CANTREMOVE_g; /* Unable to remove object */
|
||||
|
||||
/* Argument errors */
|
||||
#define H5E_UNINITIALIZED (H5OPEN H5E_UNINITIALIZED_g)
|
||||
#define H5E_UNSUPPORTED (H5OPEN H5E_UNSUPPORTED_g)
|
||||
#define H5E_BADTYPE (H5OPEN H5E_BADTYPE_g)
|
||||
#define H5E_BADRANGE (H5OPEN H5E_BADRANGE_g)
|
||||
#define H5E_BADVALUE (H5OPEN H5E_BADVALUE_g)
|
||||
H5_DLLVAR hid_t H5E_UNINITIALIZED_g; /* Information is uinitialized */
|
||||
H5_DLLVAR hid_t H5E_UNSUPPORTED_g; /* Feature is unsupported */
|
||||
H5_DLLVAR hid_t H5E_BADTYPE_g; /* Inappropriate type */
|
||||
H5_DLLVAR hid_t H5E_BADRANGE_g; /* Out of range */
|
||||
H5_DLLVAR hid_t H5E_BADVALUE_g; /* Bad value */
|
||||
|
||||
/* Free space errors */
|
||||
#define H5E_CANTMERGE (H5OPEN H5E_CANTMERGE_g)
|
||||
#define H5E_CANTREVIVE (H5OPEN H5E_CANTREVIVE_g)
|
||||
#define H5E_CANTSHRINK (H5OPEN H5E_CANTSHRINK_g)
|
||||
H5_DLLVAR hid_t H5E_CANTMERGE_g; /* Can't merge objects */
|
||||
H5_DLLVAR hid_t H5E_CANTREVIVE_g; /* Can't revive object */
|
||||
H5_DLLVAR hid_t H5E_CANTSHRINK_g; /* Can't shrink container */
|
||||
|
||||
/* Parallel MPI errors */
|
||||
#define H5E_MPI (H5OPEN H5E_MPI_g)
|
||||
#define H5E_MPIERRSTR (H5OPEN H5E_MPIERRSTR_g)
|
||||
#define H5E_CANTRECV (H5OPEN H5E_CANTRECV_g)
|
||||
H5_DLLVAR hid_t H5E_MPI_g; /* Some MPI function failed */
|
||||
H5_DLLVAR hid_t H5E_MPIERRSTR_g; /* MPI Error String */
|
||||
H5_DLLVAR hid_t H5E_CANTRECV_g; /* Can't receive data */
|
||||
|
||||
/* Link related errors */
|
||||
#define H5E_TRAVERSE (H5OPEN H5E_TRAVERSE_g)
|
||||
#define H5E_NLINKS (H5OPEN H5E_NLINKS_g)
|
||||
#define H5E_NOTREGISTERED (H5OPEN H5E_NOTREGISTERED_g)
|
||||
#define H5E_CANTMOVE (H5OPEN H5E_CANTMOVE_g)
|
||||
#define H5E_CANTSORT (H5OPEN H5E_CANTSORT_g)
|
||||
H5_DLLVAR hid_t H5E_TRAVERSE_g; /* Link traversal failure */
|
||||
H5_DLLVAR hid_t H5E_NLINKS_g; /* Too many soft links in path */
|
||||
H5_DLLVAR hid_t H5E_NOTREGISTERED_g; /* Link class not registered */
|
||||
H5_DLLVAR hid_t H5E_CANTMOVE_g; /* Can't move object */
|
||||
H5_DLLVAR hid_t H5E_CANTSORT_g; /* Can't sort objects */
|
||||
|
||||
/* No error */
|
||||
#define H5E_NONE_MINOR (H5OPEN H5E_NONE_MINOR_g)
|
||||
H5_DLLVAR hid_t H5E_NONE_MINOR_g; /* No error */
|
||||
|
||||
/* Plugin errors */
|
||||
#define H5E_OPENERROR (H5OPEN H5E_OPENERROR_g)
|
||||
H5_DLLVAR hid_t H5E_OPENERROR_g; /* Can't open directory or file */
|
||||
|
||||
/* Resource errors */
|
||||
#define H5E_NOSPACE (H5OPEN H5E_NOSPACE_g)
|
||||
@ -131,6 +233,20 @@ H5_DLLVAR hid_t H5E_CANTGC_g; /* Unable to garbage collect */
|
||||
H5_DLLVAR hid_t H5E_CANTGETSIZE_g; /* Unable to compute size */
|
||||
H5_DLLVAR hid_t H5E_OBJOPEN_g; /* Object is already open */
|
||||
|
||||
/* Datatype conversion errors */
|
||||
#define H5E_CANTCONVERT (H5OPEN H5E_CANTCONVERT_g)
|
||||
#define H5E_BADSIZE (H5OPEN H5E_BADSIZE_g)
|
||||
H5_DLLVAR hid_t H5E_CANTCONVERT_g; /* Can't convert datatypes */
|
||||
H5_DLLVAR hid_t H5E_BADSIZE_g; /* Bad size for object */
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
#define H5E_CANTINIT (H5OPEN H5E_CANTINIT_g)
|
||||
#define H5E_ALREADYINIT (H5OPEN H5E_ALREADYINIT_g)
|
||||
#define H5E_CANTRELEASE (H5OPEN H5E_CANTRELEASE_g)
|
||||
H5_DLLVAR hid_t H5E_CANTINIT_g; /* Unable to initialize object */
|
||||
H5_DLLVAR hid_t H5E_ALREADYINIT_g; /* Object already initialized */
|
||||
H5_DLLVAR hid_t H5E_CANTRELEASE_g; /* Unable to release object */
|
||||
|
||||
/* Heap errors */
|
||||
#define H5E_CANTRESTORE (H5OPEN H5E_CANTRESTORE_g)
|
||||
#define H5E_CANTCOMPUTE (H5OPEN H5E_CANTCOMPUTE_g)
|
||||
@ -145,108 +261,10 @@ H5_DLLVAR hid_t H5E_CANTATTACH_g; /* Can't attach object */
|
||||
H5_DLLVAR hid_t H5E_CANTUPDATE_g; /* Can't update object */
|
||||
H5_DLLVAR hid_t H5E_CANTOPERATE_g; /* Can't operate on object */
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
#define H5E_CANTINIT (H5OPEN H5E_CANTINIT_g)
|
||||
#define H5E_ALREADYINIT (H5OPEN H5E_ALREADYINIT_g)
|
||||
#define H5E_CANTRELEASE (H5OPEN H5E_CANTRELEASE_g)
|
||||
H5_DLLVAR hid_t H5E_CANTINIT_g; /* Unable to initialize object */
|
||||
H5_DLLVAR hid_t H5E_ALREADYINIT_g; /* Object already initialized */
|
||||
H5_DLLVAR hid_t H5E_CANTRELEASE_g; /* Unable to release object */
|
||||
|
||||
/* Property list errors */
|
||||
#define H5E_CANTGET (H5OPEN H5E_CANTGET_g)
|
||||
#define H5E_CANTSET (H5OPEN H5E_CANTSET_g)
|
||||
#define H5E_DUPCLASS (H5OPEN H5E_DUPCLASS_g)
|
||||
#define H5E_SETDISALLOWED (H5OPEN H5E_SETDISALLOWED_g)
|
||||
H5_DLLVAR hid_t H5E_CANTGET_g; /* Can't get value */
|
||||
H5_DLLVAR hid_t H5E_CANTSET_g; /* Can't set value */
|
||||
H5_DLLVAR hid_t H5E_DUPCLASS_g; /* Duplicate class name in parent class */
|
||||
H5_DLLVAR hid_t H5E_SETDISALLOWED_g; /* Disallowed operation */
|
||||
|
||||
/* Free space errors */
|
||||
#define H5E_CANTMERGE (H5OPEN H5E_CANTMERGE_g)
|
||||
#define H5E_CANTREVIVE (H5OPEN H5E_CANTREVIVE_g)
|
||||
#define H5E_CANTSHRINK (H5OPEN H5E_CANTSHRINK_g)
|
||||
H5_DLLVAR hid_t H5E_CANTMERGE_g; /* Can't merge objects */
|
||||
H5_DLLVAR hid_t H5E_CANTREVIVE_g; /* Can't revive object */
|
||||
H5_DLLVAR hid_t H5E_CANTSHRINK_g; /* Can't shrink container */
|
||||
|
||||
/* Object header related errors */
|
||||
#define H5E_LINKCOUNT (H5OPEN H5E_LINKCOUNT_g)
|
||||
#define H5E_VERSION (H5OPEN H5E_VERSION_g)
|
||||
#define H5E_ALIGNMENT (H5OPEN H5E_ALIGNMENT_g)
|
||||
#define H5E_BADMESG (H5OPEN H5E_BADMESG_g)
|
||||
#define H5E_CANTDELETE (H5OPEN H5E_CANTDELETE_g)
|
||||
#define H5E_BADITER (H5OPEN H5E_BADITER_g)
|
||||
#define H5E_CANTPACK (H5OPEN H5E_CANTPACK_g)
|
||||
#define H5E_CANTRESET (H5OPEN H5E_CANTRESET_g)
|
||||
#define H5E_CANTRENAME (H5OPEN H5E_CANTRENAME_g)
|
||||
H5_DLLVAR hid_t H5E_LINKCOUNT_g; /* Bad object header link count */
|
||||
H5_DLLVAR hid_t H5E_VERSION_g; /* Wrong version number */
|
||||
H5_DLLVAR hid_t H5E_ALIGNMENT_g; /* Alignment error */
|
||||
H5_DLLVAR hid_t H5E_BADMESG_g; /* Unrecognized message */
|
||||
H5_DLLVAR hid_t H5E_CANTDELETE_g; /* Can't delete message */
|
||||
H5_DLLVAR hid_t H5E_BADITER_g; /* Iteration failed */
|
||||
H5_DLLVAR hid_t H5E_CANTPACK_g; /* Can't pack messages */
|
||||
H5_DLLVAR hid_t H5E_CANTRESET_g; /* Can't reset object */
|
||||
H5_DLLVAR hid_t H5E_CANTRENAME_g; /* Unable to rename object */
|
||||
|
||||
/* System level errors */
|
||||
#define H5E_SYSERRSTR (H5OPEN H5E_SYSERRSTR_g)
|
||||
H5_DLLVAR hid_t H5E_SYSERRSTR_g; /* System error message */
|
||||
|
||||
/* I/O pipeline errors */
|
||||
#define H5E_NOFILTER (H5OPEN H5E_NOFILTER_g)
|
||||
#define H5E_CALLBACK (H5OPEN H5E_CALLBACK_g)
|
||||
#define H5E_CANAPPLY (H5OPEN H5E_CANAPPLY_g)
|
||||
#define H5E_SETLOCAL (H5OPEN H5E_SETLOCAL_g)
|
||||
#define H5E_NOENCODER (H5OPEN H5E_NOENCODER_g)
|
||||
#define H5E_CANTFILTER (H5OPEN H5E_CANTFILTER_g)
|
||||
H5_DLLVAR hid_t H5E_NOFILTER_g; /* Requested filter is not available */
|
||||
H5_DLLVAR hid_t H5E_CALLBACK_g; /* Callback failed */
|
||||
H5_DLLVAR hid_t H5E_CANAPPLY_g; /* Error from filter 'can apply' callback */
|
||||
H5_DLLVAR hid_t H5E_SETLOCAL_g; /* Error from filter 'set local' callback */
|
||||
H5_DLLVAR hid_t H5E_NOENCODER_g; /* Filter present but encoding disabled */
|
||||
H5_DLLVAR hid_t H5E_CANTFILTER_g; /* Filter operation failed */
|
||||
|
||||
/* Group related errors */
|
||||
#define H5E_CANTOPENOBJ (H5OPEN H5E_CANTOPENOBJ_g)
|
||||
#define H5E_CANTCLOSEOBJ (H5OPEN H5E_CANTCLOSEOBJ_g)
|
||||
#define H5E_COMPLEN (H5OPEN H5E_COMPLEN_g)
|
||||
#define H5E_PATH (H5OPEN H5E_PATH_g)
|
||||
H5_DLLVAR hid_t H5E_CANTOPENOBJ_g; /* Can't open object */
|
||||
H5_DLLVAR hid_t H5E_CANTCLOSEOBJ_g; /* Can't close object */
|
||||
H5_DLLVAR hid_t H5E_COMPLEN_g; /* Name component is too long */
|
||||
H5_DLLVAR hid_t H5E_PATH_g; /* Problem with path to object */
|
||||
|
||||
/* No error */
|
||||
#define H5E_NONE_MINOR (H5OPEN H5E_NONE_MINOR_g)
|
||||
H5_DLLVAR hid_t H5E_NONE_MINOR_g; /* No error */
|
||||
|
||||
/* Plugin errors */
|
||||
#define H5E_OPENERROR (H5OPEN H5E_OPENERROR_g)
|
||||
H5_DLLVAR hid_t H5E_OPENERROR_g; /* Can't open directory or file */
|
||||
|
||||
/* File accessibilty errors */
|
||||
#define H5E_FILEEXISTS (H5OPEN H5E_FILEEXISTS_g)
|
||||
#define H5E_FILEOPEN (H5OPEN H5E_FILEOPEN_g)
|
||||
#define H5E_CANTCREATE (H5OPEN H5E_CANTCREATE_g)
|
||||
#define H5E_CANTOPENFILE (H5OPEN H5E_CANTOPENFILE_g)
|
||||
#define H5E_CANTCLOSEFILE (H5OPEN H5E_CANTCLOSEFILE_g)
|
||||
#define H5E_NOTHDF5 (H5OPEN H5E_NOTHDF5_g)
|
||||
#define H5E_BADFILE (H5OPEN H5E_BADFILE_g)
|
||||
#define H5E_TRUNCATED (H5OPEN H5E_TRUNCATED_g)
|
||||
#define H5E_MOUNT (H5OPEN H5E_MOUNT_g)
|
||||
H5_DLLVAR hid_t H5E_FILEEXISTS_g; /* File already exists */
|
||||
H5_DLLVAR hid_t H5E_FILEOPEN_g; /* File already open */
|
||||
H5_DLLVAR hid_t H5E_CANTCREATE_g; /* Unable to create file */
|
||||
H5_DLLVAR hid_t H5E_CANTOPENFILE_g; /* Unable to open file */
|
||||
H5_DLLVAR hid_t H5E_CANTCLOSEFILE_g; /* Unable to close file */
|
||||
H5_DLLVAR hid_t H5E_NOTHDF5_g; /* Not an HDF5 file */
|
||||
H5_DLLVAR hid_t H5E_BADFILE_g; /* Bad file ID accessed */
|
||||
H5_DLLVAR hid_t H5E_TRUNCATED_g; /* File has been truncated */
|
||||
H5_DLLVAR hid_t H5E_MOUNT_g; /* File mount error */
|
||||
|
||||
/* Object atom related errors */
|
||||
#define H5E_BADATOM (H5OPEN H5E_BADATOM_g)
|
||||
#define H5E_BADGROUP (H5OPEN H5E_BADGROUP_g)
|
||||
@ -261,6 +279,20 @@ H5_DLLVAR hid_t H5E_CANTINC_g; /* Unable to increment reference count */
|
||||
H5_DLLVAR hid_t H5E_CANTDEC_g; /* Unable to decrement reference count */
|
||||
H5_DLLVAR hid_t H5E_NOIDS_g; /* Out of IDs for group */
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
#define H5E_SEEKERROR (H5OPEN H5E_SEEKERROR_g)
|
||||
#define H5E_READERROR (H5OPEN H5E_READERROR_g)
|
||||
#define H5E_WRITEERROR (H5OPEN H5E_WRITEERROR_g)
|
||||
#define H5E_CLOSEERROR (H5OPEN H5E_CLOSEERROR_g)
|
||||
#define H5E_OVERFLOW (H5OPEN H5E_OVERFLOW_g)
|
||||
#define H5E_FCNTL (H5OPEN H5E_FCNTL_g)
|
||||
H5_DLLVAR hid_t H5E_SEEKERROR_g; /* Seek failed */
|
||||
H5_DLLVAR hid_t H5E_READERROR_g; /* Read failed */
|
||||
H5_DLLVAR hid_t H5E_WRITEERROR_g; /* Write failed */
|
||||
H5_DLLVAR hid_t H5E_CLOSEERROR_g; /* Close failed */
|
||||
H5_DLLVAR hid_t H5E_OVERFLOW_g; /* Address overflowed */
|
||||
H5_DLLVAR hid_t H5E_FCNTL_g; /* File control (fcntl) failed */
|
||||
|
||||
/* Cache related errors */
|
||||
#define H5E_CANTFLUSH (H5OPEN H5E_CANTFLUSH_g)
|
||||
#define H5E_CANTSERIALIZE (H5OPEN H5E_CANTSERIALIZE_g)
|
||||
@ -301,25 +333,15 @@ H5_DLLVAR hid_t H5E_CANTDEPEND_g; /* Unable to create a flush dependency */
|
||||
H5_DLLVAR hid_t H5E_CANTUNDEPEND_g; /* Unable to destroy a flush dependency */
|
||||
H5_DLLVAR hid_t H5E_CANTNOTIFY_g; /* Unable to notify object about action */
|
||||
|
||||
/* Link related errors */
|
||||
#define H5E_TRAVERSE (H5OPEN H5E_TRAVERSE_g)
|
||||
#define H5E_NLINKS (H5OPEN H5E_NLINKS_g)
|
||||
#define H5E_NOTREGISTERED (H5OPEN H5E_NOTREGISTERED_g)
|
||||
#define H5E_CANTMOVE (H5OPEN H5E_CANTMOVE_g)
|
||||
#define H5E_CANTSORT (H5OPEN H5E_CANTSORT_g)
|
||||
H5_DLLVAR hid_t H5E_TRAVERSE_g; /* Link traversal failure */
|
||||
H5_DLLVAR hid_t H5E_NLINKS_g; /* Too many soft links in path */
|
||||
H5_DLLVAR hid_t H5E_NOTREGISTERED_g; /* Link class not registered */
|
||||
H5_DLLVAR hid_t H5E_CANTMOVE_g; /* Can't move object */
|
||||
H5_DLLVAR hid_t H5E_CANTSORT_g; /* Can't sort objects */
|
||||
|
||||
/* Parallel MPI errors */
|
||||
#define H5E_MPI (H5OPEN H5E_MPI_g)
|
||||
#define H5E_MPIERRSTR (H5OPEN H5E_MPIERRSTR_g)
|
||||
#define H5E_CANTRECV (H5OPEN H5E_CANTRECV_g)
|
||||
H5_DLLVAR hid_t H5E_MPI_g; /* Some MPI function failed */
|
||||
H5_DLLVAR hid_t H5E_MPIERRSTR_g; /* MPI Error String */
|
||||
H5_DLLVAR hid_t H5E_CANTRECV_g; /* Can't receive data */
|
||||
/* Property list errors */
|
||||
#define H5E_CANTGET (H5OPEN H5E_CANTGET_g)
|
||||
#define H5E_CANTSET (H5OPEN H5E_CANTSET_g)
|
||||
#define H5E_DUPCLASS (H5OPEN H5E_DUPCLASS_g)
|
||||
#define H5E_SETDISALLOWED (H5OPEN H5E_SETDISALLOWED_g)
|
||||
H5_DLLVAR hid_t H5E_CANTGET_g; /* Can't get value */
|
||||
H5_DLLVAR hid_t H5E_CANTSET_g; /* Can't set value */
|
||||
H5_DLLVAR hid_t H5E_DUPCLASS_g; /* Duplicate class name in parent class */
|
||||
H5_DLLVAR hid_t H5E_SETDISALLOWED_g; /* Disallowed operation */
|
||||
|
||||
/* Dataspace errors */
|
||||
#define H5E_CANTCLIP (H5OPEN H5E_CANTCLIP_g)
|
||||
@ -335,46 +357,24 @@ H5_DLLVAR hid_t H5E_CANTNEXT_g; /* Can't move to next iterator location */
|
||||
H5_DLLVAR hid_t H5E_BADSELECT_g; /* Invalid selection */
|
||||
H5_DLLVAR hid_t H5E_CANTCOMPARE_g; /* Can't compare objects */
|
||||
|
||||
/* Argument errors */
|
||||
#define H5E_UNINITIALIZED (H5OPEN H5E_UNINITIALIZED_g)
|
||||
#define H5E_UNSUPPORTED (H5OPEN H5E_UNSUPPORTED_g)
|
||||
#define H5E_BADTYPE (H5OPEN H5E_BADTYPE_g)
|
||||
#define H5E_BADRANGE (H5OPEN H5E_BADRANGE_g)
|
||||
#define H5E_BADVALUE (H5OPEN H5E_BADVALUE_g)
|
||||
H5_DLLVAR hid_t H5E_UNINITIALIZED_g; /* Information is uinitialized */
|
||||
H5_DLLVAR hid_t H5E_UNSUPPORTED_g; /* Feature is unsupported */
|
||||
H5_DLLVAR hid_t H5E_BADTYPE_g; /* Inappropriate type */
|
||||
H5_DLLVAR hid_t H5E_BADRANGE_g; /* Out of range */
|
||||
H5_DLLVAR hid_t H5E_BADVALUE_g; /* Bad value */
|
||||
|
||||
/* B-tree related errors */
|
||||
#define H5E_NOTFOUND (H5OPEN H5E_NOTFOUND_g)
|
||||
#define H5E_EXISTS (H5OPEN H5E_EXISTS_g)
|
||||
#define H5E_CANTENCODE (H5OPEN H5E_CANTENCODE_g)
|
||||
#define H5E_CANTDECODE (H5OPEN H5E_CANTDECODE_g)
|
||||
#define H5E_CANTSPLIT (H5OPEN H5E_CANTSPLIT_g)
|
||||
#define H5E_CANTREDISTRIBUTE (H5OPEN H5E_CANTREDISTRIBUTE_g)
|
||||
#define H5E_CANTSWAP (H5OPEN H5E_CANTSWAP_g)
|
||||
#define H5E_CANTINSERT (H5OPEN H5E_CANTINSERT_g)
|
||||
#define H5E_CANTLIST (H5OPEN H5E_CANTLIST_g)
|
||||
#define H5E_CANTMODIFY (H5OPEN H5E_CANTMODIFY_g)
|
||||
#define H5E_CANTREMOVE (H5OPEN H5E_CANTREMOVE_g)
|
||||
H5_DLLVAR hid_t H5E_NOTFOUND_g; /* Object not found */
|
||||
H5_DLLVAR hid_t H5E_EXISTS_g; /* Object already exists */
|
||||
H5_DLLVAR hid_t H5E_CANTENCODE_g; /* Unable to encode value */
|
||||
H5_DLLVAR hid_t H5E_CANTDECODE_g; /* Unable to decode value */
|
||||
H5_DLLVAR hid_t H5E_CANTSPLIT_g; /* Unable to split node */
|
||||
H5_DLLVAR hid_t H5E_CANTREDISTRIBUTE_g; /* Unable to redistribute records */
|
||||
H5_DLLVAR hid_t H5E_CANTSWAP_g; /* Unable to swap records */
|
||||
H5_DLLVAR hid_t H5E_CANTINSERT_g; /* Unable to insert object */
|
||||
H5_DLLVAR hid_t H5E_CANTLIST_g; /* Unable to list node */
|
||||
H5_DLLVAR hid_t H5E_CANTMODIFY_g; /* Unable to modify record */
|
||||
H5_DLLVAR hid_t H5E_CANTREMOVE_g; /* Unable to remove object */
|
||||
|
||||
/* Datatype conversion errors */
|
||||
#define H5E_CANTCONVERT (H5OPEN H5E_CANTCONVERT_g)
|
||||
#define H5E_BADSIZE (H5OPEN H5E_BADSIZE_g)
|
||||
H5_DLLVAR hid_t H5E_CANTCONVERT_g; /* Can't convert datatypes */
|
||||
H5_DLLVAR hid_t H5E_BADSIZE_g; /* Bad size for object */
|
||||
/* Object header related errors */
|
||||
#define H5E_LINKCOUNT (H5OPEN H5E_LINKCOUNT_g)
|
||||
#define H5E_VERSION (H5OPEN H5E_VERSION_g)
|
||||
#define H5E_ALIGNMENT (H5OPEN H5E_ALIGNMENT_g)
|
||||
#define H5E_BADMESG (H5OPEN H5E_BADMESG_g)
|
||||
#define H5E_CANTDELETE (H5OPEN H5E_CANTDELETE_g)
|
||||
#define H5E_BADITER (H5OPEN H5E_BADITER_g)
|
||||
#define H5E_CANTPACK (H5OPEN H5E_CANTPACK_g)
|
||||
#define H5E_CANTRESET (H5OPEN H5E_CANTRESET_g)
|
||||
#define H5E_CANTRENAME (H5OPEN H5E_CANTRENAME_g)
|
||||
H5_DLLVAR hid_t H5E_LINKCOUNT_g; /* Bad object header link count */
|
||||
H5_DLLVAR hid_t H5E_VERSION_g; /* Wrong version number */
|
||||
H5_DLLVAR hid_t H5E_ALIGNMENT_g; /* Alignment error */
|
||||
H5_DLLVAR hid_t H5E_BADMESG_g; /* Unrecognized message */
|
||||
H5_DLLVAR hid_t H5E_CANTDELETE_g; /* Can't delete message */
|
||||
H5_DLLVAR hid_t H5E_BADITER_g; /* Iteration failed */
|
||||
H5_DLLVAR hid_t H5E_CANTPACK_g; /* Can't pack messages */
|
||||
H5_DLLVAR hid_t H5E_CANTRESET_g; /* Can't reset object */
|
||||
H5_DLLVAR hid_t H5E_CANTRENAME_g; /* Unable to rename object */
|
||||
|
||||
#endif /* H5Epubgen_H */
|
||||
|
252
src/H5Eterm.h
252
src/H5Eterm.h
@ -22,50 +22,110 @@
|
||||
|
||||
/* Reset major error IDs */
|
||||
|
||||
H5E_FUNC_g=
|
||||
H5E_FILE_g=
|
||||
H5E_SOHM_g=
|
||||
H5E_SYM_g=
|
||||
H5E_PLUGIN_g=
|
||||
H5E_VFL_g=
|
||||
H5E_EARRAY_g=
|
||||
H5E_INTERNAL_g=
|
||||
H5E_BTREE_g=
|
||||
H5E_REFERENCE_g=
|
||||
H5E_DATASPACE_g=
|
||||
H5E_RESOURCE_g=
|
||||
H5E_RS_g=
|
||||
H5E_FARRAY_g=
|
||||
H5E_HEAP_g=
|
||||
H5E_STORAGE_g=
|
||||
H5E_ATTR_g=
|
||||
H5E_TST_g=
|
||||
H5E_DATATYPE_g=
|
||||
H5E_FARRAY_g=
|
||||
H5E_OHDR_g=
|
||||
H5E_BTREE_g=
|
||||
H5E_VFL_g=
|
||||
H5E_FILE_g=
|
||||
H5E_PLINE_g=
|
||||
H5E_PLIST_g=
|
||||
H5E_RESOURCE_g=
|
||||
H5E_DATASET_g=
|
||||
H5E_REFERENCE_g=
|
||||
H5E_HEAP_g=
|
||||
H5E_SLIST_g=
|
||||
H5E_DATASPACE_g=
|
||||
H5E_LINK_g=
|
||||
H5E_PLUGIN_g=
|
||||
H5E_FUNC_g=
|
||||
H5E_IO_g=
|
||||
H5E_EFL_g=
|
||||
H5E_TST_g=
|
||||
H5E_FSPACE_g=
|
||||
H5E_DATASET_g=
|
||||
H5E_STORAGE_g=
|
||||
H5E_LINK_g=
|
||||
H5E_PLIST_g=
|
||||
H5E_DATATYPE_g=
|
||||
H5E_OHDR_g=
|
||||
H5E_ATOM_g=
|
||||
H5E_SOHM_g=
|
||||
H5E_NONE_MAJOR_g=
|
||||
H5E_SLIST_g=
|
||||
H5E_ARGS_g=
|
||||
H5E_EARRAY_g=
|
||||
H5E_PLINE_g=
|
||||
H5E_ATOM_g=
|
||||
H5E_SYM_g=
|
||||
H5E_FSPACE_g=
|
||||
H5E_ERROR_g=
|
||||
H5E_CACHE_g= (-1);
|
||||
H5E_RS_g=
|
||||
H5E_CACHE_g=
|
||||
H5E_ARGS_g= (-1);
|
||||
|
||||
/* Reset minor error IDs */
|
||||
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
H5E_SEEKERROR_g=
|
||||
H5E_READERROR_g=
|
||||
H5E_WRITEERROR_g=
|
||||
H5E_CLOSEERROR_g=
|
||||
H5E_OVERFLOW_g=
|
||||
H5E_FCNTL_g=
|
||||
/* Group related errors */
|
||||
H5E_CANTOPENOBJ_g=
|
||||
H5E_CANTCLOSEOBJ_g=
|
||||
H5E_COMPLEN_g=
|
||||
H5E_PATH_g=
|
||||
|
||||
/* File accessibilty errors */
|
||||
H5E_FILEEXISTS_g=
|
||||
H5E_FILEOPEN_g=
|
||||
H5E_CANTCREATE_g=
|
||||
H5E_CANTOPENFILE_g=
|
||||
H5E_CANTCLOSEFILE_g=
|
||||
H5E_NOTHDF5_g=
|
||||
H5E_BADFILE_g=
|
||||
H5E_TRUNCATED_g=
|
||||
H5E_MOUNT_g=
|
||||
|
||||
/* I/O pipeline errors */
|
||||
H5E_NOFILTER_g=
|
||||
H5E_CALLBACK_g=
|
||||
H5E_CANAPPLY_g=
|
||||
H5E_SETLOCAL_g=
|
||||
H5E_NOENCODER_g=
|
||||
H5E_CANTFILTER_g=
|
||||
|
||||
/* B-tree related errors */
|
||||
H5E_NOTFOUND_g=
|
||||
H5E_EXISTS_g=
|
||||
H5E_CANTENCODE_g=
|
||||
H5E_CANTDECODE_g=
|
||||
H5E_CANTSPLIT_g=
|
||||
H5E_CANTREDISTRIBUTE_g=
|
||||
H5E_CANTSWAP_g=
|
||||
H5E_CANTINSERT_g=
|
||||
H5E_CANTLIST_g=
|
||||
H5E_CANTMODIFY_g=
|
||||
H5E_CANTREMOVE_g=
|
||||
|
||||
/* Argument errors */
|
||||
H5E_UNINITIALIZED_g=
|
||||
H5E_UNSUPPORTED_g=
|
||||
H5E_BADTYPE_g=
|
||||
H5E_BADRANGE_g=
|
||||
H5E_BADVALUE_g=
|
||||
|
||||
/* Free space errors */
|
||||
H5E_CANTMERGE_g=
|
||||
H5E_CANTREVIVE_g=
|
||||
H5E_CANTSHRINK_g=
|
||||
|
||||
/* Parallel MPI errors */
|
||||
H5E_MPI_g=
|
||||
H5E_MPIERRSTR_g=
|
||||
H5E_CANTRECV_g=
|
||||
|
||||
/* Link related errors */
|
||||
H5E_TRAVERSE_g=
|
||||
H5E_NLINKS_g=
|
||||
H5E_NOTREGISTERED_g=
|
||||
H5E_CANTMOVE_g=
|
||||
H5E_CANTSORT_g=
|
||||
|
||||
/* No error */
|
||||
H5E_NONE_MINOR_g=
|
||||
|
||||
/* Plugin errors */
|
||||
H5E_OPENERROR_g=
|
||||
|
||||
/* Resource errors */
|
||||
H5E_NOSPACE_g=
|
||||
@ -79,6 +139,15 @@ H5E_CANTGC_g=
|
||||
H5E_CANTGETSIZE_g=
|
||||
H5E_OBJOPEN_g=
|
||||
|
||||
/* Datatype conversion errors */
|
||||
H5E_CANTCONVERT_g=
|
||||
H5E_BADSIZE_g=
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
H5E_CANTINIT_g=
|
||||
H5E_ALREADYINIT_g=
|
||||
H5E_CANTRELEASE_g=
|
||||
|
||||
/* Heap errors */
|
||||
H5E_CANTRESTORE_g=
|
||||
H5E_CANTCOMPUTE_g=
|
||||
@ -87,67 +156,9 @@ H5E_CANTATTACH_g=
|
||||
H5E_CANTUPDATE_g=
|
||||
H5E_CANTOPERATE_g=
|
||||
|
||||
/* Function entry/exit interface errors */
|
||||
H5E_CANTINIT_g=
|
||||
H5E_ALREADYINIT_g=
|
||||
H5E_CANTRELEASE_g=
|
||||
|
||||
/* Property list errors */
|
||||
H5E_CANTGET_g=
|
||||
H5E_CANTSET_g=
|
||||
H5E_DUPCLASS_g=
|
||||
H5E_SETDISALLOWED_g=
|
||||
|
||||
/* Free space errors */
|
||||
H5E_CANTMERGE_g=
|
||||
H5E_CANTREVIVE_g=
|
||||
H5E_CANTSHRINK_g=
|
||||
|
||||
/* Object header related errors */
|
||||
H5E_LINKCOUNT_g=
|
||||
H5E_VERSION_g=
|
||||
H5E_ALIGNMENT_g=
|
||||
H5E_BADMESG_g=
|
||||
H5E_CANTDELETE_g=
|
||||
H5E_BADITER_g=
|
||||
H5E_CANTPACK_g=
|
||||
H5E_CANTRESET_g=
|
||||
H5E_CANTRENAME_g=
|
||||
|
||||
/* System level errors */
|
||||
H5E_SYSERRSTR_g=
|
||||
|
||||
/* I/O pipeline errors */
|
||||
H5E_NOFILTER_g=
|
||||
H5E_CALLBACK_g=
|
||||
H5E_CANAPPLY_g=
|
||||
H5E_SETLOCAL_g=
|
||||
H5E_NOENCODER_g=
|
||||
H5E_CANTFILTER_g=
|
||||
|
||||
/* Group related errors */
|
||||
H5E_CANTOPENOBJ_g=
|
||||
H5E_CANTCLOSEOBJ_g=
|
||||
H5E_COMPLEN_g=
|
||||
H5E_PATH_g=
|
||||
|
||||
/* No error */
|
||||
H5E_NONE_MINOR_g=
|
||||
|
||||
/* Plugin errors */
|
||||
H5E_OPENERROR_g=
|
||||
|
||||
/* File accessibilty errors */
|
||||
H5E_FILEEXISTS_g=
|
||||
H5E_FILEOPEN_g=
|
||||
H5E_CANTCREATE_g=
|
||||
H5E_CANTOPENFILE_g=
|
||||
H5E_CANTCLOSEFILE_g=
|
||||
H5E_NOTHDF5_g=
|
||||
H5E_BADFILE_g=
|
||||
H5E_TRUNCATED_g=
|
||||
H5E_MOUNT_g=
|
||||
|
||||
/* Object atom related errors */
|
||||
H5E_BADATOM_g=
|
||||
H5E_BADGROUP_g=
|
||||
@ -156,6 +167,14 @@ H5E_CANTINC_g=
|
||||
H5E_CANTDEC_g=
|
||||
H5E_NOIDS_g=
|
||||
|
||||
/* Generic low-level file I/O errors */
|
||||
H5E_SEEKERROR_g=
|
||||
H5E_READERROR_g=
|
||||
H5E_WRITEERROR_g=
|
||||
H5E_CLOSEERROR_g=
|
||||
H5E_OVERFLOW_g=
|
||||
H5E_FCNTL_g=
|
||||
|
||||
/* Cache related errors */
|
||||
H5E_CANTFLUSH_g=
|
||||
H5E_CANTSERIALIZE_g=
|
||||
@ -177,17 +196,11 @@ H5E_CANTDEPEND_g=
|
||||
H5E_CANTUNDEPEND_g=
|
||||
H5E_CANTNOTIFY_g=
|
||||
|
||||
/* Link related errors */
|
||||
H5E_TRAVERSE_g=
|
||||
H5E_NLINKS_g=
|
||||
H5E_NOTREGISTERED_g=
|
||||
H5E_CANTMOVE_g=
|
||||
H5E_CANTSORT_g=
|
||||
|
||||
/* Parallel MPI errors */
|
||||
H5E_MPI_g=
|
||||
H5E_MPIERRSTR_g=
|
||||
H5E_CANTRECV_g=
|
||||
/* Property list errors */
|
||||
H5E_CANTGET_g=
|
||||
H5E_CANTSET_g=
|
||||
H5E_DUPCLASS_g=
|
||||
H5E_SETDISALLOWED_g=
|
||||
|
||||
/* Dataspace errors */
|
||||
H5E_CANTCLIP_g=
|
||||
@ -197,28 +210,15 @@ H5E_CANTNEXT_g=
|
||||
H5E_BADSELECT_g=
|
||||
H5E_CANTCOMPARE_g=
|
||||
|
||||
/* Argument errors */
|
||||
H5E_UNINITIALIZED_g=
|
||||
H5E_UNSUPPORTED_g=
|
||||
H5E_BADTYPE_g=
|
||||
H5E_BADRANGE_g=
|
||||
H5E_BADVALUE_g=
|
||||
|
||||
/* B-tree related errors */
|
||||
H5E_NOTFOUND_g=
|
||||
H5E_EXISTS_g=
|
||||
H5E_CANTENCODE_g=
|
||||
H5E_CANTDECODE_g=
|
||||
H5E_CANTSPLIT_g=
|
||||
H5E_CANTREDISTRIBUTE_g=
|
||||
H5E_CANTSWAP_g=
|
||||
H5E_CANTINSERT_g=
|
||||
H5E_CANTLIST_g=
|
||||
H5E_CANTMODIFY_g=
|
||||
H5E_CANTREMOVE_g=
|
||||
|
||||
/* Datatype conversion errors */
|
||||
H5E_CANTCONVERT_g=
|
||||
H5E_BADSIZE_g= (-1);
|
||||
/* Object header related errors */
|
||||
H5E_LINKCOUNT_g=
|
||||
H5E_VERSION_g=
|
||||
H5E_ALIGNMENT_g=
|
||||
H5E_BADMESG_g=
|
||||
H5E_CANTDELETE_g=
|
||||
H5E_BADITER_g=
|
||||
H5E_CANTPACK_g=
|
||||
H5E_CANTRESET_g=
|
||||
H5E_CANTRENAME_g= (-1);
|
||||
|
||||
#endif /* H5Eterm_H */
|
||||
|
@ -210,12 +210,12 @@ H5F_cwfs_find_free_heap(H5F_t *f, hid_t dxpl_id, size_t need, haddr_t *addr)
|
||||
new_need = MAX(H5HG_SIZE(f->shared->cwfs[cwfsno]), new_need);
|
||||
|
||||
if((H5HG_SIZE(f->shared->cwfs[cwfsno]) + new_need) <= H5HG_MAXSIZE) {
|
||||
htri_t extended; /* Whether the heap was extended */
|
||||
htri_t was_extended; /* Whether the heap was extended */
|
||||
|
||||
extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_GHEAP, H5HG_ADDR(f->shared->cwfs[cwfsno]), (hsize_t)H5HG_SIZE(f->shared->cwfs[cwfsno]), (hsize_t)new_need);
|
||||
if(extended < 0)
|
||||
was_extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_GHEAP, H5HG_ADDR(f->shared->cwfs[cwfsno]), (hsize_t)H5HG_SIZE(f->shared->cwfs[cwfsno]), (hsize_t)new_need);
|
||||
if(was_extended < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTEXTEND, FAIL, "error trying to extend heap")
|
||||
else if(extended == TRUE) {
|
||||
else if(was_extended == TRUE) {
|
||||
if(H5HG_extend(f, dxpl_id, H5HG_ADDR(f->shared->cwfs[cwfsno]), new_need) < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTRESIZE, FAIL, "unable to extend global heap collection")
|
||||
*addr = H5HG_ADDR(f->shared->cwfs[cwfsno]);
|
||||
|
10
src/H5HL.c
10
src/H5HL.c
@ -763,7 +763,7 @@ H5HL_insert(H5F_t *f, hid_t dxpl_id, H5HL_t *heap, size_t buf_size, const void *
|
||||
size_t need_more; /* How much more space we need */
|
||||
size_t new_dblk_size; /* Final size of space allocated for heap data block */
|
||||
size_t old_dblk_size; /* Previous size of space allocated for heap data block */
|
||||
htri_t extended; /* Whether the local heap's data segment on disk was extended */
|
||||
htri_t was_extended; /* Whether the local heap's data segment on disk was extended */
|
||||
|
||||
/* At least double the heap's size, making certain there's enough room
|
||||
* for the new object */
|
||||
@ -786,12 +786,12 @@ H5HL_insert(H5F_t *f, hid_t dxpl_id, H5HL_t *heap, size_t buf_size, const void *
|
||||
H5_CHECK_OVERFLOW(new_dblk_size, size_t, hsize_t);
|
||||
|
||||
/* Extend current heap if possible */
|
||||
extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_LHEAP, heap->dblk_addr, (hsize_t)(heap->dblk_size), (hsize_t)need_more);
|
||||
if(extended < 0)
|
||||
was_extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_LHEAP, heap->dblk_addr, (hsize_t)(heap->dblk_size), (hsize_t)need_more);
|
||||
if(was_extended < 0)
|
||||
HGOTO_ERROR(H5E_HEAP, H5E_CANTEXTEND, UFAIL, "error trying to extend heap")
|
||||
|
||||
/* Check if we extended the heap data block in file */
|
||||
if(extended == TRUE) {
|
||||
/* Check if we extended the heap data block in file */
|
||||
if(was_extended == TRUE) {
|
||||
/* Check for prefix & data block contiguous */
|
||||
if(heap->single_cache_obj) {
|
||||
/* Resize prefix+data block */
|
||||
|
@ -211,7 +211,7 @@ HDfprintf(stderr, "%s: aggr = {%a, %Hu, %Hu}\n", FUNC, aggr->addr, aggr->tot_siz
|
||||
|
||||
/* Check if the space requested is larger than the space left in the block */
|
||||
if((size + aggr_frag_size) > aggr->size) {
|
||||
htri_t extended = FALSE; /* Whether the file was extended */
|
||||
htri_t was_extended = FALSE; /* Whether the file was extended */
|
||||
|
||||
/* Check if the block asked for is too large for 'normal' aggregator block */
|
||||
if(size >= aggr->alloc_size) {
|
||||
@ -221,9 +221,9 @@ HDfprintf(stderr, "%s: aggr = {%a, %Hu, %Hu}\n", FUNC, aggr->addr, aggr->tot_siz
|
||||
if(H5F_addr_gt((aggr->addr + aggr->size + ext_size), f->shared->tmp_addr))
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_BADRANGE, HADDR_UNDEF, "'normal' file space allocation request will overlap into 'temporary' file space")
|
||||
|
||||
if ((aggr->addr > 0) && (extended = H5FD_try_extend(f->shared->lf, alloc_type, f, aggr->addr + aggr->size, ext_size)) < 0)
|
||||
if ((aggr->addr > 0) && (was_extended = H5FD_try_extend(f->shared->lf, alloc_type, f, aggr->addr + aggr->size, ext_size)) < 0)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, HADDR_UNDEF, "can't extending space")
|
||||
else if (extended) {
|
||||
else if (was_extended) {
|
||||
/* aggr->size is unchanged */
|
||||
ret_value = aggr->addr + aggr_frag_size;
|
||||
aggr->addr += ext_size;
|
||||
@ -263,9 +263,9 @@ HDfprintf(stderr, "%s: Allocating block\n", FUNC);
|
||||
if(H5F_addr_gt((aggr->addr + aggr->size + ext_size), f->shared->tmp_addr))
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_BADRANGE, HADDR_UNDEF, "'normal' file space allocation request will overlap into 'temporary' file space")
|
||||
|
||||
if((aggr->addr > 0) && (extended = H5FD_try_extend(f->shared->lf, alloc_type, f, aggr->addr + aggr->size, ext_size)) < 0)
|
||||
if((aggr->addr > 0) && (was_extended = H5FD_try_extend(f->shared->lf, alloc_type, f, aggr->addr + aggr->size, ext_size)) < 0)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTALLOC, HADDR_UNDEF, "can't extending space")
|
||||
else if (extended) {
|
||||
else if (was_extended) {
|
||||
aggr->addr += aggr_frag_size;
|
||||
aggr->size += (ext_size - aggr_frag_size);
|
||||
aggr->tot_size += ext_size;
|
||||
@ -313,7 +313,7 @@ HDfprintf(stderr, "%s: Allocating block\n", FUNC);
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTFREE, HADDR_UNDEF, "can't free eoa fragment")
|
||||
|
||||
/* Freeing any possible fragment due to alignment in the block after extension */
|
||||
if(extended && aggr_frag_size)
|
||||
if(was_extended && aggr_frag_size)
|
||||
if(H5MF_xfree(f, alloc_type, dxpl_id, aggr_frag_addr, aggr_frag_size) < 0)
|
||||
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTFREE, HADDR_UNDEF, "can't free aggregation fragment")
|
||||
} /* end if */
|
||||
|
@ -514,7 +514,7 @@ H5O_alloc_extend_chunk(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned chunkno,
|
||||
size_t aligned_size = H5O_ALIGN_OH(oh, size);
|
||||
uint8_t *old_image; /* Old address of chunk's image in memory */
|
||||
size_t old_size; /* Old size of chunk */
|
||||
htri_t extended; /* If chunk can be extended */
|
||||
htri_t was_extended; /* If chunk can be extended */
|
||||
size_t extend_msg; /* Index of null message to extend */
|
||||
hbool_t extended_msg = FALSE; /* Whether an existing message was extended */
|
||||
uint8_t new_size_flags = 0; /* New chunk #0 size flags */
|
||||
@ -592,11 +592,11 @@ H5O_alloc_extend_chunk(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned chunkno,
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTPROTECT, FAIL, "unable to load object header chunk")
|
||||
|
||||
/* Determine whether the chunk can be extended */
|
||||
extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_OHDR, oh->chunk[chunkno].addr,
|
||||
was_extended = H5MF_try_extend(f, dxpl_id, H5FD_MEM_OHDR, oh->chunk[chunkno].addr,
|
||||
(hsize_t)(oh->chunk[chunkno].size), (hsize_t)(delta + extra_prfx_size));
|
||||
if(extended < 0) /* error */
|
||||
if(was_extended < 0) /* error */
|
||||
HGOTO_ERROR(H5E_OHDR, H5E_CANTEXTEND, FAIL, "can't tell if we can extend chunk")
|
||||
else if(extended == FALSE) /* can't extend -- we are done */
|
||||
else if(was_extended == FALSE) /* can't extend -- we are done */
|
||||
HGOTO_DONE(FALSE)
|
||||
|
||||
/* Adjust object header prefix flags */
|
||||
|
@ -1222,12 +1222,16 @@ H5T_init_interface(void)
|
||||
/* From long long to floats */
|
||||
status |= H5T_register(H5T_PERS_HARD, "llong_flt", native_llong, native_float, H5T__conv_llong_float, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "llong_dbl", native_llong, native_double, H5T__conv_llong_double, H5AC_ind_dxpl_id, FALSE);
|
||||
#ifdef H5T_CONV_INTERNAL_LLONG_LDOUBLE
|
||||
status |= H5T_register(H5T_PERS_HARD, "llong_ldbl", native_llong, native_ldouble, H5T__conv_llong_ldouble, H5AC_ind_dxpl_id, FALSE);
|
||||
#endif /* H5T_CONV_INTERNAL_LLONG_LDOUBLE */
|
||||
|
||||
/* From unsigned long long to floats */
|
||||
status |= H5T_register(H5T_PERS_HARD, "ullong_flt", native_ullong, native_float, H5T__conv_ullong_float, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "ullong_dbl", native_ullong, native_double, H5T__conv_ullong_double, H5AC_ind_dxpl_id, FALSE);
|
||||
#ifdef H5T_CONV_INTERNAL_ULLONG_LDOUBLE
|
||||
status |= H5T_register(H5T_PERS_HARD, "ullong_ldbl", native_ullong, native_ldouble, H5T__conv_ullong_ldouble, H5AC_ind_dxpl_id, FALSE);
|
||||
#endif /* H5T_CONV_INTERNAL_ULLONG_LDOUBLE */
|
||||
|
||||
/* From floats to char */
|
||||
status |= H5T_register(H5T_PERS_HARD, "flt_schar", native_float, native_schar, H5T__conv_float_schar, H5AC_ind_dxpl_id, FALSE);
|
||||
@ -1271,12 +1275,16 @@ H5T_init_interface(void)
|
||||
/* From floats to long long */
|
||||
status |= H5T_register(H5T_PERS_HARD, "flt_llong", native_float, native_llong, H5T__conv_float_llong, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "dbl_llong", native_double, native_llong, H5T__conv_double_llong, H5AC_ind_dxpl_id, FALSE);
|
||||
#ifdef H5T_CONV_INTERNAL_LDOUBLE_LLONG
|
||||
status |= H5T_register(H5T_PERS_HARD, "ldbl_llong", native_ldouble, native_llong, H5T__conv_ldouble_llong, H5AC_ind_dxpl_id, FALSE);
|
||||
#endif /* H5T_CONV_INTERNAL_LDOUBLE_LLONG */
|
||||
|
||||
/* From floats to unsigned long long */
|
||||
status |= H5T_register(H5T_PERS_HARD, "flt_ullong", native_float, native_ullong, H5T__conv_float_ullong, H5AC_ind_dxpl_id, FALSE);
|
||||
status |= H5T_register(H5T_PERS_HARD, "dbl_ullong", native_double, native_ullong, H5T__conv_double_ullong, H5AC_ind_dxpl_id, FALSE);
|
||||
#if H5T_CONV_INTERNAL_LDOUBLE_ULLONG
|
||||
status |= H5T_register(H5T_PERS_HARD, "ldbl_ullong", native_ldouble, native_ullong, H5T__conv_ldouble_ullong, H5AC_ind_dxpl_id, FALSE);
|
||||
#endif /* H5T_CONV_INTERNAL_LDOUBLE_ULLONG */
|
||||
|
||||
/*
|
||||
* The special no-op conversion is the fastest, so we list it last. The
|
||||
|
@ -7936,6 +7936,7 @@ H5T__conv_llong_double (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#if H5T_CONV_INTERNAL_LLONG_LDOUBLE
|
||||
herr_t
|
||||
H5T__conv_llong_ldouble (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
size_t nelmts, size_t buf_stride,
|
||||
@ -7944,6 +7945,7 @@ H5T__conv_llong_ldouble (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
{
|
||||
H5T_CONV_xF(LLONG, LDOUBLE, long long, long double, -, -);
|
||||
}
|
||||
#endif /* H5T_CONV_INTERNAL_LLONG_LDOUBLE */
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
@ -8011,6 +8013,7 @@ H5T__conv_ullong_double (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#if H5T_CONV_INTERNAL_ULLONG_LDOUBLE
|
||||
herr_t
|
||||
H5T__conv_ullong_ldouble (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
size_t nelmts, size_t buf_stride,
|
||||
@ -8019,6 +8022,7 @@ H5T__conv_ullong_ldouble (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
{
|
||||
H5T_CONV_xF(ULLONG, LDOUBLE, unsigned long long, long double, -, -);
|
||||
}
|
||||
#endif /*H5T_CONV_INTERNAL_ULLONG_LDOUBLE*/
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
@ -8792,6 +8796,7 @@ H5_GCC_DIAG_ON(float-equal)
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#if H5T_CONV_INTERNAL_LDOUBLE_LLONG
|
||||
herr_t
|
||||
H5T__conv_ldouble_llong (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
size_t nelmts, size_t buf_stride,
|
||||
@ -8802,6 +8807,7 @@ H5_GCC_DIAG_OFF(float-equal)
|
||||
H5T_CONV_Fx(LDOUBLE, LLONG, long double, long long, LLONG_MIN, LLONG_MAX);
|
||||
H5_GCC_DIAG_ON(float-equal)
|
||||
}
|
||||
#endif /*H5T_CONV_INTERNAL_LDOUBLE_LLONG*/
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
@ -8819,6 +8825,7 @@ H5_GCC_DIAG_ON(float-equal)
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#if H5T_CONV_INTERNAL_LDOUBLE_ULLONG
|
||||
herr_t
|
||||
H5T__conv_ldouble_ullong (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
|
||||
size_t nelmts, size_t buf_stride,
|
||||
@ -8829,6 +8836,7 @@ H5_GCC_DIAG_OFF(float-equal)
|
||||
H5T_CONV_Fx(LDOUBLE, ULLONG, long double, unsigned long long, 0, ULLONG_MAX);
|
||||
H5_GCC_DIAG_ON(float-equal)
|
||||
}
|
||||
#endif /*H5T_CONV_INTERNAL_LDOUBLE_ULLONG*/
|
||||
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
|
33
src/H5Tpkg.h
33
src/H5Tpkg.h
@ -111,6 +111,39 @@
|
||||
/* (_not_ setting H5T_VISIT_SIMPLE and setting either H5T_VISIT_COMPLEX_FIRST or H5T_VISIT_COMPLEX_LAST will mean visiting all nodes _except_ "simple" "leafs" in the "tree" */
|
||||
|
||||
|
||||
/* Define an internal macro for converting long long to long double. Mac OS 10.4 gives some
|
||||
* incorrect conversions. */
|
||||
#if (H5_WANT_DATA_ACCURACY && defined(H5_LLONG_TO_LDOUBLE_CORRECT)) || (!H5_WANT_DATA_ACCURACY)
|
||||
#define H5T_CONV_INTERNAL_LLONG_LDOUBLE 1
|
||||
#endif
|
||||
|
||||
/* Define an internal macro for converting unsigned long long to long double. SGI compilers give
|
||||
* some incorect conversion. 64-bit Solaris does different rounding. Windows Visual Studio 6 does
|
||||
* not support unsigned long long. For FreeBSD(sleipnir), the last 2 bytes of mantissa are lost when
|
||||
* compiler tries to do the conversion. For Cygwin, compiler doesn't do rounding correctly.
|
||||
* Mac OS 10.4 gives some incorrect result. */
|
||||
#if (H5_WANT_DATA_ACCURACY && defined(H5_LLONG_TO_LDOUBLE_CORRECT)) || (!H5_WANT_DATA_ACCURACY)
|
||||
#define H5T_CONV_INTERNAL_ULLONG_LDOUBLE 1
|
||||
#endif
|
||||
|
||||
/* Define an internal macro for converting long double to long long. SGI compilers give some incorrect
|
||||
* conversions. Mac OS 10.4 gives incorrect conversions. HP-UX 11.00 compiler generates floating exception.
|
||||
* The hard conversion on Windows .NET 2003 has a bug and gives wrong exception value. */
|
||||
#if (H5_WANT_DATA_ACCURACY && defined(H5_LDOUBLE_TO_LLONG_ACCURATE)) || \
|
||||
(!H5_WANT_DATA_ACCURACY)
|
||||
#define H5T_CONV_INTERNAL_LDOUBLE_LLONG 1
|
||||
#endif
|
||||
|
||||
/* Define an internal macro for converting long double to unsigned long long. SGI compilers give some
|
||||
* incorrect conversions. Mac OS 10.4 gives incorrect conversions. HP-UX 11.00 compiler generates
|
||||
* floating exception. */
|
||||
#if (H5_WANT_DATA_ACCURACY && defined(H5_LDOUBLE_TO_LLONG_ACCURATE)) || \
|
||||
(!H5_WANT_DATA_ACCURACY)
|
||||
#define H5T_CONV_INTERNAL_LDOUBLE_ULLONG 1
|
||||
#else
|
||||
#define H5T_CONV_INTERNAL_LDOUBLE_ULLONG 0
|
||||
#endif
|
||||
|
||||
/* Statistics about a conversion function */
|
||||
struct H5T_stats_t {
|
||||
unsigned ncalls; /*num calls to conversion function */
|
||||
|
@ -47,7 +47,7 @@
|
||||
/* This will only be defined if HDF5 was built with CMake */
|
||||
#ifdef H5_BUILT_AS_DYNAMIC_LIB
|
||||
|
||||
#if defined(hdf5_EXPORTS)
|
||||
#if defined(hdf5_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_DLL __declspec(dllexport)
|
||||
#define H5_DLLVAR extern __declspec(dllexport)
|
||||
@ -70,7 +70,7 @@
|
||||
#define H5_DLLVAR extern
|
||||
#endif /* _HDF5DLL_ */
|
||||
|
||||
#if defined(hdf5_test_EXPORTS)
|
||||
#if defined(hdf5_test_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5TEST_DLL __declspec(dllexport)
|
||||
#define H5TEST_DLLVAR extern __declspec(dllexport)
|
||||
@ -93,7 +93,7 @@
|
||||
#define H5TEST_DLLVAR extern
|
||||
#endif /* H5TEST_DLL */
|
||||
|
||||
#if defined(hdf5_tools_EXPORTS)
|
||||
#if defined(hdf5_tools_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5TOOLS_DLL __declspec(dllexport)
|
||||
#define H5TOOLS_DLLVAR extern __declspec(dllexport)
|
||||
@ -116,7 +116,7 @@
|
||||
#define H5TOOLS_DLLVAR extern
|
||||
#endif /* H5TOOLS_DLL */
|
||||
|
||||
#if defined(hdf5_cpp_EXPORTS)
|
||||
#if defined(hdf5_cpp_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_DLLCPP __declspec(dllexport)
|
||||
#define H5_DLLCPPVAR extern __declspec(dllexport)
|
||||
@ -139,7 +139,7 @@
|
||||
#define H5_DLLCPPVAR extern
|
||||
#endif /* H5_DLLCPP */
|
||||
|
||||
#if defined(hdf5_hl_EXPORTS)
|
||||
#if defined(hdf5_hl_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_HLDLL __declspec(dllexport)
|
||||
#define H5_HLDLLVAR extern __declspec(dllexport)
|
||||
@ -162,7 +162,7 @@
|
||||
#define H5_HLDLLVAR extern
|
||||
#endif /* H5_HLDLL */
|
||||
|
||||
#if defined(hdf5_hl_cpp_EXPORTS)
|
||||
#if defined(hdf5_hl_cpp_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_HLCPPDLL __declspec(dllexport)
|
||||
#define H5_HLCPPDLLVAR extern __declspec(dllexport)
|
||||
@ -185,7 +185,7 @@
|
||||
#define H5_HLCPPDLLVAR extern
|
||||
#endif /* H5_HLCPPDLL */
|
||||
|
||||
#if defined(hdf5_f90cstub_EXPORTS)
|
||||
#if defined(hdf5_f90cstub_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_FCDLL __declspec(dllexport)
|
||||
#define H5_FCDLLVAR extern __declspec(dllexport)
|
||||
@ -208,7 +208,7 @@
|
||||
#define H5_FCDLLVAR extern
|
||||
#endif /* H5_FCDLL */
|
||||
|
||||
#if defined(hdf5_test_f90cstub_EXPORTS)
|
||||
#if defined(hdf5_test_f90cstub_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define H5_FCTESTDLL __declspec(dllexport)
|
||||
#define H5_FCTESTDLLVAR extern __declspec(dllexport)
|
||||
@ -231,7 +231,7 @@
|
||||
#define H5_FCTESTDLLVAR extern
|
||||
#endif /* H5_FCTESTDLL */
|
||||
|
||||
#if defined(hdf5_hl_f90cstub_EXPORTS)
|
||||
#if defined(hdf5_hl_f90cstub_shared_EXPORTS)
|
||||
#if defined (_MSC_VER) /* MSVC Compiler Case */
|
||||
#define HDF5_HL_F90CSTUBDLL __declspec(dllexport)
|
||||
#define HDF5_HL_F90CSTUBDLLVAR extern __declspec(dllexport)
|
||||
|
@ -410,10 +410,18 @@
|
||||
/* Define if HDF5's high-level library headers should be included in hdf5.h */
|
||||
#undef INCLUDE_HL
|
||||
|
||||
/* Define if your system can convert long double to (unsigned) long long
|
||||
values correctly. */
|
||||
#undef LDOUBLE_TO_LLONG_ACCURATE
|
||||
|
||||
/* Define if your system converts long double to (unsigned) long values with
|
||||
special algorithm. */
|
||||
#undef LDOUBLE_TO_LONG_SPECIAL
|
||||
|
||||
/* Define if your system can convert (unsigned) long long to long double
|
||||
values correctly. */
|
||||
#undef LLONG_TO_LDOUBLE_CORRECT
|
||||
|
||||
/* Define if your system can convert (unsigned) long to long double values
|
||||
with special algorithm. */
|
||||
#undef LONG_TO_LDOUBLE_SPECIAL
|
||||
@ -608,6 +616,9 @@
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Data accuracy is prefered to speed during data conversions */
|
||||
#undef WANT_DATA_ACCURACY
|
||||
|
||||
/* Check exception handling functions during data conversions */
|
||||
#undef WANT_DCONV_EXCEPTION
|
||||
|
||||
|
@ -94,10 +94,10 @@ extern "C" {
|
||||
/* Version numbers */
|
||||
#define H5_VERS_MAJOR 1 /* For major interface/format changes */
|
||||
#define H5_VERS_MINOR 9 /* For minor interface/format changes */
|
||||
#define H5_VERS_RELEASE 226 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_RELEASE 227 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_SUBRELEASE "" /* For pre-releases like snap0 */
|
||||
/* Empty string for real releases. */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.9.226" /* Full version string */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.9.227" /* Full version string */
|
||||
|
||||
#define H5check() H5check_version(H5_VERS_MAJOR,H5_VERS_MINOR, \
|
||||
H5_VERS_RELEASE)
|
||||
|
@ -110,7 +110,10 @@ TESTS =
|
||||
subdir = src
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -26,8 +26,8 @@ set (TEST_LIB_HEADERS
|
||||
${HDF5_TEST_SOURCE_DIR}/h5test.h
|
||||
)
|
||||
|
||||
add_library (${HDF5_TEST_LIB_TARGET} ${LIB_TYPE} ${TEST_LIB_SRCS} ${TEST_LIB_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_TEST_LIB_TARGET} STATIC ${TEST_LIB_SRCS} ${TEST_LIB_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_LIB_TARGET} STATIC " " " ")
|
||||
if (MSVC)
|
||||
target_link_libraries (${HDF5_TEST_LIB_TARGET} "ws2_32.lib")
|
||||
endif (MSVC)
|
||||
@ -35,16 +35,34 @@ if (MINGW)
|
||||
target_link_libraries (${HDF5_TEST_LIB_TARGET} "wsock32.lib")
|
||||
endif (MINGW)
|
||||
target_link_libraries (${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIB_TARGET} ${HDF5_TEST_LIB_NAME} ${LIB_TYPE})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIB_TARGET} ${HDF5_TEST_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_TEST_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/test
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_TEST_LIBSH_TARGET} SHARED ${TEST_LIB_SRCS} ${TEST_LIB_HEADERS})
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_LIBSH_TARGET} SHARED " " " ")
|
||||
if (MSVC)
|
||||
target_link_libraries (${HDF5_TEST_LIBSH_TARGET} "ws2_32.lib")
|
||||
endif (MSVC)
|
||||
if (MINGW)
|
||||
target_link_libraries (${HDF5_TEST_LIBSH_TARGET} "wsock32.lib")
|
||||
endif (MINGW)
|
||||
target_link_libraries (${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TEST_LIBSH_TARGET} ${HDF5_TEST_LIB_NAME} SHARED)
|
||||
set_target_properties (${HDF5_TEST_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/test
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
INTERFACE_COMPILE_DEFINITIONS H5_BUILT_AS_DYNAMIC_LIB=1
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# If plugin library tests can be tested
|
||||
#-----------------------------------------------------------------------------
|
||||
if (BUILD_SHARED_LIBS)
|
||||
# make plugins dir
|
||||
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/testdir1")
|
||||
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/testdir2")
|
||||
@ -67,12 +85,12 @@ if (BUILD_SHARED_LIBS)
|
||||
add_definitions (${HDF_EXTRA_C_FLAGS})
|
||||
INCLUDE_DIRECTORIES (${HDF5_SRC_DIR})
|
||||
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME}
|
||||
${LIB_TYPE}
|
||||
SHARED
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_RELEASE
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_DEBUG
|
||||
)
|
||||
@ -85,7 +103,7 @@ if (BUILD_SHARED_LIBS)
|
||||
TARGET ${HDF5_TEST_PLUGIN_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different
|
||||
ARGS -E copy_if_different
|
||||
"$<TARGET_FILE:${HDF5_TEST_PLUGIN_LIB_TARGET}>"
|
||||
"${CMAKE_BINARY_DIR}/testdir1/$<TARGET_FILE_NAME:${HDF5_TEST_PLUGIN_LIB_TARGET}>"
|
||||
)
|
||||
@ -98,12 +116,12 @@ if (BUILD_SHARED_LIBS)
|
||||
add_definitions (${HDF_EXTRA_C_FLAGS})
|
||||
INCLUDE_DIRECTORIES (${HDF5_SRC_DIR})
|
||||
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} ${LIB_TYPE} " " " ")
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME}
|
||||
${LIB_TYPE}
|
||||
SHARED
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_RELEASE
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_DEBUG
|
||||
)
|
||||
@ -116,12 +134,11 @@ if (BUILD_SHARED_LIBS)
|
||||
TARGET ${HDF5_TEST_PLUGIN_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different
|
||||
ARGS -E copy_if_different
|
||||
"$<TARGET_FILE:${HDF5_TEST_PLUGIN_LIB_TARGET}>"
|
||||
"${CMAKE_BINARY_DIR}/testdir2/$<TARGET_FILE_NAME:${HDF5_TEST_PLUGIN_LIB_TARGET}>"
|
||||
)
|
||||
endforeach (test_lib ${TEST2_PLUGIN_LIBS})
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
set (testhdf5_SRCS
|
||||
${HDF5_TEST_SOURCE_DIR}/testhdf5.c
|
||||
@ -153,17 +170,31 @@ set (testhdf5_SRCS
|
||||
|
||||
#-- Adding test for testhdf5
|
||||
add_executable (testhdf5 ${testhdf5_SRCS})
|
||||
TARGET_NAMING (testhdf5 ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (testhdf5 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (testhdf5 STATIC)
|
||||
TARGET_C_PROPERTIES (testhdf5 STATIC " " " ")
|
||||
target_link_libraries (testhdf5 ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (testhdf5 PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (testhdf5-shared ${testhdf5_SRCS})
|
||||
TARGET_NAMING (testhdf5-shared SHARED)
|
||||
TARGET_C_PROPERTIES (testhdf5-shared SHARED " " " ")
|
||||
target_link_libraries (testhdf5-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (testhdf5-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
MACRO (ADD_H5_EXE file)
|
||||
add_executable (${file} ${HDF5_TEST_SOURCE_DIR}/${file}.c)
|
||||
TARGET_NAMING (${file} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (${file} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (${file} STATIC)
|
||||
TARGET_C_PROPERTIES (${file} STATIC " " " ")
|
||||
target_link_libraries (${file} ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (${file} PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (${file}-shared ${HDF5_TEST_SOURCE_DIR}/${file}.c)
|
||||
TARGET_NAMING (${file}-shared SHARED)
|
||||
TARGET_C_PROPERTIES (${file}-shared SHARED " " " ")
|
||||
target_link_libraries (${file}-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (${file}-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
ENDMACRO (ADD_H5_EXE file)
|
||||
|
||||
set (H5_TESTS
|
||||
@ -236,24 +267,45 @@ endforeach (test ${H5_TESTS})
|
||||
|
||||
#-- Adding test for cache
|
||||
add_executable (cache ${HDF5_TEST_SOURCE_DIR}/cache.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cache ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cache STATIC)
|
||||
TARGET_C_PROPERTIES (cache STATIC " " " ")
|
||||
target_link_libraries (cache ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (cache PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (cache-shared ${HDF5_TEST_SOURCE_DIR}/cache.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache-shared SHARED)
|
||||
TARGET_C_PROPERTIES (cache-shared SHARED " " " ")
|
||||
target_link_libraries (cache-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (cache-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for cache_api
|
||||
add_executable (cache_api ${HDF5_TEST_SOURCE_DIR}/cache_api.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache_api ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cache_api ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cache_api STATIC)
|
||||
TARGET_C_PROPERTIES (cache_api STATIC " " " ")
|
||||
target_link_libraries (cache_api ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (cache_api PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (cache_api-shared ${HDF5_TEST_SOURCE_DIR}/cache_api.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache_api-shared SHARED)
|
||||
TARGET_C_PROPERTIES (cache_api-shared SHARED " " " ")
|
||||
target_link_libraries (cache_api-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (cache_api-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for cache_tagging
|
||||
add_executable (cache_tagging ${HDF5_TEST_SOURCE_DIR}/cache_tagging.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache_tagging ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (cache_tagging ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (cache_tagging STATIC)
|
||||
TARGET_C_PROPERTIES (cache_tagging STATIC " " " ")
|
||||
target_link_libraries (cache_tagging ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (cache_tagging PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (cache_tagging-shared ${HDF5_TEST_SOURCE_DIR}/cache_tagging.c ${HDF5_TEST_SOURCE_DIR}/cache_common.c)
|
||||
TARGET_NAMING (cache_tagging-shared SHARED)
|
||||
TARGET_C_PROPERTIES (cache_tagging-shared SHARED " " " ")
|
||||
target_link_libraries (cache_tagging-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (cache_tagging-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for ttsafe
|
||||
add_executable (ttsafe
|
||||
@ -263,37 +315,71 @@ add_executable (ttsafe
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_cancel.c
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_acreate.c
|
||||
)
|
||||
TARGET_NAMING (ttsafe ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (ttsafe ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (ttsafe STATIC)
|
||||
TARGET_C_PROPERTIES (ttsafe STATIC " " " ")
|
||||
target_link_libraries (ttsafe ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (ttsafe PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (ttsafe-shared
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe.c
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_dcreate.c
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_error.c
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_cancel.c
|
||||
${HDF5_TEST_SOURCE_DIR}/ttsafe_acreate.c
|
||||
)
|
||||
TARGET_NAMING (ttsafe-shared SHARED)
|
||||
TARGET_C_PROPERTIES (ttsafe-shared SHARED " " " ")
|
||||
target_link_libraries (ttsafe-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (ttsafe-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for err_compat
|
||||
if (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
add_executable (err_compat ${HDF5_TEST_SOURCE_DIR}/err_compat.c)
|
||||
TARGET_NAMING (err_compat ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (err_compat ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (err_compat STATIC)
|
||||
TARGET_C_PROPERTIES (err_compat STATIC " " " ")
|
||||
target_link_libraries (err_compat ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (err_compat PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (err_compat-shared ${HDF5_TEST_SOURCE_DIR}/err_compat.c)
|
||||
TARGET_NAMING (err_compat-shared SHARED)
|
||||
TARGET_C_PROPERTIES (err_compat-shared SHARED " " " ")
|
||||
target_link_libraries (err_compat-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (err_compat-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
|
||||
#-- Adding test for error_test
|
||||
add_executable (error_test ${HDF5_TEST_SOURCE_DIR}/error_test.c)
|
||||
TARGET_NAMING (error_test ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (error_test ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (error_test STATIC)
|
||||
TARGET_C_PROPERTIES (error_test STATIC " " " ")
|
||||
target_link_libraries (error_test ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (error_test PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (error_test-shared ${HDF5_TEST_SOURCE_DIR}/error_test.c)
|
||||
TARGET_NAMING (error_test-shared SHARED)
|
||||
TARGET_C_PROPERTIES (error_test-shared SHARED " " " ")
|
||||
target_link_libraries (error_test-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (error_test-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for links_env
|
||||
add_executable (links_env ${HDF5_TEST_SOURCE_DIR}/links_env.c)
|
||||
TARGET_NAMING (links_env ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (links_env ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (links_env STATIC)
|
||||
TARGET_C_PROPERTIES (links_env STATIC " " " ")
|
||||
target_link_libraries (links_env ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
set_target_properties (links_env PROPERTIES FOLDER test)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_executable (links_env-shared ${HDF5_TEST_SOURCE_DIR}/links_env.c)
|
||||
TARGET_NAMING (links_env-shared SHARED)
|
||||
TARGET_C_PROPERTIES (links_env-shared SHARED " " " ")
|
||||
target_link_libraries (links_env-shared ${HDF5_TEST_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_target_properties (links_env-shared PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
#-- Adding test for libinfo
|
||||
set (GREP_RUNNER ${PROJECT_BINARY_DIR}/GrepRunner.cmake)
|
||||
file (WRITE ${GREP_RUNNER}
|
||||
file (WRITE ${GREP_RUNNER}
|
||||
"file (STRINGS \${TEST_PROGRAM} TEST_RESULT REGEX \"SUMMARY OF THE HDF5 CONFIGURATION\")
|
||||
if (\${TEST_RESULT} STREQUAL \"0\")
|
||||
message (FATAL_ERROR \"Failed: The output: \${TEST_RESULT} of \${TEST_PROGRAM} did not contain SUMMARY OF THE HDF5 CONFIGURATION\")
|
||||
@ -312,6 +398,12 @@ if (BUILD_SHARED_LIBS)
|
||||
TARGET_C_PROPERTIES (plugin SHARED " " " ")
|
||||
target_link_libraries (plugin ${HDF5_TEST_PLUGIN_LIB_TARGET})
|
||||
set_target_properties (plugin PROPERTIES FOLDER test)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
add_executable (plugin ${HDF5_TEST_SOURCE_DIR}/plugin.c)
|
||||
TARGET_NAMING (plugin STATIC)
|
||||
TARGET_C_PROPERTIES (plugin STATIC " " " ")
|
||||
target_link_libraries (plugin ${HDF5_TEST_PLUGIN_LIB_TARGET})
|
||||
set_target_properties (plugin PROPERTIES FOLDER test)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
@ -9,6 +9,12 @@
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST")
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST/testfiles")
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files")
|
||||
if (BUILD_SHARED_LIBS)
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST-shared")
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST-shared/testfiles")
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/H5TEST-shared/testfiles/plist_files")
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
if (HDF5_TEST_VFD)
|
||||
set (VFD_LIST
|
||||
sec2
|
||||
@ -23,6 +29,9 @@ if (HDF5_TEST_VFD)
|
||||
endif (DIRECT_VFD)
|
||||
foreach (vfdtest ${VFD_LIST})
|
||||
file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/${vfdtest}")
|
||||
#if (BUILD_SHARED_LIBS)
|
||||
# file (MAKE_DIRECTORY "${PROJECT_BINARY_DIR}/${vfdtest}-shared")
|
||||
#endif (BUILD_SHARED_LIBS)
|
||||
endforeach (vfdtest ${VFD_LIST})
|
||||
endif (HDF5_TEST_VFD)
|
||||
|
||||
@ -35,25 +44,41 @@ set (HDF5_TEST_FILES
|
||||
|
||||
foreach (h5_tfile ${HDF5_TEST_FILES})
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST/${h5_tfile}")
|
||||
#message (STATUS " Copying ${h5_tfile}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TOOLS_SRC_DIR}/testfiles/${h5_tfile} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST-shared/${h5_tfile}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIBSH_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TOOLS_SRC_DIR}/testfiles/${h5_tfile} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (h5_tfile ${HDF5_TEST_FILES})
|
||||
if (HDF5_TEST_VFD)
|
||||
foreach (vfdtest ${VFD_LIST})
|
||||
foreach (h5_tfile ${HDF5_TEST_FILES})
|
||||
set (dest "${PROJECT_BINARY_DIR}/${vfdtest}/${h5_tfile}")
|
||||
#message (STATUS " Copying ${h5_tfile}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TOOLS_SRC_DIR}/testfiles/${h5_tfile} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${PROJECT_BINARY_DIR}/${vfdtest}-shared/${h5_tfile}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIBSH_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TOOLS_SRC_DIR}/testfiles/${h5_tfile} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (h5_tfile ${HDF5_TEST_FILES})
|
||||
endforeach (vfdtest ${VFD_LIST})
|
||||
endif (HDF5_TEST_VFD)
|
||||
@ -71,25 +96,41 @@ set (HDF5_REFERENCE_FILES
|
||||
|
||||
foreach (ref_file ${HDF5_REFERENCE_FILES})
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST/${ref_file}")
|
||||
#message (STATUS " Copying ${h5_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST-shared/${ref_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIBSH_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (ref_file ${HDF5_REFERENCE_FILES})
|
||||
if (HDF5_TEST_VFD)
|
||||
foreach (vfdtest ${VFD_LIST})
|
||||
foreach (ref_file ${HDF5_REFERENCE_FILES})
|
||||
set (dest "${PROJECT_BINARY_DIR}/${vfdtest}/${ref_file}")
|
||||
#message (STATUS " Copying ${h5_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${PROJECT_BINARY_DIR}/${vfdtest}-shared/${ref_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/${ref_file} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (ref_file ${HDF5_REFERENCE_FILES})
|
||||
endforeach (vfdtest ${VFD_LIST})
|
||||
endif (HDF5_TEST_VFD)
|
||||
@ -126,13 +167,21 @@ set (HDF5_REFERENCE_PLIST_FILES
|
||||
|
||||
foreach (plistfile ${HDF5_REFERENCE_PLIST_FILES})
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST/testfiles/plist_files/${plistfile}")
|
||||
#message (STATUS " Copying ${plistfile} to ${dset}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/${plistfile} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${PROJECT_BINARY_DIR}/H5TEST-shared/testfiles/plist_files/${plistfile}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIBSH_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/testfiles/plist_files/${plistfile} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (plistfile ${HDF5_REFERENCE_PLIST_FILES})
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
@ -177,25 +226,41 @@ set (HDF5_REFERENCE_TEST_FILES
|
||||
|
||||
foreach (h5_file ${HDF5_REFERENCE_TEST_FILES})
|
||||
set (dest "${HDF5_TEST_BINARY_DIR}/H5TEST/${h5_file}")
|
||||
#message (STATUS " Copying ${h5_file} to ${dest}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/${h5_file} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${HDF5_TEST_BINARY_DIR}/H5TEST-shared/${h5_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIBSH_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/${h5_file} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (h5_file ${HDF5_REFERENCE_TEST_FILES})
|
||||
if (HDF5_TEST_VFD)
|
||||
foreach (vfdtest ${VFD_LIST})
|
||||
foreach (h5_file ${HDF5_REFERENCE_TEST_FILES})
|
||||
set (dest "${HDF5_TEST_BINARY_DIR}/${vfdtest}/${h5_file}")
|
||||
#message (STATUS " Copying ${h5_file} to ${dest}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/${h5_file} ${dest}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set (dest "${HDF5_TEST_BINARY_DIR}/${vfdtest}-shared/${h5_file}")
|
||||
add_custom_command (
|
||||
TARGET ${HDF5_TEST_LIB_TARGET}
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_TEST_SOURCE_DIR}/${h5_file} ${dest}
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endforeach (h5_file ${HDF5_REFERENCE_TEST_FILES})
|
||||
endforeach (vfdtest ${VFD_LIST})
|
||||
endif (HDF5_TEST_VFD)
|
||||
@ -204,7 +269,7 @@ endif (HDF5_TEST_VFD)
|
||||
add_test (
|
||||
NAME H5TEST-clear-testhdf5-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
coord.h5
|
||||
dtypes10.h5
|
||||
sys_file1
|
||||
@ -258,8 +323,40 @@ else (HDF5_ENABLE_USING_MEMCHECKER)
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-testhdf5-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
coord.h5
|
||||
dtypes10.h5
|
||||
sys_file1
|
||||
tattr.h5
|
||||
tfile1.h5
|
||||
tfile2.h5
|
||||
tfile3.h5
|
||||
tfile4.h5
|
||||
tfile5.h5
|
||||
tfile6.h5
|
||||
tfile7.h5
|
||||
th5o_file
|
||||
th5s1.h5
|
||||
tselect.h5
|
||||
tsohm.h5
|
||||
tsohm_dst.h5
|
||||
tsohm_src.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-testhdf5 COMMAND $<TARGET_FILE:testhdf5-shared>)
|
||||
set_tests_properties (H5TEST-shared-testhdf5 PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-testhdf5-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (HDF5_ENABLE_USING_MEMCHECKER)
|
||||
|
||||
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
### T H E T E S T S M A C R O S ###
|
||||
@ -270,7 +367,7 @@ endif (HDF5_ENABLE_USING_MEMCHECKER)
|
||||
add_test (
|
||||
NAME H5TEST-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
dt_arith1.h5
|
||||
dt_arith2.h5
|
||||
dtransform.h5
|
||||
@ -344,7 +441,7 @@ foreach (test ${H5_TESTS})
|
||||
add_test (NAME H5TEST-${test} COMMAND $<TARGET_FILE:${test}>)
|
||||
endif (${test} STREQUAL "big" AND CYGWIN)
|
||||
set_tests_properties (H5TEST-${test} PROPERTIES
|
||||
DEPENDS H5TEST-clear-objects
|
||||
DEPENDS H5TEST-clear-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
@ -355,6 +452,97 @@ set_tests_properties (H5TEST-fheap PROPERTIES TIMEOUT 1800)
|
||||
set_tests_properties (H5TEST-testmeta PROPERTIES TIMEOUT 1800)
|
||||
set_tests_properties (H5TEST-big PROPERTIES TIMEOUT 1800)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
# Remove any output file left over from previous test run
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
dt_arith1.h5
|
||||
dt_arith2.h5
|
||||
dtransform.h5
|
||||
dtypes3.h5
|
||||
dtypes4.h5
|
||||
dtypes5.h5
|
||||
efc0.h5
|
||||
efc1.h5
|
||||
efc2.h5
|
||||
efc3.h5
|
||||
efc4.h5
|
||||
efc5.h5
|
||||
extlinks16A00000.h5
|
||||
extlinks16A00001.h5
|
||||
extlinks16A00002.h5
|
||||
extlinks16B-b.h5
|
||||
extlinks16B-g.h5
|
||||
extlinks16B-l.h5
|
||||
extlinks16B-r.h5
|
||||
extlinks16B-s.h5
|
||||
extlinks19B00000.h5
|
||||
extlinks19B00001.h5
|
||||
extlinks19B00002.h5
|
||||
extlinks19B00003.h5
|
||||
extlinks19B00004.h5
|
||||
extlinks19B00005.h5
|
||||
extlinks19B00006.h5
|
||||
extlinks19B00007.h5
|
||||
extlinks19B00008.h5
|
||||
extlinks19B00009.h5
|
||||
extlinks19B00010.h5
|
||||
extlinks19B00011.h5
|
||||
extlinks19B00012.h5
|
||||
extlinks19B00013.h5
|
||||
extlinks19B00014.h5
|
||||
extlinks19B00015.h5
|
||||
extlinks19B00016.h5
|
||||
extlinks19B00017.h5
|
||||
extlinks19B00018.h5
|
||||
extlinks19B00019.h5
|
||||
extlinks19B00020.h5
|
||||
extlinks19B00021.h5
|
||||
extlinks19B00022.h5
|
||||
extlinks19B00023.h5
|
||||
extlinks19B00024.h5
|
||||
extlinks19B00025.h5
|
||||
extlinks19B00026.h5
|
||||
extlinks19B00027.h5
|
||||
extlinks19B00028.h5
|
||||
fheap.h5
|
||||
log_vfd_out.log
|
||||
new_multi_file_v16-r.h5
|
||||
new_multi_file_v16-s.h5
|
||||
objcopy_ext.dat
|
||||
testmeta.h5
|
||||
tstint1.h5
|
||||
tstint2.h5
|
||||
unregister_filter_1.h5
|
||||
unregister_filter_2.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
foreach (test ${H5_TESTS})
|
||||
if (${test} STREQUAL "big" AND CYGWIN)
|
||||
add_test (
|
||||
NAME H5TEST-shared-${test}
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "SKIP ${test}-shared"
|
||||
)
|
||||
else (${test} STREQUAL "big" AND CYGWIN)
|
||||
add_test (NAME H5TEST-shared-${test} COMMAND $<TARGET_FILE:${test}-shared>)
|
||||
endif (${test} STREQUAL "big" AND CYGWIN)
|
||||
set_tests_properties (H5TEST-shared-${test} PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
endforeach (test ${H5_TESTS})
|
||||
|
||||
set_tests_properties (H5TEST-shared-flush2 PROPERTIES DEPENDS H5TEST-shared-flush1)
|
||||
set_tests_properties (H5TEST-shared-fheap PROPERTIES TIMEOUT 1800)
|
||||
set_tests_properties (H5TEST-shared-testmeta PROPERTIES TIMEOUT 1800)
|
||||
set_tests_properties (H5TEST-shared-big PROPERTIES TIMEOUT 1800)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
### A D D I T I O N A L T E S T S ###
|
||||
@ -362,33 +550,35 @@ set_tests_properties (H5TEST-big PROPERTIES TIMEOUT 1800)
|
||||
##############################################################################
|
||||
|
||||
#-- Adding test for cache
|
||||
add_test (
|
||||
NAME H5TEST-clear-cache-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
cache_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
add_test (NAME H5TEST-cache COMMAND $<TARGET_FILE:cache>)
|
||||
set_tests_properties (H5TEST-cache PROPERTIES
|
||||
DEPENDS H5TEST-clear-cache-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
if (NOT CYGWIN)
|
||||
add_test (
|
||||
NAME H5TEST-clear-cache-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
cache_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
add_test (NAME H5TEST-cache COMMAND $<TARGET_FILE:cache>)
|
||||
set_tests_properties (H5TEST-cache PROPERTIES
|
||||
DEPENDS H5TEST-clear-cache-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
endif (NOT CYGWIN)
|
||||
|
||||
#-- Adding test for cache_api
|
||||
add_test (
|
||||
NAME H5TEST-clear-cache_api-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
cache_api_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
add_test (NAME H5TEST-cache_api COMMAND $<TARGET_FILE:cache_api>)
|
||||
set_tests_properties (H5TEST-cache_api PROPERTIES
|
||||
DEPENDS H5TEST-clear-cache_api-objects
|
||||
DEPENDS H5TEST-clear-cache_api-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
@ -397,7 +587,7 @@ set_tests_properties (H5TEST-cache_api PROPERTIES
|
||||
add_test (
|
||||
NAME H5TEST-clear-cache_tagging-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
tagging_test.h5
|
||||
tagging_ext_test.h5
|
||||
WORKING_DIRECTORY
|
||||
@ -414,7 +604,7 @@ set_tests_properties (H5TEST-cache_tagging PROPERTIES
|
||||
add_test (
|
||||
NAME H5TEST-clear-ttsafe-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
ttsafe_error.h5
|
||||
ttsafe_dcreate.h5
|
||||
ttsafe_cancel.h5
|
||||
@ -434,7 +624,7 @@ if (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
add_test (
|
||||
NAME H5TEST-clear-err_compat-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
err_compat.txt
|
||||
err_compat.txt.err
|
||||
WORKING_DIRECTORY
|
||||
@ -461,7 +651,7 @@ endif (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
add_test (
|
||||
NAME H5TEST-clear-error_test-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
-E remove
|
||||
error_test.txt
|
||||
error_test.txt.err
|
||||
WORKING_DIRECTORY
|
||||
@ -477,7 +667,7 @@ add_test (NAME H5TEST-error_test COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
)
|
||||
set_tests_properties (H5TEST-error_test PROPERTIES
|
||||
set_tests_properties (H5TEST-error_test PROPERTIES
|
||||
DEPENDS H5TEST-clear-error_test-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST;HDF5_PLUGIN_PRELOAD=::"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
@ -489,7 +679,7 @@ add_test (
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
links_env.txt
|
||||
links_env.txt.err
|
||||
links_env.txt.err
|
||||
extlinks_env0.h5
|
||||
extlinks_env1.h5
|
||||
tmp/extlinks_env1.h5
|
||||
@ -521,29 +711,184 @@ add_test (
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST
|
||||
)
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
#-- Adding test for cache
|
||||
if (NOT CYGWIN)
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-cache-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
cache_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-cache COMMAND $<TARGET_FILE:cache-shared>)
|
||||
set_tests_properties (H5TEST-shared-cache PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-cache-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
endif (NOT CYGWIN)
|
||||
|
||||
#-- Adding test for cache_api
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-cache_api-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
cache_api_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-cache_api COMMAND $<TARGET_FILE:cache_api-shared>)
|
||||
set_tests_properties (H5TEST-shared-cache_api PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-cache_api-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
#-- Adding test for cache_tagging
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-cache_tagging-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
tagging_test.h5
|
||||
tagging_ext_test.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-cache_tagging COMMAND $<TARGET_FILE:cache_tagging-shared>)
|
||||
set_tests_properties (H5TEST-shared-cache_tagging PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-cache_tagging-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
#-- Adding test for ttsafe
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-ttsafe-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
ttsafe_error.h5
|
||||
ttsafe_dcreate.h5
|
||||
ttsafe_cancel.h5
|
||||
ttsafe_acreate.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-ttsafe COMMAND $<TARGET_FILE:ttsafe-shared>)
|
||||
set_tests_properties (H5TEST-shared-ttsafe PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-ttsafe-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
#-- Adding test for err_compat
|
||||
if (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-err_compat-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
err_compat.txt
|
||||
err_compat.txt.err
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-err_compat COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:err_compat-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_EXPECT=0"
|
||||
-D "TEST_MASK_ERROR=true"
|
||||
-D "TEST_OUTPUT=err_compat.txt"
|
||||
-D "TEST_REFERENCE=err_compat_1"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST-shared"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
)
|
||||
set_tests_properties (H5TEST-shared-err_compat PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-err_compat-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
endif (HDF5_ENABLE_DEPRECATED_SYMBOLS)
|
||||
|
||||
#-- Adding test for error_test
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-error_test-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
error_test.txt
|
||||
error_test.txt.err
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-error_test COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:error_test-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_EXPECT=0"
|
||||
-D "TEST_MASK_ERROR=true"
|
||||
-D "TEST_OUTPUT=error_test.txt"
|
||||
-D "TEST_REFERENCE=error_test_1"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST-shared"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
)
|
||||
set_tests_properties (H5TEST-shared-error_test PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-error_test-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared;HDF5_PLUGIN_PRELOAD=::"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
#-- Adding test for links_env
|
||||
add_test (
|
||||
NAME H5TEST-shared-clear-links_env-objects
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-E remove
|
||||
links_env.txt
|
||||
links_env.txt.err
|
||||
extlinks_env0.h5
|
||||
extlinks_env1.h5
|
||||
tmp/extlinks_env1.h5
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
add_test (NAME H5TEST-shared-links_env COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:links_env-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_ENV_VAR:STRING=HDF5_EXT_PREFIX"
|
||||
-D "TEST_ENV_VALUE:STRING=.:tmp"
|
||||
-D "TEST_EXPECT=0"
|
||||
-D "TEST_OUTPUT=links_env.txt"
|
||||
-D "TEST_REFERENCE=links_env.out"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/H5TEST-shared"
|
||||
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
|
||||
)
|
||||
set_tests_properties (H5TEST-shared-links_env PROPERTIES
|
||||
DEPENDS H5TEST-shared-clear-links_env-objects
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/H5TEST-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
|
||||
#-- Adding test for libinfo
|
||||
add_test (
|
||||
NAME H5TEST-shared-testlibinfo
|
||||
COMMAND ${CMAKE_COMMAND} -D "TEST_PROGRAM=$<TARGET_FILE:${HDF5_LIBSH_TARGET}>" -P "${GREP_RUNNER}"
|
||||
WORKING_DIRECTORY
|
||||
${HDF5_TEST_BINARY_DIR}/H5TEST-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
|
||||
##############################################################################
|
||||
### P L U G I N T E S T S
|
||||
##############################################################################
|
||||
if (BUILD_SHARED_LIBS)
|
||||
if (WIN32)
|
||||
set (CMAKE_SEP "\;")
|
||||
else (WIN32)
|
||||
set (CMAKE_SEP ":")
|
||||
endif (WIN32)
|
||||
|
||||
if (WIN32)
|
||||
set (CMAKE_SEP "\;")
|
||||
else (WIN32)
|
||||
set (CMAKE_SEP ":")
|
||||
endif (WIN32)
|
||||
|
||||
add_test (NAME H5PLUGIN-plugin COMMAND $<TARGET_FILE:plugin>)
|
||||
set_tests_properties (H5PLUGIN-plugin PROPERTIES
|
||||
ENVIRONMENT "HDF5_PLUGIN_PATH=${CMAKE_BINARY_DIR}/testdir1${CMAKE_SEP}${CMAKE_BINARY_DIR}/testdir2;srcdir=${HDF5_TEST_BINARY_DIR}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}
|
||||
)
|
||||
else (BUILD_SHARED_LIBS)
|
||||
message (STATUS " **** Plugins libraries must be built as shared libraries **** ")
|
||||
add_test (
|
||||
NAME H5PLUGIN-SKIPPED
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "SKIP H5PLUGIN TESTING"
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
add_test (NAME H5PLUGIN-plugin COMMAND $<TARGET_FILE:plugin>)
|
||||
set_tests_properties (H5PLUGIN-plugin PROPERTIES
|
||||
ENVIRONMENT "HDF5_PLUGIN_PATH=${CMAKE_BINARY_DIR}/testdir1${CMAKE_SEP}${CMAKE_BINARY_DIR}/testdir2;srcdir=${HDF5_TEST_BINARY_DIR}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
@ -560,7 +905,7 @@ if (HDF5_TEST_VFD)
|
||||
ohdr
|
||||
stab
|
||||
gheap
|
||||
cache
|
||||
# cache
|
||||
cache_api
|
||||
cache_tagging
|
||||
pool
|
||||
@ -609,7 +954,7 @@ if (HDF5_TEST_VFD)
|
||||
unregister
|
||||
)
|
||||
if (NOT CYGWIN)
|
||||
set (H5_VFD_TESTS ${H5_VFD_TESTS} big)
|
||||
set (H5_VFD_TESTS ${H5_VFD_TESTS} big cache)
|
||||
endif (NOT CYGWIN)
|
||||
|
||||
MACRO (CHECK_VFD_TEST vfdtest vfdname resultcode)
|
||||
@ -617,13 +962,13 @@ if (HDF5_TEST_VFD)
|
||||
if (${vfdname} STREQUAL "multi" OR ${vfdname} STREQUAL "split")
|
||||
if (NOT BUILD_SHARED_LIBS AND NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdtest}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
@ -631,21 +976,44 @@ if (HDF5_TEST_VFD)
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${test}-shared
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}-shared"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}-shared"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${vfdtest}-shared PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
else (NOT BUILD_SHARED_LIBS AND NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "SKIP VFD-${vfdname}-${vfdtest}"
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${test}-shared
|
||||
COMMAND ${CMAKE_COMMAND} -E echo "SKIP VFD-${vfdname}-${vfdtest}-shared"
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif(NOT BUILD_SHARED_LIBS AND NOT CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
else (${vfdname} STREQUAL "multi" OR ${vfdname} STREQUAL "split")
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdtest}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
@ -653,16 +1021,33 @@ if (HDF5_TEST_VFD)
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${test}-shared
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}-shared"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}-shared"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${vfdtest}-shared PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (${vfdname} STREQUAL "multi" OR ${vfdname} STREQUAL "split")
|
||||
else (${vfdtest} STREQUAL "flush1" OR ${vfdtest} STREQUAL "flush2")
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
NAME VFD-${vfdname}-${vfdtest}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdtest}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
@ -670,6 +1055,23 @@ if (HDF5_TEST_VFD)
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${vfdtest}-shared
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${vfdtest}-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${vfdtest}-shared"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}-shared"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${vfdtest}-shared PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (${vfdtest} STREQUAL "flush1" OR ${vfdtest} STREQUAL "flush2")
|
||||
ENDMACRO (CHECK_VFD_TEST vfdtest vfdname resultcode)
|
||||
|
||||
@ -679,45 +1081,85 @@ if (HDF5_TEST_VFD)
|
||||
CHECK_VFD_TEST (${test} ${vfdname} ${resultcode})
|
||||
else (WIN32)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${test}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${test}>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${test}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
NAME VFD-${vfdname}-${test}
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${test}>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${test}"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${test} PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-${test}-shared
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:${test}-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-${test}-shared"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}-shared"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-${test}-shared PROPERTIES
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (WIN32)
|
||||
endforeach (test ${H5_VFD_TESTS})
|
||||
set_tests_properties (VFD-${vfdname}-flush2 PROPERTIES DEPENDS VFD-${vfdname}-flush1)
|
||||
set_tests_properties (VFD-${vfdname}-flush1 PROPERTIES TIMEOUT 10)
|
||||
set_tests_properties (VFD-${vfdname}-flush2 PROPERTIES TIMEOUT 10)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_tests_properties (VFD-${vfdname}-flush2-shared PROPERTIES DEPENDS VFD-${vfdname}-flush1-shared)
|
||||
set_tests_properties (VFD-${vfdname}-flush1-shared PROPERTIES TIMEOUT 10)
|
||||
set_tests_properties (VFD-${vfdname}-flush2-shared PROPERTIES TIMEOUT 10)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
if (HDF5_TEST_FHEAP_VFD)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-fheap
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:fheap>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-fheap"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
NAME VFD-${vfdname}-fheap
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:fheap>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-fheap"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-fheap PROPERTIES
|
||||
TIMEOUT 1800
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}
|
||||
)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_test (
|
||||
NAME VFD-${vfdname}-fheap-shared
|
||||
COMMAND "${CMAKE_COMMAND}"
|
||||
-D "TEST_PROGRAM=$<TARGET_FILE:fheap-shared>"
|
||||
-D "TEST_ARGS:STRING="
|
||||
-D "TEST_VFD:STRING=${vfdname}"
|
||||
-D "TEST_EXPECT=${resultcode}"
|
||||
-D "TEST_OUTPUT=${vfdname}-fheap-shared"
|
||||
-D "TEST_FOLDER=${PROJECT_BINARY_DIR}/${vfdname}-shared"
|
||||
-P "${HDF_RESOURCES_DIR}/vfdTest.cmake"
|
||||
)
|
||||
set_tests_properties (VFD-${vfdname}-fheap-shared PROPERTIES
|
||||
TIMEOUT 1800
|
||||
ENVIRONMENT "srcdir=${HDF5_TEST_BINARY_DIR}/${vfdname}-shared"
|
||||
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/${vfdname}-shared
|
||||
)
|
||||
endif (BUILD_SHARED_LIBS)
|
||||
endif (HDF5_TEST_FHEAP_VFD)
|
||||
ENDMACRO (ADD_VFD_TEST)
|
||||
|
||||
|
||||
# Run test with different Virtual File Driver
|
||||
foreach (vfd ${VFD_LIST})
|
||||
ADD_VFD_TEST (${vfd} 0)
|
||||
@ -731,7 +1173,7 @@ endif (HDF5_TEST_VFD)
|
||||
##############################################################################
|
||||
##############################################################################
|
||||
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
MACRO (ADD_H5_GENERATOR genfile)
|
||||
add_executable (${genfile} ${HDF5_TEST_SOURCE_DIR}/${genfile}.c)
|
||||
TARGET_NAMING (${genfile} STATIC)
|
||||
@ -767,4 +1209,4 @@ if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
ADD_H5_GENERATOR (${gen})
|
||||
endforeach (gen ${H5_GENERATORS})
|
||||
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
@ -116,7 +116,10 @@ TESTS = $(am__EXEEXT_1) $(TEST_SCRIPT)
|
||||
subdir = test
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -5032,8 +5032,32 @@ run_int_fp_conv(const char *name)
|
||||
#endif
|
||||
#endif /* H5_SIZEOF_LONG!=H5_SIZEOF_INT */
|
||||
#if H5_SIZEOF_LONG_LONG!=H5_SIZEOF_LONG
|
||||
#if H5_LLONG_TO_LDOUBLE_CORRECT
|
||||
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_LLONG, H5T_NATIVE_LDOUBLE);
|
||||
#else /* H5_LLONG_TO_LDOUBLE_CORRECT */
|
||||
{
|
||||
char str[256]; /*hello string */
|
||||
|
||||
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions",
|
||||
name, "long long", "long double");
|
||||
printf("%-70s", str);
|
||||
SKIPPED();
|
||||
HDputs(" Test skipped due to compiler error in handling conversion.");
|
||||
}
|
||||
#endif /* H5_LLONG_TO_LDOUBLE_CORRECT */
|
||||
#if H5_LLONG_TO_LDOUBLE_CORRECT
|
||||
nerrors += test_conv_int_fp(name, TEST_NORMAL, H5T_NATIVE_ULLONG, H5T_NATIVE_LDOUBLE);
|
||||
#else /* H5_LLONG_TO_LDOUBLE_CORRECT */
|
||||
{
|
||||
char str[256]; /*hello string */
|
||||
|
||||
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions",
|
||||
name, "unsigned long long", "long double");
|
||||
printf("%-70s", str);
|
||||
SKIPPED();
|
||||
HDputs(" Test skipped due to compiler not handling conversion.");
|
||||
}
|
||||
#endif /* H5_LLONG_TO_LDOUBLE_CORRECT */
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -5134,8 +5158,40 @@ run_fp_int_conv(const char *name)
|
||||
#endif /*H5_SIZEOF_LONG!=H5_SIZEOF_INT && H5_SIZEOF_LONG_DOUBLE!=0 */
|
||||
|
||||
#if H5_SIZEOF_LONG_LONG!=H5_SIZEOF_LONG && H5_SIZEOF_LONG_DOUBLE!=0
|
||||
#ifdef H5_LDOUBLE_TO_LLONG_ACCURATE
|
||||
nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_LLONG);
|
||||
#else /*H5_LDOUBLE_TO_LLONG_ACCURATE*/
|
||||
{
|
||||
char str[256]; /*string */
|
||||
|
||||
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions",
|
||||
name, "long double", "long long");
|
||||
printf("%-70s", str);
|
||||
SKIPPED();
|
||||
#if H5_SIZEOF_LONG_DOUBLE!=0
|
||||
HDputs(" Test skipped due to hardware conversion error.");
|
||||
#else
|
||||
HDputs(" Test skipped due to disabled long double.");
|
||||
#endif
|
||||
}
|
||||
#endif /*H5_LDOUBLE_TO_LLONG_ACCURATE*/
|
||||
#if defined(H5_LDOUBLE_TO_LLONG_ACCURATE)
|
||||
nerrors += test_conv_int_fp(name, test_values, H5T_NATIVE_LDOUBLE, H5T_NATIVE_ULLONG);
|
||||
#else /*H5_LDOUBLE_TO_LLONG_ACCURATE*/
|
||||
{
|
||||
char str[256]; /*string */
|
||||
|
||||
HDsnprintf(str, sizeof(str), "Testing %s %s -> %s conversions",
|
||||
name, "long double", "unsigned long long");
|
||||
printf("%-70s", str);
|
||||
SKIPPED();
|
||||
#if H5_SIZEOF_LONG_DOUBLE!=0
|
||||
HDputs(" Test skipped due to hardware conversion error.");
|
||||
#else
|
||||
HDputs(" Test skipped due to disabled long double.");
|
||||
#endif
|
||||
}
|
||||
#endif /*H5_LDOUBLE_TO_LLONG_ACCURATE*/
|
||||
#endif
|
||||
#endif
|
||||
#ifndef H5_VMS
|
||||
|
70
test/mf.c
70
test/mf.c
@ -608,12 +608,12 @@ test_mf_eoa_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
char filename[FILENAME_LEN]; /* Filename to use */
|
||||
H5F_t *f = NULL; /* Internal file object pointer */
|
||||
h5_stat_size_t file_size, new_file_size; /* File size */
|
||||
H5FD_mem_t type;
|
||||
H5FD_mem_t type;
|
||||
haddr_t addr;
|
||||
htri_t extended;
|
||||
haddr_t ma_addr=HADDR_UNDEF, new_ma_addr=HADDR_UNDEF;
|
||||
hsize_t ma_size=0, new_ma_size=0;
|
||||
hbool_t contig_addr_vfd; /* Whether VFD used has a contigous address space */
|
||||
htri_t was_extended;
|
||||
haddr_t ma_addr=HADDR_UNDEF, new_ma_addr=HADDR_UNDEF;
|
||||
hsize_t ma_size=0, new_ma_size=0;
|
||||
hbool_t contig_addr_vfd; /* Whether VFD used has a contigous address space */
|
||||
|
||||
TESTING("H5MF_try_extend() of file allocation: test 1");
|
||||
|
||||
@ -685,9 +685,9 @@ test_mf_eoa_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
FAIL_STACK_ERROR
|
||||
|
||||
/* should succeed */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)TEST_BLOCK_SIZE50);
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)TEST_BLOCK_SIZE50);
|
||||
|
||||
if(extended <= 0)
|
||||
if(was_extended <= 0)
|
||||
TEST_ERROR
|
||||
|
||||
/* nothing should be changed in meta_aggr */
|
||||
@ -744,10 +744,10 @@ test_mf_eoa_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
if(new_ma_addr != ma_addr)
|
||||
TEST_ERROR
|
||||
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)(TEST_BLOCK_SIZE30-10), (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)(TEST_BLOCK_SIZE30-10), (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
|
||||
/* should not succeed */
|
||||
if(extended > 0)
|
||||
if(was_extended > 0)
|
||||
TEST_ERROR
|
||||
|
||||
/* nothing should be changed in meta_aggr */
|
||||
@ -1454,7 +1454,7 @@ test_mf_fs_extend(hid_t fapl)
|
||||
frspace_state_t state; /* State of free space*/
|
||||
H5MF_sect_ud_t udata;
|
||||
H5FS_section_info_t *node;
|
||||
htri_t extended;
|
||||
htri_t was_extended;
|
||||
|
||||
TESTING("H5MF_try_extend() of free-space manager:test 1");
|
||||
|
||||
@ -1548,10 +1548,10 @@ test_mf_fs_extend(hid_t fapl)
|
||||
TEST_ERROR
|
||||
|
||||
/* Try to extend the allocated block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)TEST_BLOCK_SIZE50);
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)TEST_BLOCK_SIZE50);
|
||||
|
||||
/* should succeed */
|
||||
if(extended <= 0)
|
||||
if(was_extended <= 0)
|
||||
TEST_ERROR
|
||||
|
||||
/* Section B is removed from free-space manager */
|
||||
@ -1666,10 +1666,10 @@ test_mf_fs_extend(hid_t fapl)
|
||||
TEST_ERROR
|
||||
|
||||
/* Try to extend the allocated block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)(TEST_BLOCK_SIZE50+10));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)(TEST_BLOCK_SIZE50+10));
|
||||
|
||||
/* Should not be able to extend the allocated block */
|
||||
if(extended)
|
||||
if(was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
/* free-space info should remain the same */
|
||||
@ -1779,10 +1779,10 @@ test_mf_fs_extend(hid_t fapl)
|
||||
TEST_ERROR
|
||||
|
||||
/* Try to extend the allocated block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)(TEST_BLOCK_SIZE40));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)TEST_BLOCK_SIZE30, (hsize_t)(TEST_BLOCK_SIZE40));
|
||||
|
||||
/* Should succeed in extending the allocated block */
|
||||
if(extended <=0)
|
||||
if(was_extended <=0)
|
||||
TEST_ERROR
|
||||
|
||||
/* Should have 1 section of size=10 left in free-space manager */
|
||||
@ -1892,10 +1892,10 @@ test_mf_fs_extend(hid_t fapl)
|
||||
TEST_ERROR
|
||||
|
||||
/* Try to extend the allocated block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)(TEST_BLOCK_SIZE30-10), (hsize_t)TEST_BLOCK_SIZE50);
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)TEST_BLOCK_ADDR70, (hsize_t)(TEST_BLOCK_SIZE30-10), (hsize_t)TEST_BLOCK_SIZE50);
|
||||
|
||||
/* Should not succeed in extending the allocated block */
|
||||
if(extended)
|
||||
if(was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
/* Free-space info should be the same */
|
||||
@ -3241,7 +3241,7 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
haddr_t new_addr, addr, saddr;
|
||||
haddr_t ma_addr=HADDR_UNDEF, new_ma_addr=HADDR_UNDEF, sdata_addr=HADDR_UNDEF;
|
||||
hsize_t ma_size=0, new_ma_size=0, sdata_size=0;
|
||||
htri_t extended;
|
||||
htri_t was_extended;
|
||||
hbool_t contig_addr_vfd; /* Whether VFD used has a contigous address space */
|
||||
|
||||
TESTING("H5MF_try_extend() of meta/sdata aggregator: test 1");
|
||||
@ -3286,10 +3286,10 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
new_addr = addr - 10;
|
||||
|
||||
/* Try to extend the block by an amount < (% * aggr->alloc_size) */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
|
||||
/* should succeed */
|
||||
if(!extended)
|
||||
if(!was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
H5MF_aggr_query(f, &(f->shared->meta_aggr), &new_ma_addr, &new_ma_size);
|
||||
@ -3302,10 +3302,10 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
H5MF_xfree(f, type, H5P_DATASET_XFER_DEFAULT, addr, (hsize_t)TEST_BLOCK_SIZE50);
|
||||
|
||||
/* Try to extend the block by an amount > (% * aggr->alloc_size) but amount < aggr->alloc_size */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE700));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE700));
|
||||
|
||||
/* should succeed */
|
||||
if(!extended)
|
||||
if(!was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
H5MF_aggr_query(f, &(f->shared->meta_aggr), &new_ma_addr, &new_ma_size);
|
||||
@ -3318,10 +3318,10 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
H5MF_xfree(f, type, H5P_DATASET_XFER_DEFAULT, addr, (hsize_t)TEST_BLOCK_SIZE700);
|
||||
|
||||
/* Try to extend the block by an amount > (% * aggr->alloc_size) but amount > aggr->alloc_size */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE2058));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE2058));
|
||||
|
||||
/* should succeed */
|
||||
if(!extended)
|
||||
if(!was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
H5MF_aggr_query(f, &(f->shared->meta_aggr), &new_ma_addr, &new_ma_size);
|
||||
@ -3384,9 +3384,9 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
new_addr = addr - 10;
|
||||
|
||||
/* should be able to fulfill request from the aggreqator itself */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
|
||||
if(!extended)
|
||||
if(!was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
H5MF_aggr_query(f, &(f->shared->meta_aggr), &new_ma_addr, &new_ma_size);
|
||||
@ -3454,9 +3454,9 @@ test_mf_aggr_extend(const char *env_h5_drvr, hid_t fapl)
|
||||
new_addr = addr - 10;
|
||||
|
||||
/* unable to fulfill request from the aggreqator itself */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)new_addr, (hsize_t)10, (hsize_t)(TEST_BLOCK_SIZE50));
|
||||
|
||||
if(extended)
|
||||
if(was_extended)
|
||||
TEST_ERROR
|
||||
|
||||
H5MF_aggr_query(f, &(f->shared->meta_aggr), &new_ma_addr, &new_ma_size);
|
||||
@ -3772,7 +3772,7 @@ test_mf_align_eoa(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
|
||||
haddr_t addr1, addr2;
|
||||
haddr_t ma_addr=HADDR_UNDEF;
|
||||
hsize_t ma_size=0;
|
||||
htri_t extended;
|
||||
htri_t was_extended;
|
||||
frspace_state_t state;
|
||||
hsize_t alignment=0, mis_align=0, tmp=0, accum=0;
|
||||
hbool_t have_alloc_vfd; /* Whether VFD used has an 'alloc' callback */
|
||||
@ -3978,9 +3978,9 @@ test_mf_align_eoa(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
|
||||
FAIL_STACK_ERROR
|
||||
|
||||
/* try to extend the block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr1, (hsize_t)TEST_BLOCK_SIZE50, (hsize_t)TEST_BLOCK_SIZE30);
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr1, (hsize_t)TEST_BLOCK_SIZE50, (hsize_t)TEST_BLOCK_SIZE30);
|
||||
|
||||
if (extended <=0) TEST_ERROR
|
||||
if (was_extended <=0) TEST_ERROR
|
||||
|
||||
if(H5Fclose(file) < 0)
|
||||
FAIL_STACK_ERROR
|
||||
@ -4052,7 +4052,7 @@ test_mf_align_fs(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
|
||||
haddr_t addr;
|
||||
frspace_state_t state;
|
||||
H5MF_sect_ud_t udata;
|
||||
htri_t extended;
|
||||
htri_t was_extended;
|
||||
hsize_t alignment=0, tmp=0, mis_align=0;
|
||||
hbool_t have_alloc_vfd; /* Whether VFD used has an 'alloc' callback */
|
||||
|
||||
@ -4197,9 +4197,9 @@ test_mf_align_fs(const char *env_h5_drvr, hid_t fapl, hid_t new_fapl)
|
||||
TEST_ERROR
|
||||
|
||||
/* try to extend the block */
|
||||
extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)TEST_BLOCK_SIZE600, (hsize_t)TEST_BLOCK_SIZE200);
|
||||
was_extended = H5MF_try_extend(f, H5P_DATASET_XFER_DEFAULT, type, (haddr_t)addr, (hsize_t)TEST_BLOCK_SIZE600, (hsize_t)TEST_BLOCK_SIZE200);
|
||||
|
||||
if (extended <=0) TEST_ERROR
|
||||
if (was_extended <=0) TEST_ERROR
|
||||
|
||||
/* space should be decreased by 200, # of sections remain the same */
|
||||
state.tot_space -= TEST_BLOCK_SIZE200;
|
||||
|
@ -515,7 +515,7 @@ test_reference_region(void)
|
||||
hsize_t high[SPACE2_RANK]; /* Selection bounds */
|
||||
hdset_reg_ref_t *wbuf, /* buffer to write to disk */
|
||||
*rbuf; /* buffer read from disk */
|
||||
hdset_reg_ref_t nvrbuf[3]={{0},{101},{1000000000}}; /* buffer with non-valid refs */
|
||||
hdset_reg_ref_t nvrbuf[3]={{0},{101},{255}}; /* buffer with non-valid refs */
|
||||
uint8_t *dwbuf, /* Buffer for writing numeric data to disk */
|
||||
*drbuf; /* Buffer for reading numeric data from disk */
|
||||
uint8_t *tu8; /* Temporary pointer to uint8 data */
|
||||
@ -742,7 +742,7 @@ test_reference_region(void)
|
||||
VERIFY(ret, 36, "H5Sget_select_npoints");
|
||||
ret = (int)H5Sget_select_hyper_nblocks(sid2);
|
||||
VERIFY(ret, 1, "H5Sget_select_hyper_nblocks");
|
||||
coords = HDmalloc(ret * SPACE2_RANK * sizeof(hsize_t) * 2); /* allocate space for the hyperslab blocks */
|
||||
coords = (hsize_t *)HDmalloc(ret * SPACE2_RANK * sizeof(hsize_t) * 2); /* allocate space for the hyperslab blocks */
|
||||
ret = H5Sget_select_hyper_blocklist(sid2, (hsize_t)0, (hsize_t)ret, coords);
|
||||
CHECK(ret, FAIL, "H5Sget_select_hyper_blocklist");
|
||||
VERIFY(coords[0], 2, "Hyperslab Coordinates");
|
||||
@ -770,7 +770,7 @@ test_reference_region(void)
|
||||
VERIFY(ret, 10, "H5Sget_select_npoints");
|
||||
ret = (int)H5Sget_select_elem_npoints(sid2);
|
||||
VERIFY(ret, 10, "H5Sget_select_elem_npoints");
|
||||
coords = HDmalloc(ret * SPACE2_RANK * sizeof(hsize_t)); /* allocate space for the element points */
|
||||
coords = (hsize_t *)HDmalloc(ret * SPACE2_RANK * sizeof(hsize_t)); /* allocate space for the element points */
|
||||
ret = H5Sget_select_elem_pointlist(sid2, (hsize_t)0, (hsize_t)ret, coords);
|
||||
CHECK(ret, FAIL, "H5Sget_select_elem_pointlist");
|
||||
VERIFY(coords[0], coord1[0][0], "Element Coordinates");
|
||||
|
@ -28,15 +28,15 @@ set (testphdf5_SRCS
|
||||
|
||||
#-- Adding test for testhdf5
|
||||
add_executable (testphdf5 ${testphdf5_SRCS})
|
||||
TARGET_NAMING (testphdf5 ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (testphdf5 ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (testphdf5 STATIC)
|
||||
TARGET_C_PROPERTIES (testphdf5 STATIC " " " ")
|
||||
target_link_libraries (testphdf5 ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET} ${LINK_LIBS})
|
||||
set_target_properties (testphdf5 PROPERTIES FOLDER test/par)
|
||||
|
||||
MACRO (ADD_H5P_EXE file)
|
||||
add_executable (${file} ${HDF5_TEST_PAR_SOURCE_DIR}/${file}.c)
|
||||
TARGET_NAMING (${file} ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (${file} ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (${file} STATIC)
|
||||
TARGET_C_PROPERTIES (${file} STATIC " " " ")
|
||||
target_link_libraries (${file} ${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET} ${LINK_LIBS})
|
||||
set_target_properties (${file} PROPERTIES FOLDER test/par)
|
||||
ENDMACRO (ADD_H5P_EXE file)
|
||||
|
@ -104,7 +104,10 @@ TESTS =
|
||||
subdir = testpar
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -241,6 +241,9 @@ file_image_daisy_chain_test(void)
|
||||
vector_ok = FALSE;
|
||||
VRFY((vector_ok), "verified received vector.");
|
||||
|
||||
HDfree(vector_ptr);
|
||||
vector_ptr = NULL;
|
||||
|
||||
/* 7) closes the core file and exit. */
|
||||
|
||||
err = H5Sclose(space_id);
|
||||
|
@ -102,7 +102,10 @@ TESTS =
|
||||
subdir = tools
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -10,15 +10,15 @@ INCLUDE_DIRECTORIES (${HDF5_TOOLS_SRC_DIR}/lib)
|
||||
# Add the h5copy and test executables
|
||||
# --------------------------------------------------------------------
|
||||
add_executable (h5copy ${HDF5_TOOLS_H5COPY_SOURCE_DIR}/h5copy.c)
|
||||
TARGET_NAMING (h5copy ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (h5copy ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (h5copy STATIC)
|
||||
TARGET_C_PROPERTIES (h5copy STATIC " " " ")
|
||||
target_link_libraries (h5copy ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (h5copy PROPERTIES FOLDER tools)
|
||||
|
||||
set (H5_DEP_EXECUTABLES h5copy)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
add_executable (h5copygentest ${HDF5_TOOLS_H5COPY_SOURCE_DIR}/h5copygentest.c)
|
||||
TARGET_NAMING (h5copygentest STATIC)
|
||||
TARGET_C_PROPERTIES (h5copygentest STATIC " " " ")
|
||||
@ -26,7 +26,7 @@ if (BUILD_TESTING)
|
||||
set_target_properties (h5copygentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
#add_test (NAME h5copygentest COMMAND $<TARGET_FILE:h5copygentest>)
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
endif (BUILD_TESTING)
|
||||
@ -42,7 +42,7 @@ endif (BUILD_TESTING)
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
#INSTALL_PROGRAM_PDB (h5copy ${HDF5_INSTALL_BIN_DIR} toolsapplications)
|
||||
|
||||
|
||||
install (
|
||||
TARGETS
|
||||
h5copy
|
||||
|
@ -106,7 +106,10 @@ TESTS = $(am__EXEEXT_1) $(TEST_SCRIPT)
|
||||
subdir = tools/h5copy
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -13,8 +13,8 @@ add_executable (h5diff
|
||||
${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diff_common.c
|
||||
${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diff_main.c
|
||||
)
|
||||
TARGET_NAMING (h5diff ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (h5diff ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (h5diff STATIC)
|
||||
TARGET_C_PROPERTIES (h5diff STATIC " " " ")
|
||||
target_link_libraries (h5diff ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (h5diff PROPERTIES FOLDER tools)
|
||||
|
||||
@ -25,8 +25,8 @@ if (H5_HAVE_PARALLEL)
|
||||
${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diff_common.c
|
||||
${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/ph5diff_main.c
|
||||
)
|
||||
TARGET_NAMING (ph5diff ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (ph5diff ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (ph5diff STATIC)
|
||||
TARGET_C_PROPERTIES (ph5diff STATIC " " " ")
|
||||
target_link_libraries (ph5diff ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (ph5diff PROPERTIES FOLDER tools)
|
||||
endif (H5_HAVE_PARALLEL)
|
||||
@ -35,18 +35,18 @@ if (BUILD_TESTING)
|
||||
# --------------------------------------------------------------------
|
||||
# Add the h5diff and test executables
|
||||
# --------------------------------------------------------------------
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
add_executable (h5diffgentest ${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diffgentest.c)
|
||||
TARGET_NAMING (h5diffgentest STATIC)
|
||||
TARGET_C_PROPERTIES (h5diffgentest STATIC " " " ")
|
||||
target_link_libraries (h5diffgentest ${HDF5_LIB_TARGET})
|
||||
set_target_properties (h5diffgentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
|
||||
#add_test (NAME h5diffgentest COMMAND $<TARGET_FILE:h5diffgentest>)
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
||||
|
||||
endif (BUILD_TESTING)
|
||||
|
||||
##############################################################################
|
||||
|
@ -106,7 +106,10 @@ TESTS = $(am__EXEEXT_2) $(TEST_SCRIPT)
|
||||
subdir = tools/h5diff
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
@ -14,8 +14,8 @@ add_executable (h5dump
|
||||
${HDF5_TOOLS_H5DUMP_SOURCE_DIR}/h5dump_ddl.c
|
||||
${HDF5_TOOLS_H5DUMP_SOURCE_DIR}/h5dump_xml.c
|
||||
)
|
||||
TARGET_NAMING (h5dump ${LIB_TYPE})
|
||||
TARGET_C_PROPERTIES (h5dump ${LIB_TYPE} " " " ")
|
||||
TARGET_NAMING (h5dump STATIC)
|
||||
TARGET_C_PROPERTIES (h5dump STATIC " " " ")
|
||||
target_link_libraries (h5dump ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_target_properties (h5dump PROPERTIES FOLDER tools)
|
||||
|
||||
@ -25,15 +25,15 @@ if (BUILD_TESTING)
|
||||
# --------------------------------------------------------------------
|
||||
# Add the h5dump test executable
|
||||
# --------------------------------------------------------------------
|
||||
if (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
if (HDF5_BUILD_GENERATORS)
|
||||
add_executable (h5dumpgentest ${HDF5_TOOLS_H5DUMP_SOURCE_DIR}/h5dumpgentest.c)
|
||||
TARGET_NAMING (h5dumpgentest STATIC)
|
||||
TARGET_C_PROPERTIES (h5dumpgentest STATIC " " " ")
|
||||
target_link_libraries (h5dumpgentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
|
||||
set_target_properties (h5dumpgentest PROPERTIES FOLDER generator/tools)
|
||||
|
||||
|
||||
#add_test (NAME h5dumpgentest COMMAND $<TARGET_FILE:h5dumpgentest>)
|
||||
endif (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS)
|
||||
endif (HDF5_BUILD_GENERATORS)
|
||||
|
||||
include (CMakeTests.cmake)
|
||||
|
||||
|
@ -107,7 +107,10 @@ TESTS = $(am__EXEEXT_1) $(TEST_SCRIPT)
|
||||
subdir = tools/h5dump
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/aclocal_cxx.m4 \
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/configure.ac
|
||||
$(top_srcdir)/m4/aclocal_fc.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/bin/mkinstalldirs
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user