Frank Denis
60b528c3dd
Export missing crypto_ipcrypt_nd_keygen() helper function
2026-01-07 23:00:39 +01:00
Frank Denis
1ac57afa53
Emscripten: handle empty CFLAGS
2026-01-06 14:52:35 +01:00
Frank Denis
52b4239c01
Modernize emscripten optimizations
2026-01-06 14:52:24 +01:00
Frank Denis
4e371ecb0d
Replace -s RESERVED_FUNCTION_POINTERS=8 with -sALLOW_TABLE_GROWTH
2026-01-06 14:43:51 +01:00
Frank Denis
1b6f37d343
Bump
2026-01-05 23:06:32 +01:00
Frank Denis
1e40f96e57
Regen for emscripten
2025-12-31 12:39:39 +01:00
Frank Denis
f913525a5f
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:40:44 +01:00
Frank Denis
65bba587c4
Sort emscripten-symbols.def
2025-12-30 23:11:12 +01:00
Frank Denis
8c84e36514
Use consistent names for ipcrypt array lengths
2025-12-29 23:13:17 +01:00
Frank Denis
ff06acd20d
Regen emscripten
2025-12-29 23:06:17 +01:00
Frank Denis
fc79c5d6b2
Remove crypto_core_ed25519_from_uniform
2025-12-29 16:08:36 +01:00
Frank Denis
aada8d577a
Emscripten: do not use WASM_BIGINT, for compatibility
2025-12-28 13:41:18 +01:00
Frank Denis
622cd410ea
emscripten.sh: initialize Module.getRandomValue before WASM loads
2025-12-28 13:07:05 +01:00
Frank Denis
a3a01efc85
emscripten: remove old JS test files
2025-12-08 20:35:48 +01:00
Frank Denis
3768094cee
emscripten: avoid grep on binary files
2025-12-08 20:33:54 +01:00
Frank Denis
4777e59fe3
emscripten.sh: properly detect the Javascript runtime
2025-12-08 20:33:46 +01:00
Frank Denis
85ddc5c2c6
apple-xcframework.sh: remove i386 iOS simulators
2025-08-28 23:09:19 +02:00
Frank Denis
93030d2cae
apple-xcframework.sh: force cross-compilation when relevant
...
Works around instabilities of the latest Tahoe beta version
2025-08-28 23:04:19 +02:00
Frank Denis
ce526f94aa
apple-xcframework.sh: remove support for iOS32
2025-08-28 15:39:50 +02:00
Frank Denis
e9b1fa92c9
Import dist-build/android-aar.sh readability
2025-02-20 15:36:43 +01:00
Frank Denis
4d96d503f0
Try to go to the NDK directory containing "source.properties"
2025-02-20 15:14:07 +01:00
Frank Denis
97616c3ace
Check for ANDROID_NDK definition in android-aar.sh
...
Otherwise, the script can report success even though nothing compiles.
2025-02-20 15:03:06 +01:00
Frank Denis
ea2d5b11dc
Indent Android build scripts
2025-02-20 14:50:57 +01:00
ReenigneCA
5d1aea483f
Android build scripts update for SDK level ( #1443 )
...
* Android build scripts: Changed default SDK level to 21; enabled specifying NDK_PLATFORM environment variable for custom SDK level; misc cleanup of Android build scripts
* Update android-aar.sh
I forgot to hit save on the script after making this change locally. The script works either way but by setting this value again in android-build.sh people can more easily build arch specific binaries if they want so the export is unnecessary but also rather meaningless.
2025-02-20 14:37:26 +01:00
Frank Denis
9c530b8aff
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:37:51 +01:00
Frank Denis
1d9fec9566
apple-xcframework: add arm64e builds
2024-12-21 17:00:51 +01:00
Frank Denis
7dea8e7356
xcframework: build full builds by default
2024-12-10 14:32:56 +01:00
Frank Denis
babb0dd860
Sync
2024-09-25 21:42:41 +02:00
Frank Denis
101610670a
Remove empty line
2024-09-18 12:40:45 +02:00
Saud Khan
d2694fc37d
Add support for Android's new 16K page sizes ( #1407 )
2024-09-11 16:04:43 +02:00
Frank Denis
0c1ea8aa4d
Regen dist-build/emscripten.sh
2024-07-08 18:29:09 +02:00
Frank Denis
7858b58b35
emscripten: create JS-only builds
2024-05-23 15:42:35 +02:00
Frank Denis
9703516a5e
Try running the JavaScript tests with Bun before Node
2024-05-20 21:37:16 +02:00
Frank Denis
b582d20ab4
WASI: disable PIE. PIE doesn't work with WASI.
2024-05-19 11:22:21 +02:00
Nikita Savko
8806992b1b
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-03-25 17:15:38 +01:00
Frank Denis
e08d3e59e1
Emscripten: export crypto_aead_aegis* in standard builds
2024-03-24 10:44:55 +01:00
小明
7e6ea701b7
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:19:58 +01:00
Frank Denis
93a6e79750
Sync
2023-11-30 15:45:40 +01:00
Frank Denis
712d0f3fb9
Bump dev version
2023-11-29 22:10:35 +01:00
Frank Denis
5466030cce
egrep -> grep -E
2023-11-23 13:34:36 +01:00
Frank Denis
16cd369c65
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:15:13 +02:00
Frank Denis
0e0e2c1640
Use -O3 instead of -Ofast in dist-build scripts as well
2023-10-20 12:21:06 +02:00
Frank Denis
7e3500e878
xcframework: use proper --host= flags for Apple targets
2023-09-22 20:03:11 +02:00
Frank Denis
41f34e89bc
darwin10 -> darwin23
2023-09-22 19:52:48 +02:00
Frank Denis
314f603929
Add support for VisionOS
2023-09-09 10:56:02 +02:00
Frank Denis
9dc6b80d8c
Bump dev version
2023-09-08 21:44:54 +02:00
Frank Denis
5755a5c009
emscripten: remove pwhash_* from non-sumo builds
...
Also use different memory settings for js and wasm builds
2023-02-16 20:12:54 +01:00
Frank Denis
6bb5197c2c
emscripten: enable EVAL_CTORS for WASM builds
2023-02-16 19:25:56 +01:00
Frank Denis
82696ef8c4
emscripten: setting Module.TOTAL_MEMORY doesn't do anything
2023-02-15 20:16:14 +01:00
Frank Denis
ee009287af
The --stack-first link option doesn't exist any more
2023-02-07 18:38:23 +01:00