ndkports : Adding Libsodium

74 views
Skip to first unread message

Sena Gbeckor-Kove

unread,
May 19, 2020, 11:54:12 AM5/19/20
to android-ndk
Hi,

Great work on the new ndkports functionality. I'm trying to add libsodium. Do you have any pointers as to what has to be added in the Port subclass and what, if anything is optional? Libsodium has Android build scripts for all the current ABI formats (Arm and X86) so it should be as simple as calling those scripts from the root directory in order and then packaging the resulting .so and .h files.

Many thanks in advance.
Sena

Dan Albert

unread,
May 19, 2020, 7:17:42 PM5/19/20
to android-ndk
Sent a patch to add a bunch of docs to the Port class: https://android-review.googlesource.com/c/platform/tools/ndkports/+/1315396. Explains what each of the steps is for and what we expect in the install directory for packaging.

Looking at libsodium, you'll want to subclass Port directly, since it looks like you'll want to use the project's shell scripts for building. The existing openssl port file (https://android.googlesource.com/platform/tools/ndkports/+/refs/heads/master/ports/openssl/port.kts) will be the best example for that case.

--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/7837158c-727b-4200-bcd9-bf7f417cc8d3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages