Commit Graph
419 Commits
Author SHA1 Message Date
Frank Denis 6b48659e3d Export missing crypto_ipcrypt_nd_keygen() helper function 2026-01-07 23:00:08 +01:00
Frank Denis ae7ca7ef13 Bump 2026-01-06 15:42:08 +01:00
Frank Denis d832790fa6 Regen emscripten 2026-01-06 15:42:08 +01:00
Frank Denis ed5b6b4b20 Regen emscripten 2026-01-06 15:42:07 +01:00
Frank Denis 5aa6d1910b Import ipcrypt 2026-01-06 15:42:07 +01:00
Frank Denis 9010e0634c Emscripten: handle empty CFLAGS 2026-01-06 23:09:45 +01:00
Frank Denis afc81e4429 Replace -s RESERVED_FUNCTION_POINTERS=8 with -sALLOW_TABLE_GROWTH 2026-01-06 14:43:19 +01:00
Frank Denis 27b1c7e1eb Modernize emscripten optimizations 2026-01-06 14:29:20 +01:00
Frank Denis 3bc2d7a223 apple-xcframework.sh: force cross-compilation to avoid rosetta 2026-01-05 15:10:27 +01:00
Frank Denis 417c6f36ec apple-xcframework.sh: provide guidance is only the CLI tools are installed 2026-01-05 15:10:22 +01:00
Frank Denis 5a18746b9a Emscripten: add -s SINGLE_FILE_BINARY_ENCODE=0
Emscripten 4 changed the WASM binary encoding mode from base64 to
a custom UTF-8 binary encoding with binaryDecode().

The new encoding uses control characters and non-printable ASCII
that get corrupted when served to browsers.
2025-12-31 00:39:21 +01:00
Frank Denis dc49ff876d Sort emscripten-symbols.def 2025-12-30 23:05:53 +01:00
Frank Denis af33f28716 Xcode doesn't support the iPhone simulator on i386 any more 2025-12-30 00:21:01 +01:00
Frank Denis 43f9821e0b Sync android aar with dotnet package version for consistency 2025-12-29 23:32:15 +01:00
Frank Denis 3d0ac8ab70 Emscripten: do not use WASM_BIGINT, for compatibility 2025-12-28 13:40:50 +01:00
Frank Denis 87c5b533f8 emscripten.sh: initialize Module.getRandomValue before WASM loads 2025-12-28 13:19:16 +01:00
Frank Denis 4662af939f emscripten: remove old JS test files 2025-12-08 20:35:27 +01:00
Frank Denis fb3f2be750 emscripten: avoid grep on binary files 2025-12-08 20:33:04 +01:00
Frank Denis 1d6e8925fa emscripten.sh: properly detect the Javascript runtime 2025-12-08 20:14:52 +01:00
Frank Denis ac706cacc7 Update emscripten symbols 2025-12-08 19:52:06 +01:00
Frank Denis 7baa22c819 Downgrade ax_valgrind_check.m4 2025-12-08 04:51:33 +01:00
Frank Denis 0fd55ad0a7 apple-xcframework.sh: remove support for iOS32 2025-08-28 23:07:25 +02:00
Frank Denis 3dea5725a9 Regen 2025-07-30 12:34:41 +02:00
Frank Denis 604d0e17bd Update autoconf 2025-07-30 12:28:39 +02:00
Frank Denis 8a4bb595ef Improve readability 2025-02-20 15:36:04 +01:00
Frank Denis c01ba042a2 Abort if NDK_PLATFORM is empty 2025-02-20 15:29:58 +01:00
Frank Denis b4f1449d89 should -> must 2025-02-20 15:26:05 +01:00
Frank Denis 4d9b52d234 android-aar: check more accurately that ANDROID_SDK is properly set 2025-02-20 15:25:13 +01:00
Frank Denis 7f2d076a8e Try to go to the NDK directory containing "source.properties" 2025-02-20 15:13:15 +01:00
Frank Denis 4cb0fb5482 Check for ANDROID_NDK definition in android-aar.sh
Otherwise, the script can report success even though nothing compiles.
2025-02-20 15:04:20 +01:00
Frank Denis 8adeb1fc12 chmod +x dist-build/android-aar.sh 2025-02-20 14:59:38 +01:00
Frank Denis 220290442e Android build scripts update for SDK level (#1443) 2025-02-20 14:48:59 +01:00
Frank Denis 151e71bf50 Set the default Android platform to 21
Also explain that the "zip" command is required to build AAR archives
and that NDK_PLATFORM can be used to override the target platform.

Fixes #1440
2025-01-16 14:36:11 +01:00
Frank Denis 1418c97631 apple-xcframework: add arm64e builds 2024-12-21 16:58:26 +01:00
Frank Denis ec81b62045 xcframework: build full builds by default 2024-12-10 14:31:07 +01:00
Saud Khan ff546a2d9b Add support for Android's new 16K page sizes (#1407) 2024-09-25 21:38:20 +02:00
Frank Denis ec4e5d0708 Remove empty line 2024-09-18 12:41:19 +02:00
Frank Denis f2303ba3f0 Update autoconf 2024-08-01 13:57:57 +02:00
Frank Denis ca638e8b93 Export _crypto_aead_aes256gcm_is_available to JavaScript
Fixes https://github.com/jedisct1/libsodium.js/issues/342
2024-07-08 18:20:11 +02:00
Frank Denis 9511c982fb 1.0.20 2024-05-25 14:13:52 +02:00
Frank Denis 2e662fb56f Try running the JavaScript tests with Bun before Node 2024-05-20 21:38:14 +02:00
Frank Denis eac1063b68 WASI: disable PIE. PIE doesn't work with WASI. 2024-05-19 11:21:41 +02:00
Nikita Savko 3de5e505f0 Fixed xcframework build for iOS 11 and later (#1361)
* Fixed inability to create xcframework with minimal iOS deployment target newer than iOS 10.x

* Set OS_VERSION_MIN as default value for OS_SIMULATOR_VERSION_MIN
2024-04-27 23:17:25 +02:00
Frank Denis bf4fb64457 Emscripten: export crypto_aead_aegis* in standard builds 2024-03-24 10:41:56 +01:00
小明 74fd1d4584 fixed inability to create xcframework in Symbolic Link (#1356)
Creating Clibsodium.xcframework...
error: cannot compute path of binary 'Path(str: "/private/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a")' relative to that of '/tmp/libsodium-stable/libsodium-apple/macos/lib/libsodium.a'
ls: /tmp/libsodium-stable/libsodium-apple/Clibsodium.xcframework: No such file or directory

ls -l /tmp
lrwxr-xr-x@ 1 root  wheel  11 12 15 22:43 /tmp -> private/tmp
2024-02-29 11:20:17 +01:00
Frank Denis f6d0efefc3 Sync 2023-11-30 15:44:36 +01:00
Frank Denis 2945e73efd egrep -> grep -E 2023-11-23 13:36:02 +01:00
Frank Denis 0158b98bd7 Don't compile for VisionOS if Xcode doesn't support it
Drop APPLE_SILICON_SUPPORTED, since Xcode has had support for it
for ages.
2023-10-20 15:12:24 +02:00
Frank Denis 9fe76acddd Use -O3 instead of -Ofast in dist-build scripts as well 2023-10-20 12:17:09 +02:00
Frank Denis ac6d3909eb xcframework: use proper --host= flags for Apple targets 2023-09-22 20:04:21 +02:00