@crossbind/port-expat-linux 0.0.0-bootstrap.0 → 2.0.0-beta.63
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.
- package/LICENSE +21 -0
- package/README.md +11 -3
- package/crossbind.build.js +1 -0
- package/crossbind.config.js +5 -0
- package/dist/prebuilt/CMakeLists.txt +58 -0
- package/dist/prebuilt/linux-arm64-mt-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/linux-arm64-mt-release/crossbind-source.fingerprint +1 -0
- package/dist/prebuilt/linux-arm64-mt-release/include/expat.h +1156 -0
- package/dist/prebuilt/linux-arm64-mt-release/include/expat_config.h +118 -0
- package/dist/prebuilt/linux-arm64-mt-release/include/expat_external.h +183 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-config-version.cmake +65 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-config.cmake +99 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat-release.cmake +19 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/cmake/expat-2.9.0/expat.cmake +107 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/libexpat.a +0 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib/pkgconfig/expat.pc +13 -0
- package/dist/prebuilt/linux-arm64-mt-release/lib.sources +1 -0
- package/dist/prebuilt/linux-arm64-mt-release/share/doc/expat/AUTHORS +10 -0
- package/dist/prebuilt/linux-arm64-mt-release/share/doc/expat/changelog +2389 -0
- package/dist/prebuilt/linux-x64-mt-release/crossbind-emccflags.fingerprint +1 -0
- package/dist/prebuilt/linux-x64-mt-release/crossbind-source.fingerprint +1 -0
- package/dist/prebuilt/linux-x64-mt-release/include/expat.h +1156 -0
- package/dist/prebuilt/linux-x64-mt-release/include/expat_config.h +118 -0
- package/dist/prebuilt/linux-x64-mt-release/include/expat_external.h +183 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-config-version.cmake +65 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-config.cmake +99 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat-release.cmake +19 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/cmake/expat-2.9.0/expat.cmake +107 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/libexpat.a +0 -0
- package/dist/prebuilt/linux-x64-mt-release/lib/pkgconfig/expat.pc +13 -0
- package/dist/prebuilt/linux-x64-mt-release/lib.sources +1 -0
- package/dist/prebuilt/linux-x64-mt-release/share/doc/expat/AUTHORS +10 -0
- package/dist/prebuilt/linux-x64-mt-release/share/doc/expat/changelog +2389 -0
- package/package.json +32 -6
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* expat_config.h.cmake. Based upon generated expat_config.h.in. */
|
|
2
|
+
|
|
3
|
+
#ifndef EXPAT_CONFIG_H
|
|
4
|
+
# define EXPAT_CONFIG_H 1
|
|
5
|
+
|
|
6
|
+
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
|
|
7
|
+
#define BYTEORDER 1234
|
|
8
|
+
|
|
9
|
+
/* Define to 1 if you have the `arc4random' function. */
|
|
10
|
+
/* #undef HAVE_ARC4RANDOM */
|
|
11
|
+
|
|
12
|
+
/* Define to 1 if you have the `arc4random_buf' function. */
|
|
13
|
+
/* #undef HAVE_ARC4RANDOM_BUF */
|
|
14
|
+
|
|
15
|
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
16
|
+
#define HAVE_DLFCN_H
|
|
17
|
+
|
|
18
|
+
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
19
|
+
#define HAVE_FCNTL_H
|
|
20
|
+
|
|
21
|
+
/* Define to 1 if you have the `getpagesize' function. */
|
|
22
|
+
/* #undef HAVE_GETPAGESIZE */
|
|
23
|
+
|
|
24
|
+
/* Define to 1 if you have the `getrandom' function. */
|
|
25
|
+
#define HAVE_GETRANDOM
|
|
26
|
+
|
|
27
|
+
/* Define to 1 if you have the `getentropy' function. */
|
|
28
|
+
#define HAVE_GETENTROPY
|
|
29
|
+
|
|
30
|
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
31
|
+
#define HAVE_INTTYPES_H
|
|
32
|
+
|
|
33
|
+
/* Define to 1 if you have the <memory.h> header file. */
|
|
34
|
+
#define HAVE_MEMORY_H
|
|
35
|
+
|
|
36
|
+
/* Define to 1 if you have a working `mmap' system call. */
|
|
37
|
+
#define HAVE_MMAP
|
|
38
|
+
|
|
39
|
+
/* Define to 1 if you have the <stdint.h> header file. */
|
|
40
|
+
#define HAVE_STDINT_H
|
|
41
|
+
|
|
42
|
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
43
|
+
#define HAVE_STDLIB_H
|
|
44
|
+
|
|
45
|
+
/* Define to 1 if you have the <strings.h> header file. */
|
|
46
|
+
#define HAVE_STRINGS_H
|
|
47
|
+
|
|
48
|
+
/* Define to 1 if you have the <string.h> header file. */
|
|
49
|
+
#define HAVE_STRING_H
|
|
50
|
+
|
|
51
|
+
/* Define to 1 if you have `syscall' and `SYS_getrandom'. */
|
|
52
|
+
#define HAVE_SYSCALL_GETRANDOM
|
|
53
|
+
|
|
54
|
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
55
|
+
#define HAVE_SYS_STAT_H
|
|
56
|
+
|
|
57
|
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
58
|
+
#define HAVE_SYS_TYPES_H
|
|
59
|
+
|
|
60
|
+
/* Define to 1 if you have the <unistd.h> header file. */
|
|
61
|
+
#define HAVE_UNISTD_H
|
|
62
|
+
|
|
63
|
+
/* Name of package */
|
|
64
|
+
# define PACKAGE "expat"
|
|
65
|
+
|
|
66
|
+
/* Define to the address where bug reports for this package should be sent. */
|
|
67
|
+
#define PACKAGE_BUGREPORT "https://github.com/libexpat/libexpat/issues"
|
|
68
|
+
|
|
69
|
+
/* Define to the full name of this package. */
|
|
70
|
+
#define PACKAGE_NAME "expat"
|
|
71
|
+
|
|
72
|
+
/* Define to the full name and version of this package. */
|
|
73
|
+
#define PACKAGE_STRING "expat 2.9.0"
|
|
74
|
+
|
|
75
|
+
/* Define to the one symbol short name of this package. */
|
|
76
|
+
#define PACKAGE_TARNAME "expat"
|
|
77
|
+
|
|
78
|
+
/* Define to the home page for this package. */
|
|
79
|
+
# define PACKAGE_URL ""
|
|
80
|
+
|
|
81
|
+
/* Define to the version of this package. */
|
|
82
|
+
#define PACKAGE_VERSION "2.9.0"
|
|
83
|
+
|
|
84
|
+
/* Define to 1 if you have the ANSI C header files. */
|
|
85
|
+
# ifndef STDC_HEADERS
|
|
86
|
+
#define STDC_HEADERS
|
|
87
|
+
# endif
|
|
88
|
+
|
|
89
|
+
/* whether byteorder is bigendian */
|
|
90
|
+
/* #undef WORDS_BIGENDIAN */
|
|
91
|
+
|
|
92
|
+
/* Define to specify how much context to retain around the current parse
|
|
93
|
+
point, 0 to disable. */
|
|
94
|
+
# define XML_CONTEXT_BYTES 1024
|
|
95
|
+
|
|
96
|
+
# if ! defined(_WIN32)
|
|
97
|
+
/* Define to include code reading entropy from `/dev/urandom'. */
|
|
98
|
+
/* #undef XML_DEV_URANDOM */
|
|
99
|
+
# endif
|
|
100
|
+
|
|
101
|
+
/* Define to make parameter entity parsing functionality available. */
|
|
102
|
+
#define XML_DTD
|
|
103
|
+
|
|
104
|
+
/* Define as 1/0 to enable/disable support for general entities. */
|
|
105
|
+
# define XML_GE 1
|
|
106
|
+
|
|
107
|
+
/* Define to make XML Namespaces functionality available. */
|
|
108
|
+
#define XML_NS
|
|
109
|
+
|
|
110
|
+
/* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
|
|
111
|
+
# ifdef _MSC_VER
|
|
112
|
+
# define __func__ __FUNCTION__
|
|
113
|
+
# endif
|
|
114
|
+
|
|
115
|
+
/* Define to `long' if <sys/types.h> does not define. */
|
|
116
|
+
/* #undef off_t */
|
|
117
|
+
|
|
118
|
+
#endif // ndef EXPAT_CONFIG_H
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/*
|
|
2
|
+
__ __ _
|
|
3
|
+
___\ \/ /_ __ __ _| |_
|
|
4
|
+
/ _ \\ /| '_ \ / _` | __|
|
|
5
|
+
| __// \| |_) | (_| | |_
|
|
6
|
+
\___/_/\_\ .__/ \__,_|\__|
|
|
7
|
+
|_| XML parser
|
|
8
|
+
|
|
9
|
+
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
|
|
10
|
+
Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
|
|
11
|
+
Copyright (c) 2000-2004 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
|
|
12
|
+
Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
|
|
13
|
+
Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net>
|
|
14
|
+
Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
|
|
15
|
+
Copyright (c) 2016-2025 Sebastian Pipping <sebastian@pipping.org>
|
|
16
|
+
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
|
|
17
|
+
Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
|
|
18
|
+
Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
|
|
19
|
+
Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
|
|
20
|
+
Licensed under the MIT license:
|
|
21
|
+
|
|
22
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
23
|
+
a copy of this software and associated documentation files (the
|
|
24
|
+
"Software"), to deal in the Software without restriction, including
|
|
25
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
26
|
+
distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
27
|
+
persons to whom the Software is furnished to do so, subject to the
|
|
28
|
+
following conditions:
|
|
29
|
+
|
|
30
|
+
The above copyright notice and this permission notice shall be included
|
|
31
|
+
in all copies or substantial portions of the Software.
|
|
32
|
+
|
|
33
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
34
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
35
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
36
|
+
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
37
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
38
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
39
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
40
|
+
|
|
41
|
+
SPDX-License-Identifier: MIT
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
#ifndef Expat_External_INCLUDED
|
|
45
|
+
# define Expat_External_INCLUDED 1
|
|
46
|
+
|
|
47
|
+
/* External API definitions */
|
|
48
|
+
|
|
49
|
+
/* Expat tries very hard to make the API boundary very specifically
|
|
50
|
+
defined. There are two macros defined to control this boundary;
|
|
51
|
+
each of these can be defined before including this header to
|
|
52
|
+
achieve some different behavior, but doing so is not recommended or
|
|
53
|
+
tested frequently.
|
|
54
|
+
|
|
55
|
+
XMLCALL - The calling convention to use for all calls across the
|
|
56
|
+
"library boundary." This will default to cdecl, and
|
|
57
|
+
try really hard to tell the compiler that's what we
|
|
58
|
+
want.
|
|
59
|
+
|
|
60
|
+
XMLIMPORT - Whatever magic is needed to note that a function is
|
|
61
|
+
to be imported from a dynamically loaded library
|
|
62
|
+
(.dll, .so, or .sl, depending on your platform).
|
|
63
|
+
|
|
64
|
+
The XMLCALL macro was added in Expat 1.95.7. The only one which is
|
|
65
|
+
expected to be directly useful in client code is XMLCALL.
|
|
66
|
+
|
|
67
|
+
Note that on at least some Unix versions, the Expat library must be
|
|
68
|
+
compiled with the cdecl calling convention as the default since
|
|
69
|
+
system headers may assume the cdecl convention.
|
|
70
|
+
*/
|
|
71
|
+
# ifndef XMLCALL
|
|
72
|
+
# if defined(_MSC_VER)
|
|
73
|
+
# define XMLCALL __cdecl
|
|
74
|
+
# elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
|
|
75
|
+
# define XMLCALL __attribute__((cdecl))
|
|
76
|
+
# else
|
|
77
|
+
/* For any platform which uses this definition and supports more than
|
|
78
|
+
one calling convention, we need to extend this definition to
|
|
79
|
+
declare the convention used on that platform, if it's possible to
|
|
80
|
+
do so.
|
|
81
|
+
|
|
82
|
+
If this is the case for your platform, please file a bug report
|
|
83
|
+
with information on how to identify your platform via the C
|
|
84
|
+
pre-processor and how to specify the same calling convention as the
|
|
85
|
+
platform's malloc() implementation.
|
|
86
|
+
*/
|
|
87
|
+
# define XMLCALL
|
|
88
|
+
# endif
|
|
89
|
+
# endif /* not defined XMLCALL */
|
|
90
|
+
|
|
91
|
+
# if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
|
|
92
|
+
# ifndef XML_BUILDING_EXPAT
|
|
93
|
+
/* using Expat from an application */
|
|
94
|
+
|
|
95
|
+
# if defined(_MSC_VER) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
|
|
96
|
+
# define XMLIMPORT __declspec(dllimport)
|
|
97
|
+
# endif
|
|
98
|
+
|
|
99
|
+
# endif
|
|
100
|
+
# endif /* not defined XML_STATIC */
|
|
101
|
+
|
|
102
|
+
# ifndef XML_ENABLE_VISIBILITY
|
|
103
|
+
# define XML_ENABLE_VISIBILITY 0
|
|
104
|
+
# endif
|
|
105
|
+
|
|
106
|
+
# if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
|
|
107
|
+
# define XMLIMPORT __attribute__((visibility("default")))
|
|
108
|
+
# endif
|
|
109
|
+
|
|
110
|
+
/* If we didn't define it above, define it away: */
|
|
111
|
+
# ifndef XMLIMPORT
|
|
112
|
+
# define XMLIMPORT
|
|
113
|
+
# endif
|
|
114
|
+
|
|
115
|
+
# if defined(__GNUC__) \
|
|
116
|
+
&& (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
|
|
117
|
+
# define XML_ATTR_MALLOC __attribute__((__malloc__))
|
|
118
|
+
# else
|
|
119
|
+
# define XML_ATTR_MALLOC
|
|
120
|
+
# endif
|
|
121
|
+
|
|
122
|
+
# if defined(__GNUC__) \
|
|
123
|
+
&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
|
|
124
|
+
# define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
|
|
125
|
+
# else
|
|
126
|
+
# define XML_ATTR_ALLOC_SIZE(x)
|
|
127
|
+
# endif
|
|
128
|
+
|
|
129
|
+
/* Marks a function that Expat still provides but that callers should move off
|
|
130
|
+
of. */
|
|
131
|
+
# if defined(__clang__) || defined(__GNUC__)
|
|
132
|
+
# define XML_ATTR_DEPRECATED(message) \
|
|
133
|
+
__attribute__((__deprecated__(message)))
|
|
134
|
+
# elif defined(_MSC_VER)
|
|
135
|
+
# define XML_ATTR_DEPRECATED(message) __declspec(deprecated(message))
|
|
136
|
+
# else
|
|
137
|
+
# define XML_ATTR_DEPRECATED(message) // empty i.e. no deprecation
|
|
138
|
+
# endif
|
|
139
|
+
|
|
140
|
+
# define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
|
|
141
|
+
|
|
142
|
+
# ifdef __cplusplus
|
|
143
|
+
extern "C" {
|
|
144
|
+
# endif
|
|
145
|
+
|
|
146
|
+
# ifdef XML_UNICODE_WCHAR_T
|
|
147
|
+
# ifndef XML_UNICODE
|
|
148
|
+
# define XML_UNICODE
|
|
149
|
+
# endif
|
|
150
|
+
# if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
|
|
151
|
+
# error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
|
|
152
|
+
# endif
|
|
153
|
+
# endif
|
|
154
|
+
|
|
155
|
+
# ifdef XML_UNICODE /* Information is UTF-16 encoded. */
|
|
156
|
+
# ifdef XML_UNICODE_WCHAR_T
|
|
157
|
+
typedef wchar_t XML_Char;
|
|
158
|
+
typedef wchar_t XML_LChar;
|
|
159
|
+
# else
|
|
160
|
+
typedef unsigned short XML_Char;
|
|
161
|
+
typedef char XML_LChar;
|
|
162
|
+
# endif /* XML_UNICODE_WCHAR_T */
|
|
163
|
+
# else /* Information is UTF-8 encoded. */
|
|
164
|
+
typedef char XML_Char;
|
|
165
|
+
typedef char XML_LChar;
|
|
166
|
+
# endif /* XML_UNICODE */
|
|
167
|
+
|
|
168
|
+
# ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
|
|
169
|
+
# if defined(__clang__) || defined(__GNUC__)
|
|
170
|
+
# warning Macro XML_LARGE_SIZE is deprecated, please use the 64bit location API functions instead.
|
|
171
|
+
# endif
|
|
172
|
+
typedef long long XML_Index;
|
|
173
|
+
typedef unsigned long long XML_Size;
|
|
174
|
+
# else
|
|
175
|
+
typedef long XML_Index;
|
|
176
|
+
typedef unsigned long XML_Size;
|
|
177
|
+
# endif /* XML_LARGE_SIZE */
|
|
178
|
+
|
|
179
|
+
# ifdef __cplusplus
|
|
180
|
+
}
|
|
181
|
+
# endif
|
|
182
|
+
|
|
183
|
+
#endif /* not Expat_External_INCLUDED */
|
|
@@ -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 "2.9.0")
|
|
13
|
+
|
|
14
|
+
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
15
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
16
|
+
else()
|
|
17
|
+
|
|
18
|
+
if("2.9.0" 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 "2.9.0")
|
|
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,99 @@
|
|
|
1
|
+
# __ __ _
|
|
2
|
+
# ___\ \/ /_ __ __ _| |_
|
|
3
|
+
# / _ \\ /| '_ \ / _` | __|
|
|
4
|
+
# | __// \| |_) | (_| | |_
|
|
5
|
+
# \___/_/\_\ .__/ \__,_|\__|
|
|
6
|
+
# |_| XML parser
|
|
7
|
+
#
|
|
8
|
+
# Copyright (c) 2019 Expat development team
|
|
9
|
+
# Licensed under the MIT license:
|
|
10
|
+
#
|
|
11
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
|
12
|
+
# a copy of this software and associated documentation files (the
|
|
13
|
+
# "Software"), to deal in the Software without restriction, including
|
|
14
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
|
15
|
+
# distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
16
|
+
# persons to whom the Software is furnished to do so, subject to the
|
|
17
|
+
# following conditions:
|
|
18
|
+
#
|
|
19
|
+
# The above copyright notice and this permission notice shall be included
|
|
20
|
+
# in all copies or substantial portions of the Software.
|
|
21
|
+
#
|
|
22
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
23
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
24
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
25
|
+
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
26
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
27
|
+
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
28
|
+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
29
|
+
#
|
|
30
|
+
if(NOT _expat_config_included)
|
|
31
|
+
# Protect against multiple inclusion
|
|
32
|
+
set(_expat_config_included TRUE)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake")
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
|
39
|
+
####### Any changes to this file will be overwritten by the next CMake run ####
|
|
40
|
+
####### The input file was expat-config.cmake.in ########
|
|
41
|
+
|
|
42
|
+
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
|
|
43
|
+
|
|
44
|
+
macro(set_and_check _var _file)
|
|
45
|
+
set(${_var} "${_file}")
|
|
46
|
+
if(NOT EXISTS "${_file}")
|
|
47
|
+
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
|
48
|
+
endif()
|
|
49
|
+
endmacro()
|
|
50
|
+
|
|
51
|
+
macro(check_required_components _NAME)
|
|
52
|
+
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
|
53
|
+
if(NOT ${_NAME}_${comp}_FOUND)
|
|
54
|
+
if(${_NAME}_FIND_REQUIRED_${comp})
|
|
55
|
+
set(${_NAME}_FOUND FALSE)
|
|
56
|
+
endif()
|
|
57
|
+
endif()
|
|
58
|
+
endforeach()
|
|
59
|
+
endmacro()
|
|
60
|
+
|
|
61
|
+
####################################################################################
|
|
62
|
+
|
|
63
|
+
#
|
|
64
|
+
# Supported components
|
|
65
|
+
#
|
|
66
|
+
macro(expat_register_component _NAME _AVAILABE)
|
|
67
|
+
set(expat_${_NAME}_FOUND ${_AVAILABE})
|
|
68
|
+
endmacro()
|
|
69
|
+
|
|
70
|
+
expat_register_component(attr_info OFF)
|
|
71
|
+
expat_register_component(dtd ON)
|
|
72
|
+
expat_register_component(large_size OFF)
|
|
73
|
+
expat_register_component(min_size OFF)
|
|
74
|
+
expat_register_component(ns ON)
|
|
75
|
+
|
|
76
|
+
if(1024)
|
|
77
|
+
expat_register_component(context_bytes ON)
|
|
78
|
+
else()
|
|
79
|
+
expat_register_component(context_bytes OFF)
|
|
80
|
+
endif()
|
|
81
|
+
|
|
82
|
+
if("char" STREQUAL "char")
|
|
83
|
+
expat_register_component(char ON)
|
|
84
|
+
expat_register_component(ushort OFF)
|
|
85
|
+
expat_register_component(wchar_t OFF)
|
|
86
|
+
elseif("char" STREQUAL "ushort")
|
|
87
|
+
expat_register_component(char OFF)
|
|
88
|
+
expat_register_component(ushort ON)
|
|
89
|
+
expat_register_component(wchar_t OFF)
|
|
90
|
+
elseif("char" STREQUAL "wchar_t")
|
|
91
|
+
expat_register_component(char OFF)
|
|
92
|
+
expat_register_component(ushort OFF)
|
|
93
|
+
expat_register_component(wchar_t ON)
|
|
94
|
+
endif()
|
|
95
|
+
|
|
96
|
+
check_required_components(expat)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
endif(NOT _expat_config_included)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#----------------------------------------------------------------
|
|
2
|
+
# Generated CMake target import file for configuration "Release".
|
|
3
|
+
#----------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
# Commands may need to know the format version.
|
|
6
|
+
set(CMAKE_IMPORT_FILE_VERSION 1)
|
|
7
|
+
|
|
8
|
+
# Import target "expat::expat" for configuration "Release"
|
|
9
|
+
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
10
|
+
set_target_properties(expat::expat PROPERTIES
|
|
11
|
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
|
12
|
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/lib/libexpat.a"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
list(APPEND _cmake_import_check_targets expat::expat )
|
|
16
|
+
list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/lib/libexpat.a" )
|
|
17
|
+
|
|
18
|
+
# Commands beyond this point should not need to know the version.
|
|
19
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Generated by CMake
|
|
2
|
+
|
|
3
|
+
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
|
|
4
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
5
|
+
endif()
|
|
6
|
+
if(CMAKE_VERSION VERSION_LESS "2.8.12")
|
|
7
|
+
message(FATAL_ERROR "CMake >= 2.8.12 required")
|
|
8
|
+
endif()
|
|
9
|
+
cmake_policy(PUSH)
|
|
10
|
+
cmake_policy(VERSION 2.8.12...3.29)
|
|
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 expat::expat)
|
|
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 expat::expat
|
|
59
|
+
add_library(expat::expat STATIC IMPORTED)
|
|
60
|
+
|
|
61
|
+
set_target_properties(expat::expat PROPERTIES
|
|
62
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
|
63
|
+
INTERFACE_LINK_LIBRARIES "m"
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
# Load information for each installed configuration.
|
|
67
|
+
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/expat-*.cmake")
|
|
68
|
+
foreach(_cmake_config_file IN LISTS _cmake_config_files)
|
|
69
|
+
include("${_cmake_config_file}")
|
|
70
|
+
endforeach()
|
|
71
|
+
unset(_cmake_config_file)
|
|
72
|
+
unset(_cmake_config_files)
|
|
73
|
+
|
|
74
|
+
# Cleanup temporary variables.
|
|
75
|
+
set(_IMPORT_PREFIX)
|
|
76
|
+
|
|
77
|
+
# Loop over all imported files and verify that they actually exist
|
|
78
|
+
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
|
|
79
|
+
if(CMAKE_VERSION VERSION_LESS "3.28"
|
|
80
|
+
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
|
|
81
|
+
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
|
|
82
|
+
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
|
|
83
|
+
if(NOT EXISTS "${_cmake_file}")
|
|
84
|
+
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
|
|
85
|
+
\"${_cmake_file}\"
|
|
86
|
+
but this file does not exist. Possible reasons include:
|
|
87
|
+
* The file was deleted, renamed, or moved to another location.
|
|
88
|
+
* An install or uninstall procedure did not complete successfully.
|
|
89
|
+
* The installation package was faulty and contained
|
|
90
|
+
\"${CMAKE_CURRENT_LIST_FILE}\"
|
|
91
|
+
but not all the files it references.
|
|
92
|
+
")
|
|
93
|
+
endif()
|
|
94
|
+
endforeach()
|
|
95
|
+
endif()
|
|
96
|
+
unset(_cmake_file)
|
|
97
|
+
unset("_cmake_import_check_files_for_${_cmake_target}")
|
|
98
|
+
endforeach()
|
|
99
|
+
unset(_cmake_target)
|
|
100
|
+
unset(_cmake_import_check_targets)
|
|
101
|
+
|
|
102
|
+
# This file does not depend on other imported targets which have
|
|
103
|
+
# been exported from the same project but in a separate export set.
|
|
104
|
+
|
|
105
|
+
# Commands beyond this point should not need to know the version.
|
|
106
|
+
set(CMAKE_IMPORT_FILE_VERSION)
|
|
107
|
+
cmake_policy(POP)
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
prefix=${pcfiledir}/../..
|
|
2
|
+
exec_prefix=${prefix}
|
|
3
|
+
libdir=${exec_prefix}/lib
|
|
4
|
+
includedir=${prefix}/include
|
|
5
|
+
|
|
6
|
+
Name: expat
|
|
7
|
+
Version: 2.9.0
|
|
8
|
+
Description: expat XML parser
|
|
9
|
+
URL: https://libexpat.github.io/
|
|
10
|
+
Libs: -L${libdir} -lexpat
|
|
11
|
+
Libs.private: -lm
|
|
12
|
+
Cflags: -I${includedir}
|
|
13
|
+
Cflags.private: -DXML_STATIC
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1a30fe6e87582a2965301d28fb2f9b81756b9c67ef7ba926cf75653900ee03a2
|