eccodeslib 2.48.4.dev12__cp313-cp313-macosx_15_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- eccodeslib/__init__.py +3 -0
- eccodeslib/bin/bufr_compare +0 -0
- eccodeslib/bin/bufr_compare_dir +31 -0
- eccodeslib/bin/bufr_copy +0 -0
- eccodeslib/bin/bufr_count +0 -0
- eccodeslib/bin/bufr_dump +0 -0
- eccodeslib/bin/bufr_filter +72 -0
- eccodeslib/bin/bufr_get +0 -0
- eccodeslib/bin/bufr_index_build +0 -0
- eccodeslib/bin/bufr_ls +0 -0
- eccodeslib/bin/bufr_set +0 -0
- eccodeslib/bin/codes_bufr_filter +0 -0
- eccodeslib/bin/codes_config +144 -0
- eccodeslib/bin/codes_count +0 -0
- eccodeslib/bin/codes_export_resource +0 -0
- eccodeslib/bin/codes_info +0 -0
- eccodeslib/bin/codes_parser +0 -0
- eccodeslib/bin/codes_split_file +0 -0
- eccodeslib/bin/grib2ppm +0 -0
- eccodeslib/bin/grib_compare +0 -0
- eccodeslib/bin/grib_copy +0 -0
- eccodeslib/bin/grib_count +0 -0
- eccodeslib/bin/grib_dump +0 -0
- eccodeslib/bin/grib_filter +0 -0
- eccodeslib/bin/grib_get +0 -0
- eccodeslib/bin/grib_get_data +0 -0
- eccodeslib/bin/grib_histogram +0 -0
- eccodeslib/bin/grib_index_build +0 -0
- eccodeslib/bin/grib_ls +0 -0
- eccodeslib/bin/grib_set +0 -0
- eccodeslib/bin/gts_compare +0 -0
- eccodeslib/bin/gts_copy +0 -0
- eccodeslib/bin/gts_count +0 -0
- eccodeslib/bin/gts_dump +0 -0
- eccodeslib/bin/gts_filter +0 -0
- eccodeslib/bin/gts_get +0 -0
- eccodeslib/bin/gts_ls +0 -0
- eccodeslib/cmake/libaec-config-version.cmake +65 -0
- eccodeslib/cmake/libaec-config.cmake +111 -0
- eccodeslib/cmake/libaec_shared-targets-relwithdebinfo.cmake +29 -0
- eccodeslib/cmake/libaec_shared-targets.cmake +130 -0
- eccodeslib/include/eccodes.h +1651 -0
- eccodeslib/include/eccodes_config.h +132 -0
- eccodeslib/include/eccodes_ecbuild_config.h +72 -0
- eccodeslib/include/eccodes_version.h +21 -0
- eccodeslib/include/eccodes_windef.h +22 -0
- eccodeslib/include/grib_api.h +1765 -0
- eccodeslib/include/libaec.h +194 -0
- eccodeslib/lib/cmake/eccodes/eccodes-config-version.cmake +43 -0
- eccodeslib/lib/cmake/eccodes/eccodes-config.cmake +117 -0
- eccodeslib/lib/cmake/eccodes/eccodes-import.cmake +5 -0
- eccodeslib/lib/cmake/eccodes/eccodes-targets-minsizerel.cmake +327 -0
- eccodeslib/lib/cmake/eccodes/eccodes-targets.cmake +213 -0
- eccodeslib/lib/libaec.0.1.6.dylib +0 -0
- eccodeslib/lib/libaec.0.dylib +0 -0
- eccodeslib/lib/libaec.dylib +0 -0
- eccodeslib/lib/libeccodes.dylib +0 -0
- eccodeslib/lib/libeccodes_memfs.dylib +4 -0
- eccodeslib/lib/libopenjp2.2.5.2.dylib +0 -0
- eccodeslib/lib/libopenjp2.7.dylib +0 -0
- eccodeslib/lib/libopenjp2.dylib +0 -0
- eccodeslib/lib/libpng.dylib +0 -0
- eccodeslib/lib/libpng16.16.55.0.dylib +0 -0
- eccodeslib/lib/libpng16.16.dylib +0 -0
- eccodeslib/lib/libpng16.dylib +0 -0
- eccodeslib/lib/pkgconfig/eccodes.pc +48 -0
- eccodeslib-2.48.4.dev12.dist-info/METADATA +105 -0
- eccodeslib-2.48.4.dev12.dist-info/RECORD +72 -0
- eccodeslib-2.48.4.dev12.dist-info/WHEEL +5 -0
- eccodeslib-2.48.4.dev12.dist-info/licenses/AUTHORS +12 -0
- eccodeslib-2.48.4.dev12.dist-info/licenses/LICENSE +202 -0
- eccodeslib-2.48.4.dev12.dist-info/top_level.txt +1 -0
eccodeslib/__init__.py
ADDED
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
|
|
3
|
+
keys="md5Structure,md5Data,typicalDate,typicalTime,rdbType,rdbSubtype,ident,satelliteID,localLatitude,localLongitude,localLatitude1,localLongitude1,localLatitude2,localLongitude2"
|
|
4
|
+
|
|
5
|
+
opt=""
|
|
6
|
+
|
|
7
|
+
if [ $# -eq 3 ]
|
|
8
|
+
then
|
|
9
|
+
opt=$1
|
|
10
|
+
dir1=$2
|
|
11
|
+
dir2=$3
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
if [ $# -eq 2 ]
|
|
15
|
+
then
|
|
16
|
+
dir1=$1
|
|
17
|
+
dir2=$2
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if [ $# -gt 3 ] || [ $# -lt 2 ]
|
|
21
|
+
then
|
|
22
|
+
echo usage: [bufr_compare options] bufr_compare_dir directory1 directory2
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
bufr_index_build -k $keys -o 1.idx "$dir1"/* > /dev/null
|
|
27
|
+
bufr_index_build -k $keys -o 2.idx "$dir2"/* > /dev/null
|
|
28
|
+
|
|
29
|
+
bufr_compare -f $opt 1.idx 2.idx
|
|
30
|
+
rm -f 1.idx 2.idx
|
|
31
|
+
|
eccodeslib/bin/bufr_copy
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/bufr_dump
ADDED
|
Binary file
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
set -u
|
|
3
|
+
script_dir=`dirname $0`
|
|
4
|
+
BUFRDC_TOOL=bufrdc_emoslib_bufr_filter
|
|
5
|
+
EMOSLIB_TOOL=emoslib_bufr_filter
|
|
6
|
+
ECCODES_TOOL=codes_bufr_filter
|
|
7
|
+
result=0 # return code from function
|
|
8
|
+
ERR_TOOL_NOT_FOUND=666
|
|
9
|
+
|
|
10
|
+
the_tool=$ECCODES_TOOL
|
|
11
|
+
is_emoslib=0
|
|
12
|
+
|
|
13
|
+
#########################################################
|
|
14
|
+
# Arguments:
|
|
15
|
+
# arguments from the script command line
|
|
16
|
+
# Return Value:
|
|
17
|
+
# the global variable 'result' holds the exit code
|
|
18
|
+
try_tool()
|
|
19
|
+
{
|
|
20
|
+
if [ -f "${script_dir}/$the_tool" ]; then
|
|
21
|
+
${script_dir}/$the_tool "${@}"
|
|
22
|
+
result=$?
|
|
23
|
+
else
|
|
24
|
+
if command -v $the_tool >/dev/null 2>&1; then
|
|
25
|
+
$the_tool "${@}"
|
|
26
|
+
result=$?
|
|
27
|
+
else
|
|
28
|
+
#echo "Could not find $the_tool. Return error"
|
|
29
|
+
result=$ERR_TOOL_NOT_FOUND
|
|
30
|
+
fi
|
|
31
|
+
fi
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#########################################################
|
|
35
|
+
# Deal with case where no arguments are provided e.g. usage
|
|
36
|
+
if [ $# -eq 0 ]; then
|
|
37
|
+
# Give priority to ecCodes over emoslib
|
|
38
|
+
the_tool=$ECCODES_TOOL
|
|
39
|
+
try_tool "${@}"
|
|
40
|
+
if [ $result -eq $ERR_TOOL_NOT_FOUND ]; then
|
|
41
|
+
the_tool=$BUFRDC_TOOL
|
|
42
|
+
try_tool "${@}"
|
|
43
|
+
fi
|
|
44
|
+
exit 0
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
# Now process arguments. The "-i" switch is specific to emoslib
|
|
48
|
+
for i in "$@" ; do
|
|
49
|
+
if [ "$i" = "-i" ]; then is_emoslib=1; fi
|
|
50
|
+
done
|
|
51
|
+
|
|
52
|
+
#########################################################
|
|
53
|
+
if [ $is_emoslib -eq 1 ]; then
|
|
54
|
+
pkg='emoslib/bufrdc'
|
|
55
|
+
the_tool=$EMOSLIB_TOOL
|
|
56
|
+
try_tool "${@}"
|
|
57
|
+
if [ $result -eq $ERR_TOOL_NOT_FOUND ]; then
|
|
58
|
+
the_tool=$BUFRDC_TOOL
|
|
59
|
+
try_tool "${@}"
|
|
60
|
+
fi
|
|
61
|
+
else
|
|
62
|
+
pkg='ecCodes'
|
|
63
|
+
the_tool=$ECCODES_TOOL
|
|
64
|
+
try_tool "${@}"
|
|
65
|
+
fi
|
|
66
|
+
if [ $result -eq $ERR_TOOL_NOT_FOUND ]; then
|
|
67
|
+
echo "ERROR: Could not find the executable: $the_tool. Aborting!" 2>&1
|
|
68
|
+
echo " The arguments you passed in are relevant to $pkg." 2>&1
|
|
69
|
+
echo " Please make sure you have $pkg installed in your path." 2>&1
|
|
70
|
+
exit 1
|
|
71
|
+
fi
|
|
72
|
+
exit $result
|
eccodeslib/bin/bufr_get
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/bufr_ls
ADDED
|
Binary file
|
eccodeslib/bin/bufr_set
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
ECCODES_VERSION_STR="2.48.4"
|
|
4
|
+
ECCODES_MAJOR_VERSION=2
|
|
5
|
+
ECCODES_MINOR_VERSION=48
|
|
6
|
+
ECCODES_PATCH_VERSION=4
|
|
7
|
+
# ECCODES_VERSION="$ECCODES_MAJOR_VERSION.$ECCODES_MINOR_VERSION.$ECCODES_PATCH_VERSION"
|
|
8
|
+
|
|
9
|
+
ECCODES_GIT_SHA1="75af077ed5580e48c94eb2b4b56f828c0056a617"
|
|
10
|
+
if [ "x$ECCODES_GIT_SHA1" = "x" ]; then
|
|
11
|
+
ECCODES_GIT_SHA1="unknown"
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
#################################################################
|
|
15
|
+
# Commands
|
|
16
|
+
#################################################################
|
|
17
|
+
usage()
|
|
18
|
+
{
|
|
19
|
+
echo "Usage: $0 [--version] [--info] [--git]"
|
|
20
|
+
exit $1
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
version()
|
|
24
|
+
{
|
|
25
|
+
echo "${ECCODES_VERSION_STR}"
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
print_feature()
|
|
29
|
+
{
|
|
30
|
+
if [ -z "$1" ]; then
|
|
31
|
+
echo "OFF"
|
|
32
|
+
elif [[ $1 =~ (true|TRUE|ON|1) ]]; then
|
|
33
|
+
echo "ON"
|
|
34
|
+
else
|
|
35
|
+
echo "OFF"
|
|
36
|
+
fi
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
build_type="MinSizeRel"
|
|
40
|
+
info()
|
|
41
|
+
{
|
|
42
|
+
echo "ecCodes version ${ECCODES_VERSION_STR}, git-sha1 ${ECCODES_GIT_SHA1}"
|
|
43
|
+
echo ""
|
|
44
|
+
echo "Build:"
|
|
45
|
+
echo " build type : MinSizeRel"
|
|
46
|
+
echo " timestamp : 20260918173743"
|
|
47
|
+
echo " op. system : Darwin-25.6.0 (macosx.64)"
|
|
48
|
+
echo " processor : arm64"
|
|
49
|
+
echo " sources : /opt/actions-runner/work/_work/python-develop-bundle/python-develop-bundle/src/eccodes"
|
|
50
|
+
echo " c++ compiler : AppleClang 21.0.0.21000101"
|
|
51
|
+
# Add the most common build type
|
|
52
|
+
if [ $build_type = "RelWithDebInfo" ]; then
|
|
53
|
+
echo " flags : -O2 -g -DNDEBUG"
|
|
54
|
+
else
|
|
55
|
+
echo " flags : -pipe"
|
|
56
|
+
fi
|
|
57
|
+
# echo " fortran compiler: "
|
|
58
|
+
# echo " flags : "
|
|
59
|
+
echo ""
|
|
60
|
+
echo "Features:"
|
|
61
|
+
echo " FORTRAN : $(print_feature 0)"
|
|
62
|
+
echo " AEC : $(print_feature 1)"
|
|
63
|
+
echo " MEMFS : $(print_feature 1)"
|
|
64
|
+
echo " ECCODES_THREADS : $(print_feature 1)"
|
|
65
|
+
echo " ECCODES_OMP_THREADS : $(print_feature 0)"
|
|
66
|
+
echo " JPG : $(print_feature 1)"
|
|
67
|
+
echo " PNG : $(print_feature 1)"
|
|
68
|
+
echo " NETCDF : $(print_feature 0)"
|
|
69
|
+
echo " GEOGRAPHY : $(print_feature 1)"
|
|
70
|
+
echo " ECKIT_GEO : $(print_feature 1)"
|
|
71
|
+
echo ""
|
|
72
|
+
# echo "Dependencies: "
|
|
73
|
+
# if [ -n "" ]; then
|
|
74
|
+
# echo " eckit version (2.3.1), git-sha1 $(short_gitsha1 11636ab1b7892459a2591c86e232e92b0a8db601)"
|
|
75
|
+
# else
|
|
76
|
+
# echo " None"
|
|
77
|
+
# fi
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
gitsha1()
|
|
81
|
+
{
|
|
82
|
+
echo "${ECCODES_GIT_SHA1}"
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
short_gitsha1()
|
|
86
|
+
{
|
|
87
|
+
if [ -z "$1" ]; then
|
|
88
|
+
echo "unknown"
|
|
89
|
+
else
|
|
90
|
+
echo $1 | head -c 13
|
|
91
|
+
fi
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#################################################################
|
|
95
|
+
# Parse command-line
|
|
96
|
+
#################################################################
|
|
97
|
+
|
|
98
|
+
if test $# -eq 0; then
|
|
99
|
+
info
|
|
100
|
+
# usage 1
|
|
101
|
+
fi
|
|
102
|
+
|
|
103
|
+
while test $# -gt 0; do
|
|
104
|
+
|
|
105
|
+
# Split --option=value in $opt="--option" and $val="value"
|
|
106
|
+
|
|
107
|
+
opt=""
|
|
108
|
+
val=""
|
|
109
|
+
|
|
110
|
+
case "$1" in
|
|
111
|
+
--*=*)
|
|
112
|
+
opt=`echo "$1" | sed 's/=.*//'`
|
|
113
|
+
val=`echo "$1" | sed 's/--[_a-zA-Z0-9]*=//'`
|
|
114
|
+
;;
|
|
115
|
+
--*)
|
|
116
|
+
opt=$1
|
|
117
|
+
;;
|
|
118
|
+
*)
|
|
119
|
+
break
|
|
120
|
+
;;
|
|
121
|
+
esac
|
|
122
|
+
|
|
123
|
+
# Parse options
|
|
124
|
+
case "$opt" in
|
|
125
|
+
--version)
|
|
126
|
+
version
|
|
127
|
+
;;
|
|
128
|
+
--git)
|
|
129
|
+
gitsha1
|
|
130
|
+
;;
|
|
131
|
+
--info)
|
|
132
|
+
info
|
|
133
|
+
;;
|
|
134
|
+
--)
|
|
135
|
+
shift
|
|
136
|
+
break
|
|
137
|
+
;;
|
|
138
|
+
*)
|
|
139
|
+
echo "unknown option: $opt"
|
|
140
|
+
usage 1
|
|
141
|
+
;;
|
|
142
|
+
esac
|
|
143
|
+
shift
|
|
144
|
+
done
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
eccodeslib/bin/grib2ppm
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/grib_copy
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/grib_dump
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/grib_get
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
eccodeslib/bin/grib_ls
ADDED
|
Binary file
|
eccodeslib/bin/grib_set
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/gts_copy
ADDED
|
Binary file
|
eccodeslib/bin/gts_count
ADDED
|
Binary file
|
eccodeslib/bin/gts_dump
ADDED
|
Binary file
|
|
Binary file
|
eccodeslib/bin/gts_get
ADDED
|
Binary file
|
eccodeslib/bin/gts_ls
ADDED
|
Binary file
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# This is a basic version file for the Config-mode of find_package().
|
|
2
|
+
# It is used by write_basic_package_version_file() as input file for configure_file()
|
|
3
|
+
# to create a version-file which can be installed along a config.cmake file.
|
|
4
|
+
#
|
|
5
|
+
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
|
6
|
+
# the requested version string are exactly the same and it sets
|
|
7
|
+
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
|
|
8
|
+
# but only if the requested major version is the same as the current one.
|
|
9
|
+
# The variable CVF_VERSION must be set before calling configure_file().
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
set(PACKAGE_VERSION "1.1.6")
|
|
13
|
+
|
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
16
|
+
else()
|
|
17
|
+
|
|
18
|
+
if("1.1.6" MATCHES "^([0-9]+)\\.")
|
|
19
|
+
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
|
20
|
+
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
|
|
21
|
+
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
|
|
22
|
+
endif()
|
|
23
|
+
else()
|
|
24
|
+
set(CVF_VERSION_MAJOR "1.1.6")
|
|
25
|
+
endif()
|
|
26
|
+
|
|
27
|
+
if(PACKAGE_FIND_VERSION_RANGE)
|
|
28
|
+
# both endpoints of the range must have the expected major version
|
|
29
|
+
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
|
|
30
|
+
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
|
31
|
+
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
|
32
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
|
|
33
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
34
|
+
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
|
|
35
|
+
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
|
|
36
|
+
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
|
|
37
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
38
|
+
else()
|
|
39
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
40
|
+
endif()
|
|
41
|
+
else()
|
|
42
|
+
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
|
|
43
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
44
|
+
else()
|
|
45
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
46
|
+
endif()
|
|
47
|
+
|
|
48
|
+
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
49
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
|
50
|
+
endif()
|
|
51
|
+
endif()
|
|
52
|
+
endif()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
|
56
|
+
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
|
|
57
|
+
return()
|
|
58
|
+
endif()
|
|
59
|
+
|
|
60
|
+
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
|
61
|
+
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
|
|
62
|
+
math(EXPR installedBits "8 * 8")
|
|
63
|
+
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
|
64
|
+
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
65
|
+
endif()
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# libaec-config.cmake
|
|
2
|
+
# -------------------
|
|
3
|
+
#
|
|
4
|
+
# Finds the AEC library.
|
|
5
|
+
#
|
|
6
|
+
# Static vs. shared
|
|
7
|
+
# -----------------
|
|
8
|
+
# To make use of the static library instead of the shared one, one
|
|
9
|
+
# needs to set the variable libaec_USE_STATIC_LIBS to ON before
|
|
10
|
+
# calling find_package.
|
|
11
|
+
# Example:
|
|
12
|
+
# set(libaec_USE_STATIC_LIBS ON)
|
|
13
|
+
# find_package(libaec CONFIG)
|
|
14
|
+
#
|
|
15
|
+
# This will define the following variables:
|
|
16
|
+
#
|
|
17
|
+
# libaec_FOUND - True if the system has the AEC library.
|
|
18
|
+
# libaec_VERSION - The version of the AEC library which was found.
|
|
19
|
+
# SZIP_FOUND - True if the system has the SZIP library.
|
|
20
|
+
# SZIP_VERSION - The version of the SZIP library which was found.
|
|
21
|
+
# SZIP_LIBRARIES - All the required libraries to make use of SZIP.
|
|
22
|
+
# SZIP_INCLUDE_DIR - SZIP include directory.
|
|
23
|
+
#
|
|
24
|
+
# and the following imported targets:
|
|
25
|
+
#
|
|
26
|
+
# libaec::aec-shared - The shared AEC library target (if it was built).
|
|
27
|
+
# libaec::sz-shared - The shared SZIP compatible version of the AEC library
|
|
28
|
+
# (if it was built).
|
|
29
|
+
# libaec::aec-static - The static AEC library target (if it was built).
|
|
30
|
+
# libaec::sz-static - The static SZIP compatible version of the AEC library
|
|
31
|
+
# (if it was built).
|
|
32
|
+
# libaec::aec - The (shared or static) AEC library target (according
|
|
33
|
+
# to the value of libaec_USE_STATIC_LIBS).
|
|
34
|
+
# libaec::sz - The (shared or static) SZIP compatible version of the
|
|
35
|
+
# AEC library (according to the value of
|
|
36
|
+
# libaec_USE_STATIC_LIBS).
|
|
37
|
+
|
|
38
|
+
# Alias static or shared targets depending on libaec_USE_STATIC_LIBS
|
|
39
|
+
if(libaec_USE_STATIC_LIBS)
|
|
40
|
+
include(${CMAKE_CURRENT_LIST_DIR}/libaec_static-targets.cmake)
|
|
41
|
+
if(TARGET libaec::aec-static AND TARGET libaec::sz-static)
|
|
42
|
+
if(NOT TARGET libaec::aec AND NOT TARGET libaec::sz)
|
|
43
|
+
add_library(libaec::aec ALIAS libaec::aec-static)
|
|
44
|
+
add_library(libaec::sz ALIAS libaec::sz-static)
|
|
45
|
+
endif()
|
|
46
|
+
else()
|
|
47
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE
|
|
48
|
+
"STATIC versions of libaec::aec and libaec::sz not found.")
|
|
49
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
|
50
|
+
endif()
|
|
51
|
+
else()
|
|
52
|
+
include(${CMAKE_CURRENT_LIST_DIR}/libaec_shared-targets.cmake)
|
|
53
|
+
|
|
54
|
+
if(TARGET libaec::aec-shared AND TARGET libaec::sz-shared)
|
|
55
|
+
if(NOT TARGET libaec::aec AND NOT TARGET libaec::sz)
|
|
56
|
+
add_library(libaec::aec ALIAS libaec::aec-shared)
|
|
57
|
+
add_library(libaec::sz ALIAS libaec::sz-shared)
|
|
58
|
+
endif()
|
|
59
|
+
else()
|
|
60
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_NOT_FOUND_MESSAGE
|
|
61
|
+
"SHARED versions of libaec::aec and libaec::sz not found.")
|
|
62
|
+
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
|
63
|
+
endif()
|
|
64
|
+
endif()
|
|
65
|
+
|
|
66
|
+
if(TARGET libaec::sz)
|
|
67
|
+
get_target_property(SZIP_INCLUDE_DIR
|
|
68
|
+
libaec::sz INTERFACE_INCLUDE_DIRECTORIES)
|
|
69
|
+
if(SZIP_INCLUDE_DIR)
|
|
70
|
+
# This might be a list. The first item is the directory with the
|
|
71
|
+
# "main" header.
|
|
72
|
+
list(GET SZIP_INCLUDE_DIR 0 SZIP_INCLUDE_DIR)
|
|
73
|
+
endif()
|
|
74
|
+
|
|
75
|
+
# Loop over configurations for libaec::sz and set SZIP_LIBRARIES to
|
|
76
|
+
# the first configuration with an existing file for
|
|
77
|
+
# IMPORTED_IMPLIB_<CONFIG> or, if that does not exist, a file for
|
|
78
|
+
# IMPORTED_LOCATION_<CONFIG>.
|
|
79
|
+
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
|
80
|
+
if(_isMultiConfig)
|
|
81
|
+
# For multi-configuration generators (e.g., Visual Studio), prefer
|
|
82
|
+
# those configurations.
|
|
83
|
+
string(TOUPPER "${CMAKE_CONFIGURATION_TYPES}" _build_types)
|
|
84
|
+
else()
|
|
85
|
+
# For single-configuration generators, prefer the current
|
|
86
|
+
# configuration.
|
|
87
|
+
string(TOUPPER "${CMAKE_BUILD_TYPE}" _build_types)
|
|
88
|
+
endif()
|
|
89
|
+
get_target_property(_imported_configs libaec::sz IMPORTED_CONFIGURATIONS)
|
|
90
|
+
list(APPEND _build_types ${_imported_configs})
|
|
91
|
+
list(REMOVE_DUPLICATES _build_types)
|
|
92
|
+
|
|
93
|
+
foreach(_config ${_build_types})
|
|
94
|
+
get_target_property(_library_chk
|
|
95
|
+
libaec::sz "IMPORTED_IMPLIB_${_config}")
|
|
96
|
+
if(EXISTS "${_library_chk}")
|
|
97
|
+
set(SZIP_LIBRARIES "${_library_chk}")
|
|
98
|
+
break()
|
|
99
|
+
else()
|
|
100
|
+
get_target_property(_lib_check
|
|
101
|
+
libaec::sz "IMPORTED_LOCATION_${_config}")
|
|
102
|
+
if(EXISTS "${_lib_check}")
|
|
103
|
+
set(SZIP_LIBRARIES "${_lib_check}")
|
|
104
|
+
break()
|
|
105
|
+
endif()
|
|
106
|
+
endif()
|
|
107
|
+
endforeach()
|
|
108
|
+
|
|
109
|
+
set(SZIP_VERSION "2.0.1")
|
|
110
|
+
set(SZIP_FOUND "TRUE")
|
|
111
|
+
endif()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#----------------------------------------------------------------
|
|
2
|
+
# Generated CMake target import file for configuration "RelWithDebInfo".
|
|
3
|
+
#----------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
# Commands may need to know the format version.
|
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
7
|
+
|
|
8
|
+
# Import target "libaec::aec-shared" for configuration "RelWithDebInfo"
|
|
9
|
+
set_property(TARGET libaec::aec-shared APPEND PROPERTY IMPORTED_CONFIGURATIONS RELWITHDEBINFO)
|
|
10
|
+
set_target_properties(libaec::aec-shared PROPERTIES
|
|
11
|
+
IMPORTED_LOCATION_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libaec.0.1.6.dylib"
|
|
12
|
+
IMPORTED_SONAME_RELWITHDEBINFO "@rpath/libaec.0.dylib"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
list(APPEND _cmake_import_check_targets libaec::aec-shared )
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_libaec::aec-shared "${_IMPORT_PREFIX}/lib/libaec.0.1.6.dylib" )
|
|
17
|
+
|
|
18
|
+
# Import target "libaec::sz-shared" for configuration "RelWithDebInfo"
|
|
19
|
+
set_property(TARGET libaec::sz-shared APPEND PROPERTY IMPORTED_CONFIGURATIONS RELWITHDEBINFO)
|
|
20
|
+
set_target_properties(libaec::sz-shared PROPERTIES
|
|
21
|
+
IMPORTED_LOCATION_RELWITHDEBINFO "${_IMPORT_PREFIX}/lib/libsz.2.0.1.dylib"
|
|
22
|
+
IMPORTED_SONAME_RELWITHDEBINFO "@rpath/libsz.2.dylib"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
list(APPEND _cmake_import_check_targets libaec::sz-shared )
|
|
26
|
+
list(APPEND _cmake_import_check_files_for_libaec::sz-shared "${_IMPORT_PREFIX}/lib/libsz.2.0.1.dylib" )
|
|
27
|
+
|
|
28
|
+
# Commands beyond this point should not need to know the version.
|
|
29
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 3.0.0 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "3.0.0")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 3.0.0 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 3.0.0...4.2)
|
|
11
|
+
#----------------------------------------------------------------
|
|
12
|
+
# Generated CMake target import file.
|
|
13
|
+
#----------------------------------------------------------------
|
|
14
|
+
|
|
15
|
+
# Commands may need to know the format version.
|
|
16
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
17
|
+
|
|
18
|
+
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
|
|
19
|
+
set(_cmake_targets_defined "")
|
|
20
|
+
set(_cmake_targets_not_defined "")
|
|
21
|
+
set(_cmake_expected_targets "")
|
|
22
|
+
foreach(_cmake_expected_target IN ITEMS libaec::aec-shared-objects libaec::sz-shared-objects libaec::aec-shared libaec::sz-shared)
|
|
23
|
+
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
|
|
24
|
+
if(TARGET "${_cmake_expected_target}")
|
|
25
|
+
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
|
|
26
|
+
else()
|
|
27
|
+
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
|
|
28
|
+
endif()
|
|
29
|
+
endforeach()
|
|
30
|
+
unset(_cmake_expected_target)
|
|
31
|
+
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
|
|
32
|
+
unset(_cmake_targets_defined)
|
|
33
|
+
unset(_cmake_targets_not_defined)
|
|
34
|
+
unset(_cmake_expected_targets)
|
|
35
|
+
unset(CMAKE_IMPORT_FILE_VERSION)
|
|
36
|
+
cmake_policy(POP)
|
|
37
|
+
return()
|
|
38
|
+
endif()
|
|
39
|
+
if(NOT _cmake_targets_defined STREQUAL "")
|
|
40
|
+
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
|
|
41
|
+
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
|
|
42
|
+
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
|
|
43
|
+
endif()
|
|
44
|
+
unset(_cmake_targets_defined)
|
|
45
|
+
unset(_cmake_targets_not_defined)
|
|
46
|
+
unset(_cmake_expected_targets)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Compute the installation prefix relative to this file.
|
|
50
|
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
51
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
52
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
53
|
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
54
|
+
if(_IMPORT_PREFIX STREQUAL "/")
|
|
55
|
+
set(_IMPORT_PREFIX "")
|
|
56
|
+
endif()
|
|
57
|
+
|
|
58
|
+
# Create imported target libaec::aec-shared-objects
|
|
59
|
+
add_library(libaec::aec-shared-objects INTERFACE IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(libaec::aec-shared-objects PROPERTIES
|
|
62
|
+
INTERFACE_COMPILE_DEFINITIONS "LIBAEC_SHARED"
|
|
63
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
# Create imported target libaec::sz-shared-objects
|
|
67
|
+
add_library(libaec::sz-shared-objects INTERFACE IMPORTED)
|
|
68
|
+
|
|
69
|
+
set_target_properties(libaec::sz-shared-objects PROPERTIES
|
|
70
|
+
INTERFACE_COMPILE_DEFINITIONS "LIBAEC_SHARED"
|
|
71
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
# Create imported target libaec::aec-shared
|
|
75
|
+
add_library(libaec::aec-shared SHARED IMPORTED)
|
|
76
|
+
|
|
77
|
+
set_target_properties(libaec::aec-shared PROPERTIES
|
|
78
|
+
INTERFACE_LINK_LIBRARIES "libaec::aec-shared-objects"
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
# Create imported target libaec::sz-shared
|
|
82
|
+
add_library(libaec::sz-shared SHARED IMPORTED)
|
|
83
|
+
|
|
84
|
+
set_target_properties(libaec::sz-shared PROPERTIES
|
|
85
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
86
|
+
INTERFACE_LINK_LIBRARIES "libaec::sz-shared-objects"
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
# Load information for each installed configuration.
|
|
90
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/libaec_shared-targets-*.cmake")
|
|
91
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
92
|
+
include("${_cmake_config_file}")
|
|
93
|
+
endforeach()
|
|
94
|
+
unset(_cmake_config_file)
|
|
95
|
+
unset(_cmake_config_files)
|
|
96
|
+
|
|
97
|
+
# Cleanup temporary variables.
|
|
98
|
+
set(_IMPORT_PREFIX)
|
|
99
|
+
|
|
100
|
+
# Loop over all imported files and verify that they actually exist
|
|
101
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
102
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
103
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
104
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
105
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
106
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
107
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
108
|
+
\"${_cmake_file}\"
|
|
109
|
+
but this file does not exist. Possible reasons include:
|
|
110
|
+
* The file was deleted, renamed, or moved to another location.
|
|
111
|
+
* An install or uninstall procedure did not complete successfully.
|
|
112
|
+
* The installation package was faulty and contained
|
|
113
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
114
|
+
but not all the files it references.
|
|
115
|
+
")
|
|
116
|
+
endif()
|
|
117
|
+
endforeach()
|
|
118
|
+
endif()
|
|
119
|
+
unset(_cmake_file)
|
|
120
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
121
|
+
endforeach()
|
|
122
|
+
unset(_cmake_target)
|
|
123
|
+
unset(_cmake_import_check_targets)
|
|
124
|
+
|
|
125
|
+
# This file does not depend on other imported targets which have
|
|
126
|
+
# been exported from the same project but in a separate export set.
|
|
127
|
+
|
|
128
|
+
# Commands beyond this point should not need to know the version.
|
|
129
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
130
|
+
cmake_policy(POP)
|