2017-04-18 03:32:16 +08:00
|
|
|
#
|
|
|
|
# Copyright by The HDF Group.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2024-10-19 12:13:04 +08:00
|
|
|
# the LICENSE file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
|
|
|
#
|
2015-02-23 21:54:40 +08:00
|
|
|
include (CMakePackageConfigHelpers)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-11-18 04:57:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Check for Installation Utilities
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
if (WIN32)
|
2014-12-19 22:20:48 +08:00
|
|
|
set (PF_ENV_EXT "(x86)")
|
|
|
|
find_program (NSIS_EXECUTABLE NSIS.exe PATHS "$ENV{ProgramFiles}\\NSIS" "$ENV{ProgramFiles${PF_ENV_EXT}}\\NSIS")
|
2014-11-25 22:18:06 +08:00
|
|
|
if(NOT CPACK_WIX_ROOT)
|
|
|
|
file(TO_CMAKE_PATH "$ENV{WIX}" CPACK_WIX_ROOT)
|
2017-03-02 04:47:53 +08:00
|
|
|
endif ()
|
2014-11-25 22:18:06 +08:00
|
|
|
find_program (WIX_EXECUTABLE candle PATHS "${CPACK_WIX_ROOT}/bin")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Target(s) to CMake Install for import into other projects
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
2017-02-03 02:09:10 +08:00
|
|
|
if (HDF5_EXPORTED_TARGETS)
|
|
|
|
install (
|
|
|
|
EXPORT ${HDF5_EXPORTED_TARGETS}
|
2021-09-28 21:00:37 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}
|
2017-02-03 02:09:10 +08:00
|
|
|
FILE ${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-targets.cmake
|
2019-03-29 05:40:25 +08:00
|
|
|
NAMESPACE ${HDF_PACKAGE_NAMESPACE}
|
2017-02-03 02:09:10 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2017-02-03 02:09:10 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Export all exported targets to the build tree for use by parent project
|
|
|
|
#-----------------------------------------------------------------------------
|
2020-02-22 06:16:06 +08:00
|
|
|
export (
|
|
|
|
TARGETS ${HDF5_LIBRARIES_TO_EXPORT} ${HDF5_LIB_DEPENDENCIES} ${HDF5_UTILS_TO_EXPORT}
|
|
|
|
FILE ${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-targets.cmake
|
|
|
|
NAMESPACE ${HDF_PACKAGE_NAMESPACE}
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-10-04 00:13:55 +08:00
|
|
|
# Set includes needed for build
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
set (HDF5_INCLUDES_BUILD_TIME
|
Subfiling VFD (#1883)
* Added support for vector I/O calls to the VFD layer, and
associated test code. Note that this includes the optimization
to allow shortened sizes and types arrays to allow more space
efficient representations of vectors in which all entries are
of the same size and/or type. See the Selection I/o RFC for
further details.
Tested serial and parallel, debug and production on Charis.
serial and parallel debug only on Jelly.
* ran code formatter
quick serial build and test on jelly
* Add H5FD_read_selection() and H5FD_write_selection(). Currently only
translate to scalar calls. Fix const buf in H5FD_write_vector().
* Format source
* Fix comments
* Add selection I/O to chunk code, used when: not using chunk cache, no
datatype conversion, no I/O filters, no page buffer, not using collective
I/O. Requires global variable H5_use_selection_io_g be set to TRUE.
Implemented selection to vector I/O transaltion at the file driver
layer.
* Fix formatting unrelated to previous change to stop github from
complaining.
* Add full API support for selection I/O. Add tests for this.
* Implement selection I/O for contiguous datasets. Fix bug in selection
I/O translation. Add const qualifiers to some internal selection I/O
routines to maintain const-correctness while avoiding memcpys.
* Added vector read / write support to the MPIO VFD, with associated
test code (see testpar/t_vfd.c).
Note that this implementation does NOT support vector entries of
size greater than 2 GB. This must be repaired before release,
but it should be good enough for correctness testing.
As MPIO requires vector I/O requests to be sorted in increasing
address order, also added a vector sort utility in H5FDint.c This
function is tested in passing by the MPIO vector I/O extension.
In passing, repaired a bug in size / type vector extension management
in H5FD_read/write_vector()
Tested parallel debug and production on charis and Jelly.
* Ran source code formatter
* Add support for independent parallel I/O with selection I/O. Add
HDF5_USE_SELECTION_IO env var to control selection I/O (default off).
* Implement parallel collective support for selection I/O.
* Fix comments and run formatter.
* Update selection IO branch with develop (#1215)
Merged branch 'develop' into selection_io
* Sync with develop (#1262)
Updated the branch with develop changes.
* Implement big I/O support for vector I/O requests in the MPIO file
driver.
* Free arrays in H5FD__mpio_read/write_vector() as soon as they're not
needed, to cut down on memory usage during I/O.
* Address comments from code review. Fix const warnings with
H5S_SEL_ITER_INIT().
* Committing clang-format changes
* Feature/subfiling (#1464)
* Initial checkin of merged sub-filing VFD.
Passes regression tests (debug/shared/paralle) on Jelly.
However, bugs and many compiler warnings remain -- not suitable
for merge to develop.
* Minor mods to src/H5FDsubfile_mpi.c to address errors reported by autogen.sh
* Code formatting run -- no test
* Merged my subfiling code fixes into the new selection_io_branch
* Forgot to add the FindMERCURY.cmake file. This will probably disappear soon
* attempting to make a more reliable subfile file open which doesn't return errors. For some unknown reason, the regular posix open will occasionally fail to create a subfile. Some better error handling for file close has been added.
* added NULL option for H5FD_subfiling_config_t in H5Pset_fapl_subfiling (#1034)
* NULL option automatically stacks IOC VFD for subfiling and returns a valid fapl.
* added doxygen subfiling APIs
* Various fixes which allow the IOR benchmark to run correctly
* Lots of updates including the packaging up of the mercury_util source files to enable easier builds for our Benchmarking
* Interim checkin of selection_io_with_subfiling_vfd branch
Moddified testpar/t_vfd.c to test the subfiling vfd with default configuration.
Must update this code to run with a variety of configurations -- most particularly
multiple IO concentrators, and stripe depth small enough to test the other IO
concentrators.
testpar/t_vfd.c exposed a large number of race condidtions -- symtoms included:
1) Crashes (usually seg faults)
2) Heap corruption
3) Stack corruption
4) Double frees of heap space
5) Hangs
6) Out of order execution of I/O requests / violations of POSIX semantics
7) Swapped write requests
Items 1 - 4 turned out to be primarily caused by file close issues --
specifically, the main I/O concentrator thread and its pool of worker threads
were not being shut down properly on file close. Addressing this issue in
combination with some other minor fixes seems to have addressed these issues.
Items 5 & 6 appear to have been caused by issue of I/O requests to the
thread pool in an order that did not maintain POSIX semantics. A rewrite of
the I/O request dispatch code appears to have solved these issues.
Item 7 seems to have been caused by multiple write requests from a given
rank being read by the wrong worker thread. Code to issue "unique" tags for
each write request via the ACK message appears to have cleaned this up.
Note that the code is still in poor condtition. A partial list of known
defects includes:
a) Race condiditon on file close that allows superblock writes to arrive
at the I/O concentrator after it has been shutdown. This defect is
most evident when testpar/t_subfiling_vfd is run with 8 ranks.
b) No error reporting from I/O concentrators -- must design and implement
this. For now, mostly just asserts, which suggests that it should be
run in debug mode.
c) Much commented out and/or un-used code.
d) Code orgnaization
e) Build system with bits of Mercury is awkward -- think of shifting
to pthreads with our own thread pool code.
f) Need to add native support for vector and selection I/O to the subfiling
VFD.
g) Need to review, and posibly rework configuration code.
h) Need to store subfile configuration data in a superblock extension message,
and add code to use this data on file open.
i) Test code is inadequate -- expect more issues as it is extended.
In particular, there is no unit test code for the I/O request dispatch code.
While I think it is correct at present, we need test code to verify this.
Similarly, we need to test with multiple I/O concentrators and much smaller
stripe depth.
My actual code changes were limited to:
src/H5FDioc.c
src/H5FDioc_threads.c
src/H5FDsubfile_int.c
src/H5FDsubfile_mpi.c
src/H5FDsubfiling.c
src/H5FDsubfiling.h
src/H5FDsubfiling_priv.h
testpar/t_subfiling_vfd.c
testpar/t_vfd.c
I'm not sure what is going on with the deletions in src/mercury/src/util.
Tested parallel/debug on Charis and Jelly
* subfiling with selection IO (#1219)
Merged branch 'selection_io' into subfiling branch.
* Subfile name fixes (#1250)
* fixed subfiling naming convention, and added leading zero to rank names.
* Merge branch 'selection_io' into selection_io_with_subfiling_vfd (#1265)
* Added script to join subfiles into a single HDF5 file (#1350)
* Modified H5FD__subfiling_query() to report that the sub-filing VFD supports MPI
This exposed issues with truncate and get EOF in the sub-filing VFD.
I believe I have addressed these issues (get EOF not as fully tested as it should be), howeer,
it exposed race conditions resulting in hangs. As of this writing, I have not been able
to chase these down.
Note that the tests that expose these race conditions are in testpar/t_subfiling_vfd.c, and
are currently skipped. Unskip these tests to reproduce the race conditions.
tested (to the extent possible) debug/parallel on charis and jelly.
* Committing clang-format changes
* fixed H5MM_free
Co-authored-by: mainzer <mainzer#hdfgroup.org>
Co-authored-by: jrmainzer <72230804+jrmainzer@users.noreply.github.com>
Co-authored-by: Richard Warren <Richard.Warren@hdfgroup.org>
Co-authored-by: Richard.Warren <richard.warren@jelly.ad.hdfgroup.org>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Move Subfiling VFD components into H5FDsubfiling source directory
* Update Autotools build and add H5_HAVE_SUBFILING_VFD macro to H5pubconf.h
* Tidy up CMake build of subfiling sources
* Merge branch 'develop' into feature/subfiling (#1539)
Merge branch 'develop' into feature/subfiling
* Add VFD interface version field to Subfiling and IOC VFDs
* Merge branch 'develop' into feature/subfiling (#1557)
Merge branch 'develop' into feature/subfiling
* Merge branch 'develop' into feature/subfiling (#1563)
Merge branch 'develop' into feature/subfiling
* Tidy up merge artifacts after rebase on develop
* Fix incorrect variable in mirror VFD utils CMake
* Ensure VFD values are always defined
* Add subfiling to CMake VFD_LIST if built
* Mark MPI I/O driver self-initialization global as static
* Add Subfiling VFD to predefined VFDs for HDF5_DRIVER env. variable
* Initial progress towards separating private vs. public subfiling code
* include libgen.h in t_vfd tests for correct dirname/basename
* Committing clang-format changes
* removed mercury option, included subfiling header path (#1577)
Added subfiling status to configure output, installed h5fuse.sh to build directory for use in future tests.
* added check for stdatomic.h (#1578)
* added check for stdatomic.h with subfiling
* added H5_HAVE_SUBFILING_VFD for cmake
* fix old-style-definition warning (#1582)
* fix old-style-definition warning
* added test for enable parallel with subfiling VFD (#1586)
Fails if subfiling VFD is not used with parallel support.
* Subfiling/IOC VFD fixes and tidying (#1619)
* Rename CMake option for Subfiling VFD to be consistent with other VFDs
* Miscellaneous Subfiling fixes
Add error message for unset MPI communicator
Support dynamic loading of subfiling VFD with default configuration
* Temporary fix for subfile name issue
* Added subfile checks (#1634)
* added subfile checks
* Feature/subfiling (#1655)
* Subfiling/IOC VFD cleanup
Fix misuse of MPI_COMM_WORLD in IOC VFD
Propagate Subfiling FAPL MPI settings down to IOC FAPL in default
configuration case
Cleanup IOC VFD debugging code
Change sprintf to snprintf in a few places
* Major work on separating Subfiling and IOC VFDs from each other
* Re-write async_completion func to not overuse stack
* Replace usage of MPI_COMM_WORLD with file's actual MPI communicator
* Refactor H5FDsubfile_mpi.c
* Remove empty file H5FDsubfile_mpi.c
* Separate IOC VFD errors to its own error stack
* Committing clang-format changes
* Remove H5TRACE macros from H5FDioc.c
* Integrate H5FDioc_threads.c with IOC error stack
* Fix for subfile name generation
Use number of I/O concentrators from existing subfiling configuration file, if one exists
* Add temporary barrier in "Get EOF" operation to prevent races on EOF
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fix for retrieval of machine Host ID
* Default to MPI_COMM_WORLD if no MPI params set
* added libs rt and pthreads (#1673)
* added libs rt and pthreads
* Feature/subfiling (#1689)
* More tidying of IOC VFD and subfiling debug code
* Remove old unused log file code
* Clear FID from active file map on failure
* Fix bug in generation of subfile names when truncating file
* Change subfile names to start from 1 instead of 0
* Use long long for user-specified stripe size from environment variable
* Skip 0-sized I/Os in low-level IOC I/O routines
* Don't update EOF on read
* Convert printed warning about data size mismatch to assertion
* Don't add base file address to I/O addresses twice
Base address should already be applied as part of H5FDwrite/read_vector calls
* Account for 0-sized I/O vector entries in subfile write/read functions
* Rewrite init_indep_io for clarity
* Correction for IOC wraparound calculations
* Some corrections to iovec calculations
* Remove temporary barrier on EOF retrieval
* Complete work request queue entry on error instead of skipping over
* Account for stripe size wraparound for sf_col_offset calculation
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Re-write and fix bugs in I/O vector filling routines (#1703)
* Rewrite I/O vector filling routines for clarity
* Fix bug with iovec_fill_last when last I/O size is 0
* added subfiling_dir line read (#1714)
* added subfiling_dir line read and use it
* shellcheck fixes
* I/O request dispatch logic update (#1731)
Short-circuit I/O request dispatch when head of I/O queue is an
in-progress get EOF or truncate operation. This prevents an issue where
a write operation can be dispatched alongside a get EOF/truncate
operation, whereas all I/O requests are supposed to be ineligible for
dispatch until the get EOF/truncate is completed
* h5fuse.sh.in clean-up (#1757)
* Added command-line options
* Committing clang-format changes
* Align with changes from develop
* Mimic MPI I/O VFD for EOF handling
* Initialize context_id field for work request objects
* Use logfile for some debugging information
* Use atomic store to set IOC ready flag
* Use separate communicator for sending file EOF data
Minor IOC cleanup
* Use H5_subfile_fid_to_context to get context ID for file in Subfiling
VFD
* IOVEC calculation fixes
* Updates for debugging code
* Minor fixes for threaded code
* Committing clang-format changes
* Use separate MPI communicator for barrier operations
* Committing clang-format changes
* Rewrite EOF routine to use nonblocking MPI communication
* Committing clang-format changes
* Always dispatch I/O work requests in IOC main loop
* Return distinct MPI communicator to library when requested
* Minor warning cleanup
* Committing clang-format changes
* Generate h5fuse.sh from h5fuse.sh.in in CMake
* Send truncate messages to correct IOC rank
* Committing clang-format changes
* Miscellaneous cleanup
Post some MPI receives before sends
Free some duplicated MPI communicator/Info objects
Remove unnecessary extra MPI_Barrier
* Warning cleanup
* Fix for leaked MPI communicator
* Retrieve file EOF on single rank and bcast it
* Fixes for a few failure paths
* Cleanup of IOC file opens
* Committing clang-format changes
* Use plan MPI_Send for send of EOF messages
* Always check MPI thread support level during Subfiling init
* Committing clang-format changes
* Handle a hang on failure when IOCs can't open subfiles
* Committing clang-format changes
* Refactor file open status consensus check
* Committing clang-format changes
* Fix for MPI_Comm_free being called after MPI_Finalize
* Fix VFD test by setting MPI params before setting subfiling on FAPL
* Update Subfiling VFD error handling and error stack usage
* Improvements for Subfiling logfiles
* Remove prototypes for currently unused routines
* Disable I/O queue stat collecting by default
* Remove unused serialization mutex variable
* Update VFD testing to take subfiling VFD into account
* Fix usage of global subfiling application layout object
* Minor fixes for failure pathways
* Keep track of the number of failures in an IOC I/O queue
* Make sure not to exceed MPI_TAG_UB value for data communication messages
* Committing clang-format changes
* Update for rename of some H5FD 'ctl' opcodes
* Always include Subfiling's public header files in hdf5.h
* Remove old unused code and comments
* Implement support for per-file I/O queues
Allows the subfiling VFD to have multiple HDF5 files open simultaneously
* Use simple MPI_Iprobe over unnecessary MPI_Improbe
* Committing clang-format changes
* Update HDF5 testing to query driver for H5FD_FEAT_DEFAULT_VFD_COMPATIBLE
flag
* Fix a few bugs related to file multi-opens
* Avoid calling MPI routines if subfiling gets reinitialized
* Fix issue when files are closed in a random order
* Update HDF5 testing to query VFD for "using MPI" feature flag
* Register atexit handler in subfiling VFD to call MPI_Finalize after HDF5
closes
* Fail for collective I/O requests until support is implemented
* Correct VOL test function prototypes
* Minor cleanup of old code and comments
* Update mercury dependency
* Cleanup of subfiling configuration structure
* Committing clang-format changes
* Build system updates for Subfiling VFD
* Fix possible hang on failure in t_vfd tests caused by mismatched
MPI_Barrier calls
* Copy subfiling IOC fapl in "fapl get" method
* Mirror subfiling superblock writes to stub file for legacy POSIX-y HDF5
applications
* Allow collective I/O for MPI_BYTE types and rank 0 bcast strategy
* Committing clang-format changes
* Use different scheme for subfiling write message MPI tag calculations
* Committing clang-format changes
* Avoid performing fstat calls on all MPI ranks
* Add MPI_Barrier before finalizing IOC threads
* Use try_lock in I/O queue dispatch to minimize contention from worker threads
* Use simple Waitall for nonblocking I/O waits
* Add configurable IOC main thread delay and try_lock option to I/O queue dispatch
* Fix bug that could cause serialization of non-overlapping I/O requests
* Temporarily treat collective subfiling vector I/O calls as independent
* Removed unused mercury bits
* Add stubs for subfiling and IOC file delete callback
* Update VFD testing for Subfiling VFD
* Work around HDF5 metadata cache bug for Subfiling VFD when MPI Comm size
= 1
* Committing clang-format changes
Co-authored-by: mainzer <mainzer#hdfgroup.org>
Co-authored-by: Neil Fortner <nfortne2@hdfgroup.org>
Co-authored-by: Scot Breitenfeld <brtnfld@hdfgroup.org>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jrmainzer <72230804+jrmainzer@users.noreply.github.com>
Co-authored-by: Richard Warren <Richard.Warren@hdfgroup.org>
Co-authored-by: Richard.Warren <richard.warren@jelly.ad.hdfgroup.org>
2022-07-23 04:03:12 +08:00
|
|
|
${HDF5_SRC_INCLUDE_DIRS} ${HDF5_CPP_SRC_DIR} ${HDF5_HL_SRC_DIR}
|
2020-09-26 05:43:57 +08:00
|
|
|
${HDF5_TOOLS_SRC_DIR} ${HDF5_SRC_BINARY_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-09-25 22:37:09 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config.cmake file for the build directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2015-02-13 05:52:48 +08:00
|
|
|
set (INCLUDE_INSTALL_DIR ${HDF5_INSTALL_INCLUDE_DIR})
|
|
|
|
set (SHARE_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_INSTALL_CMAKE_DIR}" )
|
|
|
|
set (CURRENT_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}" )
|
2014-09-25 22:37:09 +08:00
|
|
|
configure_package_config_file (
|
|
|
|
${HDF_RESOURCES_DIR}/hdf5-config.cmake.in
|
|
|
|
"${HDF5_BINARY_DIR}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake"
|
2021-09-28 21:00:37 +08:00
|
|
|
INSTALL_DESTINATION "${HDF5_INSTALL_CMAKE_DIR}"
|
2014-09-25 22:37:09 +08:00
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
|
|
|
|
INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config.cmake file for the install directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2015-02-13 05:52:48 +08:00
|
|
|
set (INCLUDE_INSTALL_DIR ${HDF5_INSTALL_INCLUDE_DIR})
|
|
|
|
set (SHARE_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${HDF5_INSTALL_CMAKE_DIR}" )
|
|
|
|
set (CURRENT_BUILD_DIR "${CMAKE_INSTALL_PREFIX}" )
|
2014-09-25 22:37:09 +08:00
|
|
|
configure_package_config_file (
|
|
|
|
${HDF_RESOURCES_DIR}/hdf5-config.cmake.in
|
2015-02-27 02:19:41 +08:00
|
|
|
"${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake"
|
2021-09-28 21:00:37 +08:00
|
|
|
INSTALL_DESTINATION "${HDF5_INSTALL_CMAKE_DIR}"
|
2015-02-13 05:52:48 +08:00
|
|
|
PATH_VARS INCLUDE_INSTALL_DIR SHARE_INSTALL_DIR CURRENT_BUILD_DIR
|
2014-09-25 22:37:09 +08:00
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
|
|
|
install (
|
2015-02-27 02:19:41 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config.cmake
|
2021-09-28 21:00:37 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the hdf5-config-version .cmake file for the install directory
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
2020-02-22 06:16:06 +08:00
|
|
|
write_basic_package_version_file (
|
|
|
|
"${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake"
|
|
|
|
VERSION ${HDF5_PACKAGE_VERSION}
|
|
|
|
COMPATIBILITY SameMinorVersion
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2020-02-22 06:16:06 +08:00
|
|
|
#configure_file (
|
|
|
|
# ${HDF_RESOURCES_DIR}/hdf5-config-version.cmake.in
|
|
|
|
# ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake @ONLY
|
|
|
|
#)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2015-02-27 02:19:41 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/${HDF5_PACKAGE}${HDF_PACKAGE_EXT}-config-version.cmake
|
2021-09-28 21:00:37 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_CMAKE_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT configinstall
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the libhdf5.settings file for the lib info
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (H5_WORDS_BIGENDIAN)
|
|
|
|
set (BYTESEX big-endian)
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (BYTESEX little-endian)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2024-05-25 04:59:52 +08:00
|
|
|
${HDF5_SOURCE_DIR}/src/libhdf5.settings.cmake.in
|
2020-09-26 05:43:57 +08:00
|
|
|
${HDF5_SRC_BINARY_DIR}/libhdf5.settings ESCAPE_QUOTES @ONLY
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2020-09-26 05:43:57 +08:00
|
|
|
FILES ${HDF5_SRC_BINARY_DIR}/libhdf5.settings
|
2015-04-22 00:21:52 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_LIB_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT libraries
|
|
|
|
)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
2019-02-06 22:45:59 +08:00
|
|
|
# Configure the HDF5_Examples.cmake file and the examples
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
option (HDF5_PACK_EXAMPLES "Package the HDF5 Library Examples Compressed File" OFF)
|
|
|
|
if (HDF5_PACK_EXAMPLES)
|
2023-11-01 20:15:19 +08:00
|
|
|
if (DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
|
|
get_filename_component(TOOLCHAIN ${CMAKE_TOOLCHAIN_FILE} NAME)
|
|
|
|
set(CTEST_TOOLCHAIN_FILE "\${CTEST_SOURCE_DIRECTORY}/config/toolchain/${TOOLCHAIN}")
|
|
|
|
endif ()
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2023-04-24 04:11:17 +08:00
|
|
|
${HDF_RESOURCES_DIR}/examples/HDF5_Examples.cmake.in
|
2015-08-05 23:56:58 +08:00
|
|
|
${HDF5_BINARY_DIR}/HDF5_Examples.cmake @ONLY
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2015-08-05 23:56:58 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}/HDF5_Examples.cmake
|
2013-08-20 05:49:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2023-04-27 06:56:57 +08:00
|
|
|
|
|
|
|
install (
|
2023-12-08 21:45:54 +08:00
|
|
|
DIRECTORY ${HDF5_SOURCE_DIR}/HDF5Examples
|
2023-04-27 06:56:57 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
USE_SOURCE_PERMISSIONS
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-03-15 01:14:44 +08:00
|
|
|
install (
|
|
|
|
FILES
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_CMake_Examples.txt
|
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
|
|
|
install (
|
|
|
|
FILES
|
2023-04-24 04:11:17 +08:00
|
|
|
${HDF_RESOURCES_DIR}/examples/CTestScript.cmake
|
2017-03-15 01:14:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
|
|
|
install (
|
|
|
|
FILES
|
2023-04-24 04:11:17 +08:00
|
|
|
${HDF_RESOURCES_DIR}/examples/HDF5_Examples_options.cmake
|
2017-03-15 01:14:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-02-13 22:00:00 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2022-01-15 07:28:04 +08:00
|
|
|
# Configure the README.md file for the binary package
|
2014-02-13 22:00:00 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2014-05-15 03:50:28 +08:00
|
|
|
HDF_README_PROPERTIES(HDF5_BUILD_FORTRAN)
|
2014-02-13 22:00:00 +08:00
|
|
|
|
2014-11-18 04:57:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2024-10-19 12:13:04 +08:00
|
|
|
# Configure the LICENSE.txt file for the windows binary package
|
2014-11-18 04:57:46 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2024-10-19 12:13:04 +08:00
|
|
|
configure_file (${HDF5_SOURCE_DIR}/LICENSE ${HDF5_BINARY_DIR}/LICENSE.txt @ONLY)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Add Document File(s) to CMake Install
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
|
|
|
install (
|
2024-10-19 12:13:04 +08:00
|
|
|
FILES ${HDF5_SOURCE_DIR}/LICENSE
|
2013-08-20 05:49:44 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DATA_DIR}
|
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
if (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs")
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_HDF5_CMake.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/RELEASE.txt
|
|
|
|
)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2014-03-12 05:14:57 +08:00
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/USING_HDF5_VS.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_PACK_INSTALL_DOCS)
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
2018-08-17 04:45:17 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Warnings.txt
|
2013-08-20 05:49:44 +08:00
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_CMake.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/HISTORY-1_8.txt
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL
|
|
|
|
)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2014-04-07 23:39:13 +08:00
|
|
|
set (release_files
|
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Windows.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-04-07 23:39:13 +08:00
|
|
|
if (CYGWIN)
|
|
|
|
set (release_files
|
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Cygwin.txt
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_ENABLE_PARALLEL)
|
|
|
|
set (release_files
|
2013-08-20 05:49:44 +08:00
|
|
|
${release_files}
|
|
|
|
${HDF5_SOURCE_DIR}/release_docs/INSTALL_parallel
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2013-08-20 05:49:44 +08:00
|
|
|
FILES ${release_files}
|
2022-10-25 23:50:43 +08:00
|
|
|
DESTINATION ${HDF5_INSTALL_DOC_DIR}
|
2013-08-20 05:49:44 +08:00
|
|
|
COMPONENT hdfdocuments
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2013-08-20 05:49:44 +08:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Set the cpack variables
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
|
|
|
|
set (CPACK_PACKAGE_VENDOR "HDF_Group")
|
|
|
|
set (CPACK_PACKAGE_NAME "${HDF5_PACKAGE_NAME}")
|
2023-10-31 01:11:07 +08:00
|
|
|
if (NOT WIN32 OR HDF5_VERS_SUBRELEASE MATCHES "^[0-9]+$")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_VERSION "${HDF5_PACKAGE_VERSION_STRING}")
|
2023-10-31 01:11:07 +08:00
|
|
|
else ()
|
|
|
|
set (CPACK_PACKAGE_VERSION "${HDF5_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_VERSION_MAJOR "${HDF5_PACKAGE_VERSION_MAJOR}")
|
|
|
|
set (CPACK_PACKAGE_VERSION_MINOR "${HDF5_PACKAGE_VERSION_MINOR}")
|
|
|
|
set (CPACK_PACKAGE_VERSION_PATCH "")
|
2024-10-19 12:13:04 +08:00
|
|
|
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
|
2014-03-12 05:14:57 +08:00
|
|
|
if (EXISTS "${HDF5_SOURCE_DIR}/release_docs")
|
|
|
|
set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
|
|
|
|
set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGE_RELOCATABLE TRUE)
|
2015-10-16 02:01:21 +08:00
|
|
|
if (OVERRIDE_INSTALL_VERSION)
|
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${OVERRIDE_INSTALL_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-10-16 02:01:21 +08:00
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}/${CPACK_PACKAGE_NAME}/${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2022-08-19 22:54:42 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_DIR}/hdf.bmp")
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2024-09-05 22:15:12 +08:00
|
|
|
set (CPACK_ORIG_SOURCE_DIR ${CMAKE_SOURCE_DIR})
|
|
|
|
if ("$ENV{BINSIGN}" STREQUAL "exists")
|
|
|
|
set (CPACK_PRE_BUILD_SCRIPTS ${CMAKE_SOURCE_DIR}/config/cmake/SignPackageFiles.cmake)
|
|
|
|
endif ()
|
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
set (CPACK_GENERATOR "TGZ")
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2015-07-10 00:56:16 +08:00
|
|
|
set (CPACK_GENERATOR "ZIP")
|
2014-11-18 04:57:46 +08:00
|
|
|
|
2014-01-29 05:25:21 +08:00
|
|
|
# Installers for 32- vs. 64-bit CMake:
|
|
|
|
# - Root install directory (displayed to end user at installer-run time)
|
|
|
|
# - "NSIS package/display name" (text used in the installer GUI)
|
|
|
|
# - Registry key used to store info about the installation
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_PACKAGE_NAME "${HDF5_PACKAGE_STRING}")
|
|
|
|
if (CMAKE_CL_64)
|
|
|
|
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES64")
|
|
|
|
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION} (Win64)")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_INSTALL_ROOT "$PROGRAMFILES")
|
|
|
|
set (CPACK_PACKAGE_INSTALL_REGISTRY_KEY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2023-10-04 00:01:28 +08:00
|
|
|
# set the install/uninstall icon used for the installer itself
|
2014-02-28 00:53:12 +08:00
|
|
|
# There is a bug in NSI that does not handle full unix paths properly.
|
2022-08-19 22:54:42 +08:00
|
|
|
set (CPACK_NSIS_MUI_ICON "${HDF_RESOURCES_DIR}\\\\hdf.ico")
|
|
|
|
set (CPACK_NSIS_MUI_UNIICON "${HDF_RESOURCES_DIR}\\\\hdf.ico")
|
2014-02-28 00:53:12 +08:00
|
|
|
# set the package header icon for MUI
|
2022-08-19 22:54:42 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_DIR}\\\\hdf.bmp")
|
2014-05-15 03:51:54 +08:00
|
|
|
set (CPACK_NSIS_DISPLAY_NAME "${CPACK_NSIS_PACKAGE_NAME}")
|
2015-10-16 02:01:21 +08:00
|
|
|
if (OVERRIDE_INSTALL_VERSION)
|
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${OVERRIDE_INSTALL_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2015-10-16 02:01:21 +08:00
|
|
|
set (CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\${CPACK_PACKAGE_NAME}\\\\${CPACK_PACKAGE_VERSION}")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_NSIS_CONTACT "${HDF5_PACKAGE_BUGREPORT}")
|
|
|
|
set (CPACK_NSIS_MODIFY_PATH ON)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
|
|
|
if (WIX_EXECUTABLE)
|
|
|
|
list (APPEND CPACK_GENERATOR "WIX")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-11-18 04:57:46 +08:00
|
|
|
#WiX variables
|
|
|
|
set (CPACK_WIX_UNINSTALL "1")
|
|
|
|
# .. variable:: CPACK_WIX_LICENSE_RTF
|
|
|
|
# RTF License File
|
|
|
|
#
|
|
|
|
# If CPACK_RESOURCE_FILE_LICENSE has an .rtf extension it is used as-is.
|
|
|
|
#
|
|
|
|
# If CPACK_RESOURCE_FILE_LICENSE has an .txt extension it is implicitly
|
|
|
|
# converted to RTF by the WiX Generator.
|
|
|
|
# The expected encoding of the .txt file is UTF-8.
|
|
|
|
#
|
|
|
|
# With CPACK_WIX_LICENSE_RTF you can override the license file used by the
|
|
|
|
# WiX Generator in case CPACK_RESOURCE_FILE_LICENSE is in an unsupported
|
|
|
|
# format or the .txt -> .rtf conversion does not work as expected.
|
2024-10-19 12:13:04 +08:00
|
|
|
set (CPACK_RESOURCE_FILE_LICENSE "${HDF5_BINARY_DIR}/LICENSE.txt")
|
2014-11-18 04:57:46 +08:00
|
|
|
# .. variable:: CPACK_WIX_PRODUCT_ICON
|
|
|
|
# The Icon shown next to the program name in Add/Remove programs.
|
2022-08-19 22:54:42 +08:00
|
|
|
set(CPACK_WIX_PRODUCT_ICON "${HDF_RESOURCES_DIR}\\\\hdf.ico")
|
2014-11-18 04:57:46 +08:00
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_UI_BANNER
|
|
|
|
#
|
|
|
|
# The bitmap will appear at the top of all installer pages other than the
|
|
|
|
# welcome and completion dialogs.
|
|
|
|
#
|
|
|
|
# If set, this image will replace the default banner image.
|
|
|
|
#
|
|
|
|
# This image must be 493 by 58 pixels.
|
|
|
|
#
|
|
|
|
# .. variable:: CPACK_WIX_UI_DIALOG
|
|
|
|
#
|
|
|
|
# Background bitmap used on the welcome and completion dialogs.
|
|
|
|
#
|
|
|
|
# If this variable is set, the installer will replace the default dialog
|
|
|
|
# image.
|
|
|
|
#
|
|
|
|
# This image must be 493 by 312 pixels.
|
|
|
|
#
|
2015-02-27 02:19:41 +08:00
|
|
|
set(CPACK_WIX_PROPERTY_ARPCOMMENTS "HDF5 (Hierarchical Data Format 5) Software Library and Utilities")
|
|
|
|
set(CPACK_WIX_PROPERTY_ARPURLINFOABOUT "${HDF5_PACKAGE_URL}")
|
|
|
|
set(CPACK_WIX_PROPERTY_ARPHELPLINK "${HDF5_PACKAGE_BUGREPORT}")
|
2015-03-17 22:11:50 +08:00
|
|
|
if (BUILD_SHARED_LIBS)
|
2023-09-27 04:46:55 +08:00
|
|
|
if (${HDF_CFG_NAME} MATCHES "Debug" OR ${HDF_CFG_NAME} MATCHES "Developer")
|
|
|
|
set (WIX_CMP_NAME "${HDF5_LIB_NAME}${CMAKE_DEBUG_POSTFIX}")
|
|
|
|
else ()
|
|
|
|
set (WIX_CMP_NAME "${HDF5_LIB_NAME}")
|
|
|
|
endif ()
|
2023-09-11 20:45:36 +08:00
|
|
|
configure_file (${HDF_RESOURCES_DIR}/patch.xml.in ${HDF5_BINARY_DIR}/patch.xml @ONLY)
|
|
|
|
set(CPACK_WIX_PATCH_FILE "${HDF5_BINARY_DIR}/patch.xml")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
elseif (APPLE)
|
2016-10-08 01:32:48 +08:00
|
|
|
list (APPEND CPACK_GENERATOR "STGZ")
|
2024-08-08 21:13:22 +08:00
|
|
|
option (HDF5_PACK_MACOSX_DMG "Package the HDF5 Library using DragNDrop" ON)
|
2024-01-31 22:13:15 +08:00
|
|
|
if (HDF5_PACK_MACOSX_DMG)
|
|
|
|
list (APPEND CPACK_GENERATOR "DragNDrop")
|
|
|
|
endif ()
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
|
2014-04-23 02:41:11 +08:00
|
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
2022-08-19 22:54:42 +08:00
|
|
|
set (CPACK_PACKAGE_ICON "${HDF_RESOURCES_DIR}/hdf.icns")
|
2014-05-15 03:50:28 +08:00
|
|
|
|
2015-07-10 00:56:16 +08:00
|
|
|
option (HDF5_PACK_MACOSX_FRAMEWORK "Package the HDF5 Library in a Frameworks" OFF)
|
|
|
|
if (HDF5_PACK_MACOSX_FRAMEWORK AND HDF5_BUILD_FRAMEWORKS)
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_BUNDLE_NAME "${HDF5_PACKAGE_STRING}")
|
|
|
|
set (CPACK_BUNDLE_LOCATION "/") # make sure CMAKE_INSTALL_PREFIX ends in /
|
|
|
|
set (CMAKE_INSTALL_PREFIX "/${CPACK_BUNDLE_NAME}.framework/Versions/${CPACK_PACKAGE_VERSION}/${CPACK_PACKAGE_NAME}/")
|
2022-08-19 22:54:42 +08:00
|
|
|
set (CPACK_BUNDLE_ICON "${HDF_RESOURCES_DIR}/hdf.icns")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_BUNDLE_PLIST "${HDF5_BINARY_DIR}/CMakeFiles/Info.plist")
|
|
|
|
set (CPACK_SHORT_VERSION_STRING "${CPACK_PACKAGE_VERSION}")
|
2013-12-03 04:46:37 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the Info.plist file for the install bundle
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2015-07-10 00:56:16 +08:00
|
|
|
${HDF_RESOURCES_DIR}/CPack.Info.plist.in
|
2013-12-03 04:46:37 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/Info.plist @ONLY
|
|
|
|
)
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2014-05-15 03:50:28 +08:00
|
|
|
${HDF_RESOURCES_DIR}/PkgInfo.in
|
2014-02-28 00:53:12 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/PkgInfo @ONLY
|
|
|
|
)
|
2014-03-12 06:07:13 +08:00
|
|
|
configure_file (
|
2022-08-19 22:54:42 +08:00
|
|
|
${HDF_RESOURCES_DIR}/version.plist.in
|
2014-02-28 00:53:12 +08:00
|
|
|
${HDF5_BINARY_DIR}/CMakeFiles/version.plist @ONLY
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
install (
|
2014-02-28 00:53:12 +08:00
|
|
|
FILES ${HDF5_BINARY_DIR}/CMakeFiles/PkgInfo
|
|
|
|
DESTINATION ..
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
else ()
|
2015-07-10 00:56:16 +08:00
|
|
|
list (APPEND CPACK_GENERATOR "STGZ")
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
|
|
|
|
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2023-02-16 01:11:42 +08:00
|
|
|
find_program (DPKGSHLIB_EXE dpkg-shlibdeps)
|
|
|
|
if (DPKGSHLIB_EXE)
|
|
|
|
list (APPEND CPACK_GENERATOR "DEB")
|
|
|
|
set (CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
|
|
|
|
set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${HDF5_PACKAGE_BUGREPORT}")
|
|
|
|
endif ()
|
2013-11-13 05:31:01 +08:00
|
|
|
|
2023-02-16 01:11:42 +08:00
|
|
|
find_program (RPMBUILD_EXE rpmbuild)
|
|
|
|
if (RPMBUILD_EXE)
|
|
|
|
list (APPEND CPACK_GENERATOR "RPM")
|
|
|
|
set (CPACK_RPM_PACKAGE_RELEASE "1")
|
|
|
|
set (CPACK_RPM_PACKAGE_RELEASE_DIST ON)
|
|
|
|
set (CPACK_RPM_COMPONENT_INSTALL ON)
|
|
|
|
set (CPACK_RPM_PACKAGE_RELOCATABLE ON)
|
|
|
|
set (CPACK_RPM_FILE_NAME "RPM-DEFAULT")
|
|
|
|
set (CPACK_RPM_PACKAGE_NAME "${CPACK_PACKAGE_NAME}")
|
|
|
|
set (CPACK_RPM_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
|
|
|
|
set (CPACK_RPM_PACKAGE_VENDOR "${CPACK_PACKAGE_VENDOR}")
|
|
|
|
set (CPACK_RPM_PACKAGE_LICENSE "BSD-style")
|
|
|
|
set (CPACK_RPM_PACKAGE_GROUP "Development/Libraries")
|
|
|
|
set (CPACK_RPM_PACKAGE_URL "${HDF5_PACKAGE_URL}")
|
|
|
|
set (CPACK_RPM_PACKAGE_SUMMARY "HDF5 is a unique technology suite that makes possible the management of extremely large and complex data collections.")
|
|
|
|
set (CPACK_RPM_PACKAGE_DESCRIPTION
|
2013-08-20 05:49:44 +08:00
|
|
|
"The HDF5 technology suite includes:
|
|
|
|
|
|
|
|
* A versatile data model that can represent very complex data objects and a wide variety of metadata.
|
|
|
|
|
|
|
|
* A completely portable file format with no limit on the number or size of data objects in the collection.
|
|
|
|
|
|
|
|
* A software library that runs on a range of computational platforms, from laptops to massively parallel systems, and implements a high-level API with C, C++, Fortran 90, and Java interfaces.
|
|
|
|
|
|
|
|
* A rich set of integrated performance features that allow for access time and storage space optimizations.
|
|
|
|
|
|
|
|
* Tools and applications for managing, manipulating, viewing, and analyzing the data in the collection.
|
|
|
|
|
|
|
|
The HDF5 data model, file format, API, library, and tools are open and distributed without charge.
|
|
|
|
"
|
2023-02-16 01:11:42 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2023-02-16 01:11:42 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Configure the spec file for the install RPM
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# configure_file ("${HDF5_RESOURCES_DIR}/hdf5.spec.in" "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_PACKAGE_NAME}.spec" @ONLY IMMEDIATE)
|
|
|
|
# set (CPACK_RPM_USER_BINARY_SPECFILE "${CMAKE_CURRENT_BINARY_DIR}/${HDF5_PACKAGE_NAME}.spec")
|
|
|
|
endif ()
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-01-29 05:48:36 +08:00
|
|
|
# By default, do not warn when built on machines using only VS Express:
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT DEFINED CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS)
|
|
|
|
set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2014-05-13 02:14:46 +08:00
|
|
|
include (InstallRequiredSystemLibraries)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${HDF5_BINARY_DIR};HDF5;ALL;/")
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_PACKAGE_EXTLIBS)
|
2017-09-14 03:57:55 +08:00
|
|
|
if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
|
2024-05-11 02:01:28 +08:00
|
|
|
if (H5_ZLIB_FOUND AND ZLIB_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2024-05-11 02:01:28 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_ZLIB_INCLUDE_DIR_GEN};HDF5_ZLIB;ALL;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2024-05-11 02:01:28 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_ZLIB_INCLUDE_DIR_GEN};HDF5_ZLIB;libraries;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_ZLIB_INCLUDE_DIR_GEN};HDF5_ZLIB;configinstall;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2024-05-11 02:01:28 +08:00
|
|
|
if (H5_SZIP_FOUND AND SZIP_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2024-05-11 02:01:28 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_SZIP_INCLUDE_DIR_GEN};SZIP;ALL;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
else ()
|
2024-05-11 02:01:28 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_SZIP_INCLUDE_DIR_GEN};SZIP;libraries;/")
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${H5_SZIP_INCLUDE_DIR_GEN};SZIP;configinstall;/")
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2020-09-26 05:43:57 +08:00
|
|
|
if (PLUGIN_FOUND AND PLUGIN_USE_EXTERNAL)
|
2020-10-30 20:09:23 +08:00
|
|
|
if (WIN32)
|
2020-09-26 05:43:57 +08:00
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${PLUGIN_BINARY_DIR};PLUGIN;ALL;/")
|
|
|
|
else ()
|
|
|
|
set (CPACK_INSTALL_CMAKE_PROJECTS "${CPACK_INSTALL_CMAKE_PROJECTS};${PLUGIN_BINARY_DIR};PLUGIN;libraries;/")
|
|
|
|
endif ()
|
|
|
|
endif ()
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
include (CPack)
|
2013-08-20 05:49:44 +08:00
|
|
|
|
2015-02-27 02:19:41 +08:00
|
|
|
cpack_add_install_type(Full DISPLAY_NAME "Everything")
|
|
|
|
cpack_add_install_type(Developer)
|
|
|
|
|
|
|
|
cpack_add_component_group(Runtime)
|
|
|
|
|
2015-03-24 01:44:07 +08:00
|
|
|
cpack_add_component_group(Documents
|
|
|
|
EXPANDED
|
|
|
|
DESCRIPTION "Release notes for developing HDF5 applications"
|
|
|
|
)
|
2015-03-06 00:09:22 +08:00
|
|
|
|
2015-02-27 02:19:41 +08:00
|
|
|
cpack_add_component_group(Development
|
|
|
|
EXPANDED
|
|
|
|
DESCRIPTION "All of the tools you'll need to develop HDF5 applications"
|
|
|
|
)
|
|
|
|
|
|
|
|
cpack_add_component_group(Applications
|
|
|
|
EXPANDED
|
|
|
|
DESCRIPTION "Tools for HDF5 files"
|
|
|
|
)
|
|
|
|
|
2013-08-20 05:49:44 +08:00
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
# Now list the cpack commands
|
|
|
|
#---------------------------------------------------------------------------
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (libraries
|
2013-08-20 05:49:44 +08:00
|
|
|
DISPLAY_NAME "HDF5 Libraries"
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (headers
|
|
|
|
DISPLAY_NAME "HDF5 Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hdfdocuments
|
2013-08-20 05:49:44 +08:00
|
|
|
DISPLAY_NAME "HDF5 Documents"
|
|
|
|
GROUP Documents
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (configinstall
|
|
|
|
DISPLAY_NAME "HDF5 CMake files"
|
2016-03-31 22:02:24 +08:00
|
|
|
HIDDEN
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_FORTRAN)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (fortlibraries
|
|
|
|
DISPLAY_NAME "HDF5 Fortran Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (fortheaders
|
|
|
|
DISPLAY_NAME "HDF5 Fortran Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS fortlibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_CPP_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (cpplibraries
|
|
|
|
DISPLAY_NAME "HDF5 C++ Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (cppheaders
|
|
|
|
DISPLAY_NAME "HDF5 C++ Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS cpplibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2020-03-14 06:13:17 +08:00
|
|
|
cpack_add_component (utilsapplications
|
|
|
|
DISPLAY_NAME "HDF5 Utility Applications"
|
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Applications
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_TOOLS)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolsapplications
|
|
|
|
DISPLAY_NAME "HDF5 Tools Applications"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS toolslibraries
|
|
|
|
GROUP Applications
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolslibraries
|
|
|
|
DISPLAY_NAME "HDF5 Tools Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (toolsheaders
|
|
|
|
DISPLAY_NAME "HDF5 Tools Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS toolslibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_HL_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hllibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL Libraries"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS libraries
|
|
|
|
GROUP Runtime
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlheaders
|
|
|
|
DISPLAY_NAME "HDF5 HL Headers"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Development
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hltoolsapplications
|
|
|
|
DISPLAY_NAME "HDF5 HL Tools Applications"
|
2013-08-20 05:49:44 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Applications
|
2015-03-24 01:44:07 +08:00
|
|
|
INSTALL_TYPES Full Developer User
|
2013-08-20 05:49:44 +08:00
|
|
|
)
|
2015-04-29 05:32:17 +08:00
|
|
|
if (HDF5_BUILD_CPP_LIB)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlcpplibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL C++ Libraries"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS hllibraries
|
|
|
|
GROUP Runtime
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlcppheaders
|
|
|
|
DISPLAY_NAME "HDF5 HL C++ Headers"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS hlcpplibraries
|
|
|
|
GROUP Development
|
|
|
|
INSTALL_TYPES Full Developer
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2015-04-29 05:32:17 +08:00
|
|
|
if (HDF5_BUILD_FORTRAN)
|
2015-07-10 00:56:16 +08:00
|
|
|
cpack_add_component (hlfortlibraries
|
|
|
|
DISPLAY_NAME "HDF5 HL Fortran Libraries"
|
2015-04-29 05:32:17 +08:00
|
|
|
DEPENDS fortlibraries
|
|
|
|
GROUP Runtime
|
|
|
|
INSTALL_TYPES Full Developer User
|
|
|
|
)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|
2015-07-10 00:56:16 +08:00
|
|
|
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|