You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[*.h,CMakeLists.txt] Ensure all macros have LIBACQUIRE_ prefix ; remove impl STATIC in favour of one SHARED (to resolve build on MSVC) ; WiP get new shared library to build correctly
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ libacquire
7
7
8
8
The core for your package manager, minus the dependency graph components. Features: **download**, **verify**, and **extract**.
9
9
10
-
By default—for HTTP, HTTPS, and FTP—this uses `libfetch` on FreeBSD; `wininet` on Windows; and `libcurl` everywhere else. Override with `-DUSE_LIBCURL` or `-DUSE_LIBFETCH`.
10
+
By default—for HTTP, HTTPS, and FTP—this uses `libfetch` on FreeBSD; `wininet` on Windows; and `libcurl` everywhere else. Override with `-DLIBACQUIRE_USE_LIBCURL` or `-DLIBACQUIRE_USE_LIBFETCH`.
11
11
12
-
By default—for MD5, SHA256, SHA512—this uses `wincrypt` on Windows; and `OpenSSL` everywhere else. _Note that on macOS this uses the builtin `CommonCrypto/CommonDigest.h` header, and on OpenBSD it uses `LibreSSL`; however in both of these cases it's the OpenSSL API with different headers._ Override with `-DUSE_OPENSSL`.
12
+
By default—for MD5, SHA256, SHA512—this uses `wincrypt` on Windows; and `OpenSSL` everywhere else. _Note that on macOS this uses the builtin `CommonCrypto/CommonDigest.h` header, and on OpenBSD it uses `LibreSSL`; however in both of these cases it's the OpenSSL API with different headers._ Override with `-DLIBACQUIRE_USE_OPENSSL`.
13
13
14
14
By default—for crc32c—this uses `rhash` if available (also giving access to: CRC32, MD4, MD5, SHA1, SHA256, SHA512, SHA3, AICH, ED2K, DC++ TTH, BitTorrent BTIH, Tiger, GOST R 34.11-94, GOST R 34.11-2012, RIPEMD-160, HAS-160, EDON-R, and Whirlpool); otherwise uses included crc32c implementation. Override with `-DUSE_CRC32C`.
15
15
@@ -46,39 +46,39 @@ If your OS doesn't have the dependency, an optimised dependency-free version wil
46
46
47
47
| API | Package enable flag | OS support |
48
48
| ------- | ------------------- | ---------- |
49
-
| [`wincrypt.h`](https://docs.microsoft.com/en-us/windows/win32/api/wincrypt) | `USE_WINCRYPT` | Windows †
|[OpenSSL](https://openssl.org)|`LIBACQUIRE_USE_LIBRESSL`| All that [LibreSSL](https://libressl.org) supports |
52
+
|[OpenSSL](https://openssl.org)|`LIBACQUIRE_USE_OPENSSL`| All that [OpenSSL](https://openssl.org) supports; default † on non macOS and Windows |
53
53
54
54
(will fallback to checksum library if undefined and only hashing is required and checksum library defined isn't CRC32C)
55
55
56
56
### Networking
57
57
58
58
| API | Package enable flag | OS support |
59
59
| ------- | ------------------- | ---------- |
60
-
|[WinINet](https://docs.microsoft.com/en-us/windows/win32/wininet)|`USE_WININET`| Windows † |
61
-
| [libfetch](https://www.freebsd.org/cgi/man.cgi?fetch(3)) | `USE_LIBFETCH` | FreeBSD † & derivatives; other OS support WiP (try `BUILD_FREEBSD_LIBFETCH`)
| [libcurl](https://curl.se/libcurl) | `USE_LIBCURL` | All that [`curl`](https://curl.se) supports; default † on non macOS and Windows
60
+
|[WinINet](https://docs.microsoft.com/en-us/windows/win32/wininet)|`LIBACQUIRE_USE_WININET`| Windows † |
61
+
| [libfetch](https://www.freebsd.org/cgi/man.cgi?fetch(3)) | `LIBACQUIRE_USE_LIBFETCH` | FreeBSD † & derivatives; other OS support WiP (try `BUILD_FREEBSD_LIBFETCH`)
| [libcurl](https://curl.se/libcurl) | `LIBACQUIRE_USE_LIBCURL` | All that [`curl`](https://curl.se) supports; default † on non macOS and Windows
64
64
65
65
### Extraction
66
66
67
67
| API | Package enable flag | OS support |
68
68
| ------- | ------------------- | ---------- |
69
-
| \*[`compressapi.h`](https://docs.microsoft.com/en-us/windows/win32/api/_cmpapi) | `USE_WINCOMPRESSAPI` | Windows †
70
-
| \*[zlib](https://zlib.net) | `USE_ZLIB` | All that zlib supports; default † (if installed) on macOS, Linux, BSD, and SunOS
71
-
| \*[libarchive](https://libarchive.org) | `USE_LIBARCHIVE` | All that libarchive supports
72
-
| [miniz](https://github.com/richgel999/miniz) with [zip](https://github.com/kuba--/zip) API | `USE_MINIZ` | All that miniz + zip supports; default † fallback
69
+
| \*[`compressapi.h`](https://docs.microsoft.com/en-us/windows/win32/api/_cmpapi) | `LIBACQUIRE_USE_WINCOMPRESSAPI` | Windows †
70
+
| \*[zlib](https://zlib.net) | `LIBACQUIRE_USE_ZLIB` | All that zlib supports; default † (if installed) on macOS, Linux, BSD, and SunOS
71
+
| \*[libarchive](https://libarchive.org) | `LIBACQUIRE_USE_LIBARCHIVE` | All that libarchive supports
72
+
| [miniz](https://github.com/richgel999/miniz) with [zip](https://github.com/kuba--/zip) API | `LIBACQUIRE_USE_MINIZ` | All that miniz + zip supports; default † fallback
73
73
74
74
### Checksum
75
75
76
76
Note that most checksum libraries are crypto libraries, so working with these APIs isn't required for libacquire:
0 commit comments