Skip to content

Commit

Permalink
replace the symlink with a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Dec 21, 2022
1 parent 073a5ed commit dad45ef
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deps/libgdal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function generate_formats() {
}

mkdir -p gdal/gcore/gdal_version_full
ln -s ../gdal_version.h gdal/gcore/gdal_version_full/
cp gdal/gcore/gdal_version.h gdal/gcore/gdal_version_full/

generate_formats "$GDAL_FORMATS" "${dir_gdal}/frmts"
generate_formats "$OGR_FORMATS" "${dir_gdal}/ogr/ogrsf_frmts" "ogr_"
Expand Down
1 change: 0 additions & 1 deletion deps/libgdal/gdal/gcore/gdal_version_full/gdal_version.h

This file was deleted.

32 changes: 32 additions & 0 deletions deps/libgdal/gdal/gcore/gdal_version_full/gdal_version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/* $Id$ */

/* -------------------------------------------------------------------- */
/* GDAL Version Information. */
/* -------------------------------------------------------------------- */

#ifndef GDAL_VERSION_MAJOR
# define GDAL_VERSION_MAJOR 3
# define GDAL_VERSION_MINOR 6
# define GDAL_VERSION_REV 0
# define GDAL_VERSION_BUILD 0
#endif

/* GDAL_COMPUTE_VERSION macro introduced in GDAL 1.10 */
/* Must be used ONLY to compare with version numbers for GDAL >= 1.10 */
#ifndef GDAL_COMPUTE_VERSION
#define GDAL_COMPUTE_VERSION(maj,min,rev) ((maj)*1000000+(min)*10000+(rev)*100)
#endif

/* Note: the formula to compute GDAL_VERSION_NUM has changed in GDAL 1.10 */
#ifndef GDAL_VERSION_NUM
# define GDAL_VERSION_NUM (GDAL_COMPUTE_VERSION(GDAL_VERSION_MAJOR,GDAL_VERSION_MINOR,GDAL_VERSION_REV)+GDAL_VERSION_BUILD)
#endif

#if !defined(DO_NOT_DEFINE_GDAL_DATE_NAME)
#ifndef GDAL_RELEASE_DATE
# define GDAL_RELEASE_DATE 20221106
#endif
#ifndef GDAL_RELEASE_NAME
# define GDAL_RELEASE_NAME "3.6.0"
#endif
#endif

0 comments on commit dad45ef

Please sign in to comment.