Commit Graph

90 Commits

Author SHA1 Message Date
Frank Denis
a678c09ea3 Export chacha20poly1305_ietf functions to JavaScript 2015-05-15 10:27:16 +02:00
Frank Denis
c5556527ea + simple OSX build script 2015-04-20 12:47:12 +02:00
Frank Denis
ffc98b37b9 Let dist-build/ios.sh compile only for iOS and the iOS emulator. 2015-04-18 18:41:48 +02:00
Frank Denis
a26a126a51 Slightly revamp dist-build/ios.sh
- Compile arm32 and arm64 targets separately
- Compile for the iOS simulator

The resulting fat library include arm32, arm64, 32-bit simulator and
64-bit OSX targets.

This is a bit better than what we previously had regarding the simulator,
but still not optimal, as the 64-bit simulator version should also be
included. However, a fat library cannot include both the 64-bit simulator
version and a version for OSX since the architecture is the same.

The proper way to address this is probably to generate two libraries.
This requires some prior changes to Swift-Sodium.
2015-04-18 11:50:27 +02:00
Frank Denis
575ce93058 + crypto_box_seal() 2015-04-17 01:01:32 +02:00
Frank Denis
adf636f5db Android: Use app platform 21 2015-03-10 15:08:44 +01:00
Frank Denis
4723c3d37d Remove useless comment 2015-02-08 17:07:26 +01:00
Frank Denis
b15819fa60 Spacing 2015-02-08 17:04:15 +01:00
Frank Denis
2d3c61b3f2 armv7 -> armv7-a 2015-02-08 17:03:38 +01:00
Frank Denis
aeb26be748 Android: Use app platform 18 2015-02-08 11:30:03 +01:00
Frank Denis
53a5914a4c android-mips -> android-mips32 2015-02-08 10:42:27 +01:00
Frank Denis
0022a42f5a Don't build arm and armv7 android targets in the same directory 2015-02-08 10:34:39 +01:00
Frank Denis
046df856fa Revert "Disable PIE on Android"
This reverts commit cdf863c731.
2015-02-08 10:26:11 +01:00
mosin
4d5863a6cc android ndk requires arch to be arm not armv7
In the android-build.sh script, the call the ${ANDROID_NDK_HOME}/build/tools/make-standalone-toolchain.sh passes TARGET_ARCH as armv7 where as around line 117 of make-standalone-toolchain.sh requires ARCH to be {arm,x86,mips,arm64,x86_64,mips64}
2015-02-07 09:31:49 -05:00
Frank Denis
cdf863c731 Disable PIE on Android 2015-01-31 12:31:08 +01:00
Frank Denis
0938b7cf9a Export _crypto_generichash_statebytes() 2015-01-24 11:30:05 +01:00
Frank Denis
dd5224791b Re-add filesystem support for the library 2015-01-18 00:59:59 +01:00
Frank Denis
00f8156457 Do not hardcode the node binary 2015-01-18 00:52:14 +01:00
Frank Denis
98c96f4c99 No browser, no filesystem support required 2015-01-18 00:42:34 +01:00
Frank Denis
e7f410de10 Emscripten: don't use a memory init file any more.
It doesn't take that long to load the module, and it's going to make
users' life way easier.
2015-01-17 22:11:10 +01:00
Frank Denis
87972313d6 Do not export sysrandom symbols on Emscripten 2015-01-17 14:27:37 +01:00
Frank Denis
fa25d38288 Export _crypto_pwhash_scryptsalsa208sha256_ll 2015-01-17 12:42:51 +01:00
Frank Denis
c1b813c16a Emscripten: reserve space for 8 function pointers 2015-01-17 12:37:21 +01:00
Martin Hamrle
17247f7c99 Use bash for NDK make toolchain 2015-01-15 18:34:27 +01:00
Frank Denis
9b85fddfa9 Abort if the JS tests don't pass 2015-01-15 11:26:46 +01:00
Frank Denis
cd67cb17e5 Emscripten: add a file to mark that the build completed, for libsodium.js 2015-01-15 10:59:06 +01:00
Frank Denis
36d3d7cb5b Use io.js instead of node, if available. 2015-01-14 08:20:17 +01:00
Frank Denis
2262a592e6 Export the precomputed interface to emscripten 2015-01-06 17:59:52 +01:00
Frank Denis
c7492a4bae Make IPHONEOS_VERSION_MIN overridable 2014-12-26 23:01:38 +01:00
Frank Denis
9af34c5766 Compile for armv7s 2014-12-16 19:33:58 +01:00
clowwindy
b97c7f4f88 build both i386 and x86_64 for iOS simulator 2014-12-12 16:43:55 +08:00
clowwindy
d5acdd7f40 fix typo 2014-12-12 16:35:38 +08:00
Frank Denis
32cf1d50fa Since we're compiling for OSX, run the test suite. 2014-12-11 00:35:31 -08:00
Frank Denis
ba3fdb4790 Display what the fat library contains 2014-12-10 21:43:55 -08:00
Frank Denis
a96eb971b4 If the OSX code in ios.sh is just for the simulator, using -Oz is fine 2014-12-10 21:41:31 -08:00
Frank Denis
f2b034867e dist-build/ios: remove existing headers 2014-12-10 21:40:49 -08:00
Frank Denis
1ee6da8107 Make the output more readable 2014-12-10 21:27:10 -08:00
Frank Denis
d8deef19ef Use make distclean for cleanup; tell the user where it's been installed 2014-12-10 21:23:24 -08:00
Frank Denis
d050dbbed5 Cleanup -> make distclean 2014-12-10 21:22:01 -08:00
Frank Denis
997485ac22 Use the same options on OSX and iOS 2014-12-10 21:21:15 -08:00
Jack Wink
28edcc1885 update iOS build script to include arm64 and current OSX machine arch 2014-12-11 00:17:10 -05:00
Frank Denis
b53f5c7f74 The node binary was renamed nodejs on Ubuntu. 2014-12-04 10:28:49 -08:00
Frank Denis
4aac60f9a2 Ship android-armv7.sh 2014-12-01 19:47:04 -08:00
Frank Denis
4c1073e4e5 Exporting crypto_box and crypto_secretbox doesn't make sense in Javascript. 2014-11-30 20:00:10 -08:00
Frank Denis
f562d561d8 sodium_utils2 and sodium_utils3 cannot work in Javascript; this is expected. 2014-11-29 22:45:41 -08:00
Frank Denis
6fe4aeaf01 Emscripten: update the list of exported functions 2014-11-29 20:42:16 -08:00
Frank Denis
61620d7e42 Make 'make check' actually run the tests on Emscripten. 2014-11-25 09:51:39 -08:00
Frank Denis
db5b51042a Don't export the JS function names in LDFLAGS. 2014-11-22 14:53:16 -08:00
Frank Denis
e7069f0363 Do not use "=" with "--" options 2014-11-22 11:43:23 -08:00
Frank Denis
2ee447ff14 iOS: add -miphoneos-version-min 2014-11-20 14:01:35 -08:00