@crossbind/port-curl-ios 2.0.0-beta.62 → 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/curl.xcframework/Info.plist +4 -4
- package/curl.xcframework/ios-arm64/libcurl.a +0 -0
- package/curl.xcframework/ios-arm64-simulator/libcurl.a +0 -0
- package/dist/prebuilt/CMakeLists.txt +2 -1
- package/dist/prebuilt/ios-iphoneos-mt-release/include/curl/curl_crossbind.h +97 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/cmake/CURL/CURLConfig.cmake +1 -1
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/libcurl.a +0 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/lib/pkgconfig/libcurl.pc +1 -1
- package/dist/prebuilt/ios-iphoneos-mt-release/lib.sources +1 -0
- package/dist/prebuilt/ios-iphoneos-mt-release/share/man/man1/curl-config.1 +1 -1
- package/dist/prebuilt/ios-iphonesimulator-mt-release/include/curl/curl_crossbind.h +97 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/cmake/CURL/CURLConfig.cmake +1 -1
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/libcurl.a +0 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib/pkgconfig/libcurl.pc +1 -1
- package/dist/prebuilt/ios-iphonesimulator-mt-release/lib.sources +1 -0
- package/dist/prebuilt/ios-iphonesimulator-mt-release/share/man/man1/curl-config.1 +1 -1
- package/package.json +5 -5
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<key>HeadersPath</key>
|
|
11
11
|
<string>Headers</string>
|
|
12
12
|
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-arm64</string>
|
|
13
|
+
<string>ios-arm64-simulator</string>
|
|
14
14
|
<key>LibraryPath</key>
|
|
15
15
|
<string>libcurl.a</string>
|
|
16
16
|
<key>SupportedArchitectures</key>
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
</array>
|
|
20
20
|
<key>SupportedPlatform</key>
|
|
21
21
|
<string>ios</string>
|
|
22
|
+
<key>SupportedPlatformVariant</key>
|
|
23
|
+
<string>simulator</string>
|
|
22
24
|
</dict>
|
|
23
25
|
<dict>
|
|
24
26
|
<key>BinaryPath</key>
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
<key>HeadersPath</key>
|
|
27
29
|
<string>Headers</string>
|
|
28
30
|
<key>LibraryIdentifier</key>
|
|
29
|
-
<string>ios-arm64
|
|
31
|
+
<string>ios-arm64</string>
|
|
30
32
|
<key>LibraryPath</key>
|
|
31
33
|
<string>libcurl.a</string>
|
|
32
34
|
<key>SupportedArchitectures</key>
|
|
@@ -35,8 +37,6 @@
|
|
|
35
37
|
</array>
|
|
36
38
|
<key>SupportedPlatform</key>
|
|
37
39
|
<string>ios</string>
|
|
38
|
-
<key>SupportedPlatformVariant</key>
|
|
39
|
-
<string>simulator</string>
|
|
40
40
|
</dict>
|
|
41
41
|
</array>
|
|
42
42
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
@@ -51,7 +51,8 @@ if(NOT PACKAGE_HOST_INDEX EQUAL -1)
|
|
|
51
51
|
target_link_libraries("${PROJECT_NAME}" INTERFACE "${PROJECT_LIBS_DIR}")
|
|
52
52
|
endif()
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
# On iOS each library's xcframework carries the headers, so only a header-only package needs them here.
|
|
55
|
+
if(NOT (APPLE AND CMAKE_SYSTEM_NAME STREQUAL "iOS") OR PROJECT_LIBS STREQUAL "")
|
|
55
56
|
target_include_directories("${PROJECT_NAME}" INTERFACE "${PROJECT_SOURCE_DIR}/${PROJECT_TARGET_HOST}/include")
|
|
56
57
|
endif()
|
|
57
58
|
endif()
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Typed forms of libcurl's variadic calls, added by crossbind: JavaScript bindings cannot pass C varargs, so each
|
|
2
|
+
* argument type gets a function of its own. The option or info constant still decides what the value means. */
|
|
3
|
+
#ifndef CURL_CROSSBIND_H
|
|
4
|
+
#define CURL_CROSSBIND_H
|
|
5
|
+
|
|
6
|
+
#include <curl/curl.h>
|
|
7
|
+
|
|
8
|
+
/* C linkage, as in curl.h, is what lets the bindings take a JavaScript function for the callback typedefs. */
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
static inline CURLcode curl_easy_setopt_long(CURL *curl, CURLoption option, long value)
|
|
14
|
+
{
|
|
15
|
+
return curl_easy_setopt(curl, option, value);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static inline CURLcode curl_easy_setopt_offset(CURL *curl, CURLoption option, curl_off_t value)
|
|
19
|
+
{
|
|
20
|
+
return curl_easy_setopt(curl, option, value);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static inline CURLcode curl_easy_setopt_string(CURL *curl, CURLoption option, const char *value)
|
|
24
|
+
{
|
|
25
|
+
return curl_easy_setopt(curl, option, value);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static inline CURLcode curl_easy_setopt_pointer(CURL *curl, CURLoption option, void *value)
|
|
29
|
+
{
|
|
30
|
+
return curl_easy_setopt(curl, option, value);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static inline CURLcode curl_easy_setopt_slist(CURL *curl, CURLoption option, struct curl_slist *value)
|
|
34
|
+
{
|
|
35
|
+
return curl_easy_setopt(curl, option, value);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static inline CURLcode curl_easy_setopt_write_function(CURL *curl, CURLoption option, curl_write_callback value)
|
|
39
|
+
{
|
|
40
|
+
return curl_easy_setopt(curl, option, value);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static inline CURLcode curl_easy_setopt_read_function(CURL *curl, CURLoption option, curl_read_callback value)
|
|
44
|
+
{
|
|
45
|
+
return curl_easy_setopt(curl, option, value);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static inline CURLcode curl_easy_setopt_xferinfo_function(CURL *curl, CURLoption option, curl_xferinfo_callback value)
|
|
49
|
+
{
|
|
50
|
+
return curl_easy_setopt(curl, option, value);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static inline CURLcode curl_easy_getinfo_long(CURL *curl, CURLINFO info, long *value)
|
|
54
|
+
{
|
|
55
|
+
return curl_easy_getinfo(curl, info, value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static inline CURLcode curl_easy_getinfo_offset(CURL *curl, CURLINFO info, curl_off_t *value)
|
|
59
|
+
{
|
|
60
|
+
return curl_easy_getinfo(curl, info, value);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static inline CURLcode curl_easy_getinfo_double(CURL *curl, CURLINFO info, double *value)
|
|
64
|
+
{
|
|
65
|
+
return curl_easy_getinfo(curl, info, value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static inline CURLcode curl_easy_getinfo_string(CURL *curl, CURLINFO info, char **value)
|
|
69
|
+
{
|
|
70
|
+
return curl_easy_getinfo(curl, info, value);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static inline CURLcode curl_easy_getinfo_slist(CURL *curl, CURLINFO info, struct curl_slist **value)
|
|
74
|
+
{
|
|
75
|
+
return curl_easy_getinfo(curl, info, value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static inline CURLMcode curl_multi_setopt_long(CURLM *multi, CURLMoption option, long value)
|
|
79
|
+
{
|
|
80
|
+
return curl_multi_setopt(multi, option, value);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static inline CURLMcode curl_multi_setopt_pointer(CURLM *multi, CURLMoption option, void *value)
|
|
84
|
+
{
|
|
85
|
+
return curl_multi_setopt(multi, option, value);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static inline CURLSHcode curl_share_setopt_long(CURLSH *share, CURLSHoption option, long value)
|
|
89
|
+
{
|
|
90
|
+
return curl_share_setopt(share, option, value);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#ifdef __cplusplus
|
|
94
|
+
}
|
|
95
|
+
#endif
|
|
96
|
+
|
|
97
|
+
#endif
|
|
@@ -190,7 +190,7 @@ endif()
|
|
|
190
190
|
# For compatibility with CMake's FindCURL.cmake
|
|
191
191
|
set(CURL_VERSION_STRING "8.22.0")
|
|
192
192
|
set(CURL_LIBRARIES CURL::libcurl)
|
|
193
|
-
set(CURL_LIBRARIES_PRIVATE "
|
|
193
|
+
set(CURL_LIBRARIES_PRIVATE "ssl;crypto;crypto;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/libz.tbd")
|
|
194
194
|
set_and_check(CURL_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
|
|
195
195
|
|
|
196
196
|
set(CURL_SUPPORTED_PROTOCOLS "DICT;FILE;FTP;FTPS;GOPHER;GOPHERS;HTTP;HTTPS;IMAP;IMAPS;IPFS;IPNS;MQTT;MQTTS;POP3;POP3S;RTSP;SMTP;SMTPS;TELNET;TFTP;WS;WSS")
|
|
Binary file
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
#
|
|
23
23
|
###########################################################################
|
|
24
24
|
|
|
25
|
-
prefix
|
|
25
|
+
prefix=${pcfiledir}/../..
|
|
26
26
|
exec_prefix=${prefix}
|
|
27
27
|
libdir=${exec_prefix}/lib
|
|
28
28
|
includedir=${prefix}/include
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2c5bfc5a157a3f73d06b35479b2c7dffbd809111ff5680140fd0218105eaf577
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/* Typed forms of libcurl's variadic calls, added by crossbind: JavaScript bindings cannot pass C varargs, so each
|
|
2
|
+
* argument type gets a function of its own. The option or info constant still decides what the value means. */
|
|
3
|
+
#ifndef CURL_CROSSBIND_H
|
|
4
|
+
#define CURL_CROSSBIND_H
|
|
5
|
+
|
|
6
|
+
#include <curl/curl.h>
|
|
7
|
+
|
|
8
|
+
/* C linkage, as in curl.h, is what lets the bindings take a JavaScript function for the callback typedefs. */
|
|
9
|
+
#ifdef __cplusplus
|
|
10
|
+
extern "C" {
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
static inline CURLcode curl_easy_setopt_long(CURL *curl, CURLoption option, long value)
|
|
14
|
+
{
|
|
15
|
+
return curl_easy_setopt(curl, option, value);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static inline CURLcode curl_easy_setopt_offset(CURL *curl, CURLoption option, curl_off_t value)
|
|
19
|
+
{
|
|
20
|
+
return curl_easy_setopt(curl, option, value);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static inline CURLcode curl_easy_setopt_string(CURL *curl, CURLoption option, const char *value)
|
|
24
|
+
{
|
|
25
|
+
return curl_easy_setopt(curl, option, value);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static inline CURLcode curl_easy_setopt_pointer(CURL *curl, CURLoption option, void *value)
|
|
29
|
+
{
|
|
30
|
+
return curl_easy_setopt(curl, option, value);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static inline CURLcode curl_easy_setopt_slist(CURL *curl, CURLoption option, struct curl_slist *value)
|
|
34
|
+
{
|
|
35
|
+
return curl_easy_setopt(curl, option, value);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static inline CURLcode curl_easy_setopt_write_function(CURL *curl, CURLoption option, curl_write_callback value)
|
|
39
|
+
{
|
|
40
|
+
return curl_easy_setopt(curl, option, value);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static inline CURLcode curl_easy_setopt_read_function(CURL *curl, CURLoption option, curl_read_callback value)
|
|
44
|
+
{
|
|
45
|
+
return curl_easy_setopt(curl, option, value);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
static inline CURLcode curl_easy_setopt_xferinfo_function(CURL *curl, CURLoption option, curl_xferinfo_callback value)
|
|
49
|
+
{
|
|
50
|
+
return curl_easy_setopt(curl, option, value);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
static inline CURLcode curl_easy_getinfo_long(CURL *curl, CURLINFO info, long *value)
|
|
54
|
+
{
|
|
55
|
+
return curl_easy_getinfo(curl, info, value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static inline CURLcode curl_easy_getinfo_offset(CURL *curl, CURLINFO info, curl_off_t *value)
|
|
59
|
+
{
|
|
60
|
+
return curl_easy_getinfo(curl, info, value);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static inline CURLcode curl_easy_getinfo_double(CURL *curl, CURLINFO info, double *value)
|
|
64
|
+
{
|
|
65
|
+
return curl_easy_getinfo(curl, info, value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
static inline CURLcode curl_easy_getinfo_string(CURL *curl, CURLINFO info, char **value)
|
|
69
|
+
{
|
|
70
|
+
return curl_easy_getinfo(curl, info, value);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static inline CURLcode curl_easy_getinfo_slist(CURL *curl, CURLINFO info, struct curl_slist **value)
|
|
74
|
+
{
|
|
75
|
+
return curl_easy_getinfo(curl, info, value);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static inline CURLMcode curl_multi_setopt_long(CURLM *multi, CURLMoption option, long value)
|
|
79
|
+
{
|
|
80
|
+
return curl_multi_setopt(multi, option, value);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static inline CURLMcode curl_multi_setopt_pointer(CURLM *multi, CURLMoption option, void *value)
|
|
84
|
+
{
|
|
85
|
+
return curl_multi_setopt(multi, option, value);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static inline CURLSHcode curl_share_setopt_long(CURLSH *share, CURLSHoption option, long value)
|
|
89
|
+
{
|
|
90
|
+
return curl_share_setopt(share, option, value);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#ifdef __cplusplus
|
|
94
|
+
}
|
|
95
|
+
#endif
|
|
96
|
+
|
|
97
|
+
#endif
|
|
@@ -190,7 +190,7 @@ endif()
|
|
|
190
190
|
# For compatibility with CMake's FindCURL.cmake
|
|
191
191
|
set(CURL_VERSION_STRING "8.22.0")
|
|
192
192
|
set(CURL_LIBRARIES CURL::libcurl)
|
|
193
|
-
set(CURL_LIBRARIES_PRIVATE "
|
|
193
|
+
set(CURL_LIBRARIES_PRIVATE "ssl;crypto;crypto;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libz.tbd")
|
|
194
194
|
set_and_check(CURL_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
|
|
195
195
|
|
|
196
196
|
set(CURL_SUPPORTED_PROTOCOLS "DICT;FILE;FTP;FTPS;GOPHER;GOPHERS;HTTP;HTTPS;IMAP;IMAPS;IPFS;IPNS;MQTT;MQTTS;POP3;POP3S;RTSP;SMTP;SMTPS;TELNET;TFTP;WS;WSS")
|
|
Binary file
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
#
|
|
23
23
|
###########################################################################
|
|
24
24
|
|
|
25
|
-
prefix
|
|
25
|
+
prefix=${pcfiledir}/../..
|
|
26
26
|
exec_prefix=${prefix}
|
|
27
27
|
libdir=${exec_prefix}/lib
|
|
28
28
|
includedir=${prefix}/include
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2c5bfc5a157a3f73d06b35479b2c7dffbd809111ff5680140fd0218105eaf577
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossbind/port-curl-ios",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.63",
|
|
4
4
|
"nativeVersion": "8.22.0",
|
|
5
5
|
"description": "iOS build of the precompiled libcurl (CURL) library, built with crossbind. Use it together with the main package @crossbind/port-curl.",
|
|
6
|
-
"homepage": "https://
|
|
6
|
+
"homepage": "https://crossbind.dev/ports/curl/",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/crossbind/crossbind.git"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"react-native"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@crossbind/port-curl": "^2.0.0-beta.
|
|
25
|
-
"@crossbind/port-openssl-ios": "^2.0.0-beta.
|
|
24
|
+
"@crossbind/port-curl": "^2.0.0-beta.63",
|
|
25
|
+
"@crossbind/port-openssl-ios": "^2.0.0-beta.63"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"crossbind": "^2.0.0-beta.
|
|
28
|
+
"crossbind": "^2.0.0-beta.63"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "crossbind build -p ios",
|