mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Update version to 2.1 and derive version information from H5public.h, removing h5vers script and updating CMake and Java configurations. Versioning: Update version to 2.1 in H5public.h. Derive version strings in H5public.h using macros. CMake: Extract version from H5public.h in HDF5config.cmake and HDF5AsSubdirMacros.cmake. Configure README.md and CHANGELOG.md using CMakeLists.txt. Java: Generate H5Version.java from H5public.h for version consistency. Update H5.java to use H5Version for version constants. Removals: Delete bin/h5vers script, previously used for version management.
43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* 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 *
|
|
* the LICENSE file, which can be found at the root of the source code *
|
|
* distribution tree, or in https://www.hdfgroup.org/licenses. *
|
|
* If you do not have access to either file, you may request a copy from *
|
|
* help@hdfgroup.org. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
package hdf.hdf5lib;
|
|
|
|
/**
|
|
* HDF5 library version information.
|
|
*
|
|
* This file is automatically generated from src/H5public.h by CMake.
|
|
* DO NOT EDIT THIS FILE DIRECTLY - it will be overwritten during the build.
|
|
*
|
|
* To update the version, edit src/H5public.h and modify:
|
|
* H5_VERS_MAJOR
|
|
* H5_VERS_MINOR
|
|
* H5_VERS_RELEASE
|
|
* H5_VERS_SUBRELEASE
|
|
*/
|
|
public class H5Version {
|
|
/** Major version number */
|
|
public static final int MAJOR = @H5_VERS_MAJOR@;
|
|
|
|
/** Minor version number */
|
|
public static final int MINOR = @H5_VERS_MINOR@;
|
|
|
|
/** Release number */
|
|
public static final int RELEASE = @H5_VERS_RELEASE@;
|
|
|
|
/** Subrelease string (e.g., "-snap0" or empty string for releases) */
|
|
public static final String SUBRELEASE = "@H5_VERS_SUBRELEASE@";
|
|
|
|
/** Full version string matching the native library version */
|
|
public static final String VERSION = "@H5_VERS_MAJOR@.@H5_VERS_MINOR@.@H5_VERS_RELEASE@@H5_VERS_SUBRELEASE@";
|
|
}
|