Add libsodium to the tree and build what's needed from source.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3859 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
17
deps/libsodium/dist-build/Makefile.am
vendored
Normal file
17
deps/libsodium/dist-build/Makefile.am
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
EXTRA_DIST = \
|
||||
android-build.sh \
|
||||
android-arm.sh \
|
||||
android-armv7-a.sh \
|
||||
android-armv8-a.sh \
|
||||
android-mips32.sh \
|
||||
android-mips64.sh \
|
||||
android-x86.sh \
|
||||
android-x86_64.sh \
|
||||
emscripten.sh \
|
||||
ios.sh \
|
||||
apple-xcframework.sh \
|
||||
msys2-win32.sh \
|
||||
msys2-win64.sh \
|
||||
watchos.sh \
|
||||
wasm32-wasi.sh
|
513
deps/libsodium/dist-build/Makefile.in
vendored
Normal file
513
deps/libsodium/dist-build/Makefile.in
vendored
Normal file
@ -0,0 +1,513 @@
|
||||
# Makefile.in generated by automake 1.16.5 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
|
||||
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
VPATH = @srcdir@
|
||||
am__is_gnu_make = { \
|
||||
if test -z '$(MAKELEVEL)'; then \
|
||||
false; \
|
||||
elif test -n '$(MAKE_HOST)'; then \
|
||||
true; \
|
||||
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
|
||||
true; \
|
||||
else \
|
||||
false; \
|
||||
fi; \
|
||||
}
|
||||
am__make_running_with_option = \
|
||||
case $${target_option-} in \
|
||||
?) ;; \
|
||||
*) echo "am__make_running_with_option: internal error: invalid" \
|
||||
"target option '$${target_option-}' specified" >&2; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
has_opt=no; \
|
||||
sane_makeflags=$$MAKEFLAGS; \
|
||||
if $(am__is_gnu_make); then \
|
||||
sane_makeflags=$$MFLAGS; \
|
||||
else \
|
||||
case $$MAKEFLAGS in \
|
||||
*\\[\ \ ]*) \
|
||||
bs=\\; \
|
||||
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
|
||||
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
|
||||
esac; \
|
||||
fi; \
|
||||
skip_next=no; \
|
||||
strip_trailopt () \
|
||||
{ \
|
||||
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
|
||||
}; \
|
||||
for flg in $$sane_makeflags; do \
|
||||
test $$skip_next = yes && { skip_next=no; continue; }; \
|
||||
case $$flg in \
|
||||
*=*|--*) continue;; \
|
||||
-*I) strip_trailopt 'I'; skip_next=yes;; \
|
||||
-*I?*) strip_trailopt 'I';; \
|
||||
-*O) strip_trailopt 'O'; skip_next=yes;; \
|
||||
-*O?*) strip_trailopt 'O';; \
|
||||
-*l) strip_trailopt 'l'; skip_next=yes;; \
|
||||
-*l?*) strip_trailopt 'l';; \
|
||||
-[dEDm]) skip_next=yes;; \
|
||||
-[JT]) skip_next=yes;; \
|
||||
esac; \
|
||||
case $$flg in \
|
||||
*$$target_option*) has_opt=yes; break;; \
|
||||
esac; \
|
||||
done; \
|
||||
test $$has_opt = yes
|
||||
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
|
||||
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
target_triplet = @target@
|
||||
subdir = dist-build
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_add_fortify_source.m4 \
|
||||
$(top_srcdir)/m4/ax_check_catchable_abrt.m4 \
|
||||
$(top_srcdir)/m4/ax_check_catchable_segv.m4 \
|
||||
$(top_srcdir)/m4/ax_check_compile_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_check_define.m4 \
|
||||
$(top_srcdir)/m4/ax_check_link_flag.m4 \
|
||||
$(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/ax_tls.m4 \
|
||||
$(top_srcdir)/m4/ax_valgrind_check.m4 \
|
||||
$(top_srcdir)/m4/ld-output-def.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
AM_V_P = $(am__v_P_@AM_V@)
|
||||
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
|
||||
am__v_P_0 = false
|
||||
am__v_P_1 = :
|
||||
AM_V_GEN = $(am__v_GEN_@AM_V@)
|
||||
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
|
||||
am__v_GEN_0 = @echo " GEN " $@;
|
||||
am__v_GEN_1 =
|
||||
AM_V_at = $(am__v_at_@AM_V@)
|
||||
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
|
||||
am__v_at_0 = @
|
||||
am__v_at_1 =
|
||||
SOURCES =
|
||||
DIST_SOURCES =
|
||||
am__can_run_installinfo = \
|
||||
case $$AM_UPDATE_INFO_DIR in \
|
||||
n|no|NO) false;; \
|
||||
*) (install-info --version) >/dev/null 2>&1;; \
|
||||
esac
|
||||
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
|
||||
am__DIST_COMMON = $(srcdir)/Makefile.in
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
ALLOCA = @ALLOCA@
|
||||
AMTAR = @AMTAR@
|
||||
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
|
||||
AR = @AR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCAS = @CCAS@
|
||||
CCASDEPMODE = @CCASDEPMODE@
|
||||
CCASFLAGS = @CCASFLAGS@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CFLAGS_AESNI = @CFLAGS_AESNI@
|
||||
CFLAGS_AVX = @CFLAGS_AVX@
|
||||
CFLAGS_AVX2 = @CFLAGS_AVX2@
|
||||
CFLAGS_AVX512F = @CFLAGS_AVX512F@
|
||||
CFLAGS_MMX = @CFLAGS_MMX@
|
||||
CFLAGS_PCLMUL = @CFLAGS_PCLMUL@
|
||||
CFLAGS_RDRAND = @CFLAGS_RDRAND@
|
||||
CFLAGS_SSE2 = @CFLAGS_SSE2@
|
||||
CFLAGS_SSE3 = @CFLAGS_SSE3@
|
||||
CFLAGS_SSE41 = @CFLAGS_SSE41@
|
||||
CFLAGS_SSSE3 = @CFLAGS_SSSE3@
|
||||
CPP = @CPP@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CSCOPE = @CSCOPE@
|
||||
CTAGS = @CTAGS@
|
||||
CWFLAGS = @CWFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DLL_VERSION = @DLL_VERSION@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EGREP = @EGREP@
|
||||
ENABLE_VALGRIND_drd = @ENABLE_VALGRIND_drd@
|
||||
ENABLE_VALGRIND_helgrind = @ENABLE_VALGRIND_helgrind@
|
||||
ENABLE_VALGRIND_memcheck = @ENABLE_VALGRIND_memcheck@
|
||||
ENABLE_VALGRIND_sgcheck = @ENABLE_VALGRIND_sgcheck@
|
||||
ETAGS = @ETAGS@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HAVE_AMD64_ASM_V = @HAVE_AMD64_ASM_V@
|
||||
HAVE_AVX_ASM_V = @HAVE_AVX_ASM_V@
|
||||
HAVE_CPUID_V = @HAVE_CPUID_V@
|
||||
HAVE_TI_MODE_V = @HAVE_TI_MODE_V@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIBTOOL_DEPS = @LIBTOOL_DEPS@
|
||||
LIBTOOL_EXTRA_FLAGS = @LIBTOOL_EXTRA_FLAGS@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PKGCONFIG_LIBS_PRIVATE = @PKGCONFIG_LIBS_PRIVATE@
|
||||
PTHREAD_CC = @PTHREAD_CC@
|
||||
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
|
||||
PTHREAD_CXX = @PTHREAD_CXX@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
RANLIB = @RANLIB@
|
||||
SAFECODE_HOME = @SAFECODE_HOME@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SODIUM_LIBRARY_MINIMAL_DEF = @SODIUM_LIBRARY_MINIMAL_DEF@
|
||||
SODIUM_LIBRARY_VERSION = @SODIUM_LIBRARY_VERSION@
|
||||
SODIUM_LIBRARY_VERSION_MAJOR = @SODIUM_LIBRARY_VERSION_MAJOR@
|
||||
SODIUM_LIBRARY_VERSION_MINOR = @SODIUM_LIBRARY_VERSION_MINOR@
|
||||
STRIP = @STRIP@
|
||||
TEST_LDFLAGS = @TEST_LDFLAGS@
|
||||
VALGRIND = @VALGRIND@
|
||||
VALGRIND_ENABLED = @VALGRIND_ENABLED@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
ax_pthread_config = @ax_pthread_config@
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
build_os = @build_os@
|
||||
build_vendor = @build_vendor@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host = @host@
|
||||
host_alias = @host_alias@
|
||||
host_cpu = @host_cpu@
|
||||
host_os = @host_os@
|
||||
host_vendor = @host_vendor@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
runstatedir = @runstatedir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target = @target@
|
||||
target_alias = @target_alias@
|
||||
target_cpu = @target_cpu@
|
||||
target_os = @target_os@
|
||||
target_vendor = @target_vendor@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
valgrind_enabled_tools = @valgrind_enabled_tools@
|
||||
valgrind_tools = @valgrind_tools@
|
||||
EXTRA_DIST = \
|
||||
android-build.sh \
|
||||
android-arm.sh \
|
||||
android-armv7-a.sh \
|
||||
android-armv8-a.sh \
|
||||
android-mips32.sh \
|
||||
android-mips64.sh \
|
||||
android-x86.sh \
|
||||
android-x86_64.sh \
|
||||
emscripten.sh \
|
||||
ios.sh \
|
||||
apple-xcframework.sh \
|
||||
msys2-win32.sh \
|
||||
msys2-win64.sh \
|
||||
watchos.sh \
|
||||
wasm32-wasi.sh
|
||||
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
|
||||
&& { if test -f $@; then exit 0; else break; fi; }; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign dist-build/Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign dist-build/Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
|
||||
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
tags TAGS:
|
||||
|
||||
ctags CTAGS:
|
||||
|
||||
cscope cscopelist:
|
||||
|
||||
distdir: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) distdir-am
|
||||
|
||||
distdir-am: $(DISTFILES)
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
if test -z '$(STRIP)'; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
install; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
|
||||
fi
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-generic
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
|
||||
cscopelist-am ctags-am distclean distclean-generic \
|
||||
distclean-libtool distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-html \
|
||||
install-html-am install-info install-info-am install-man \
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
|
||||
tags-am uninstall uninstall-am
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
4
deps/libsodium/dist-build/android-arm.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-arm.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=armv6
|
||||
export CFLAGS="-Os -mthumb -marm -march=${TARGET_ARCH}"
|
||||
ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
4
deps/libsodium/dist-build/android-armv7-a.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-armv7-a.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=armv7-a
|
||||
export CFLAGS="-Os -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=${TARGET_ARCH}"
|
||||
ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
4
deps/libsodium/dist-build/android-armv8-a.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-armv8-a.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=armv8-a
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
NDK_PLATFORM=android-21 ARCH=arm64 HOST_COMPILER=aarch64-linux-android "$(dirname "$0")/android-build.sh"
|
98
deps/libsodium/dist-build/android-build.sh
vendored
Executable file
98
deps/libsodium/dist-build/android-build.sh
vendored
Executable file
@ -0,0 +1,98 @@
|
||||
#! /bin/sh
|
||||
|
||||
if [ -z "$NDK_PLATFORM" ]; then
|
||||
export NDK_PLATFORM="android-16"
|
||||
fi
|
||||
export NDK_PLATFORM_COMPAT="${NDK_PLATFORM_COMPAT:-${NDK_PLATFORM}}"
|
||||
export NDK_API_VERSION=$(echo "$NDK_PLATFORM" | sed 's/^android-//')
|
||||
export NDK_API_VERSION_COMPAT=$(echo "$NDK_PLATFORM_COMPAT" | sed 's/^android-//')
|
||||
|
||||
if [ -z "$ANDROID_NDK_HOME" ]; then
|
||||
echo "You should probably set ANDROID_NDK_HOME to the directory containing"
|
||||
echo "the Android NDK"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f ./configure ]; then
|
||||
echo "Can't find ./configure. Wrong directory or haven't run autogen.sh?" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "x$TARGET_ARCH" = 'x' ] || [ "x$ARCH" = 'x' ] || [ "x$HOST_COMPILER" = 'x' ]; then
|
||||
echo "You shouldn't use android-build.sh directly, use android-[arch].sh instead" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export MAKE_TOOLCHAIN="${ANDROID_NDK_HOME}/build/tools/make_standalone_toolchain.py"
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-android-${TARGET_ARCH}"
|
||||
export TOOLCHAIN_DIR="$(pwd)/android-toolchain-${TARGET_ARCH}"
|
||||
export PATH="${PATH}:${TOOLCHAIN_DIR}/bin"
|
||||
|
||||
export CC=${CC:-"${HOST_COMPILER}-clang"}
|
||||
|
||||
rm -rf "${TOOLCHAIN_DIR}" "${PREFIX}"
|
||||
|
||||
echo
|
||||
echo "Warnings related to headers being present but not usable are due to functions"
|
||||
echo "that didn't exist in the specified minimum API version level."
|
||||
echo "They can be safely ignored."
|
||||
echo
|
||||
|
||||
echo
|
||||
if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
|
||||
echo "Building for platform [${NDK_PLATFORM}], retaining compatibility with platform [${NDK_PLATFORM_COMPAT}]"
|
||||
else
|
||||
echo "Building for platform [${NDK_PLATFORM}]"
|
||||
fi
|
||||
echo
|
||||
|
||||
env - PATH="$PATH" \
|
||||
"$MAKE_TOOLCHAIN" --force --api="$NDK_API_VERSION_COMPAT" \
|
||||
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
||||
|
||||
if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
./configure \
|
||||
--disable-soname-versions \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--host="${HOST_COMPILER}" \
|
||||
--prefix="${PREFIX}" \
|
||||
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1
|
||||
|
||||
if [ "$NDK_PLATFORM" != "$NDK_PLATFORM_COMPAT" ]; then
|
||||
egrep '^#define ' config.log | sort -u > config-def-compat.log
|
||||
echo
|
||||
echo "Configuring again for platform [${NDK_PLATFORM}]"
|
||||
echo
|
||||
env - PATH="$PATH" \
|
||||
"$MAKE_TOOLCHAIN" --force --api="$NDK_API_VERSION" \
|
||||
--arch="$ARCH" --install-dir="$TOOLCHAIN_DIR" || exit 1
|
||||
|
||||
./configure \
|
||||
--disable-soname-versions \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--host="${HOST_COMPILER}" \
|
||||
--prefix="${PREFIX}" \
|
||||
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" || exit 1
|
||||
|
||||
egrep '^#define ' config.log | sort -u > config-def.log
|
||||
if ! cmp config-def.log config-def-compat.log; then
|
||||
echo "Platform [${NDK_PLATFORM}] is not backwards-compatible with [${NDK_PLATFORM_COMPAT}]" >&2
|
||||
diff -u config-def.log config-def-compat.log >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -f config-def.log config-def-compat.log
|
||||
fi
|
||||
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
make clean && \
|
||||
make -j${PROCESSORS} install && \
|
||||
echo "libsodium has been installed into ${PREFIX}"
|
4
deps/libsodium/dist-build/android-mips32.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-mips32.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=mips32
|
||||
export CFLAGS="-Os"
|
||||
ARCH=mips HOST_COMPILER=mipsel-linux-android "$(dirname "$0")/android-build.sh"
|
4
deps/libsodium/dist-build/android-mips64.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-mips64.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=mips64r6
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
CC="mips64el-linux-android-gcc" NDK_PLATFORM=android-21 ARCH=mips64 HOST_COMPILER=mips64el-linux-android "$(dirname "$0")/android-build.sh"
|
4
deps/libsodium/dist-build/android-x86.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-x86.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=i686
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
ARCH=x86 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh"
|
4
deps/libsodium/dist-build/android-x86_64.sh
vendored
Executable file
4
deps/libsodium/dist-build/android-x86_64.sh
vendored
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
export TARGET_ARCH=westmere
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
NDK_PLATFORM=android-21 ARCH=x86_64 HOST_COMPILER=x86_64-linux-android "$(dirname "$0")/android-build.sh"
|
448
deps/libsodium/dist-build/apple-xcframework.sh
vendored
Executable file
448
deps/libsodium/dist-build/apple-xcframework.sh
vendored
Executable file
@ -0,0 +1,448 @@
|
||||
#! /bin/sh
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-apple"
|
||||
export MACOS_ARM64_PREFIX="${PREFIX}/tmp/macos-arm64"
|
||||
export MACOS_X86_64_PREFIX="${PREFIX}/tmp/macos-x86_64"
|
||||
export IOS32_PREFIX="${PREFIX}/tmp/ios32"
|
||||
export IOS32s_PREFIX="${PREFIX}/tmp/ios32s"
|
||||
export IOS64_PREFIX="${PREFIX}/tmp/ios64"
|
||||
export IOS_SIMULATOR_ARM64_PREFIX="${PREFIX}/tmp/ios-simulator-arm64"
|
||||
export IOS_SIMULATOR_I386_PREFIX="${PREFIX}/tmp/ios-simulator-i386"
|
||||
export IOS_SIMULATOR_X86_64_PREFIX="${PREFIX}/tmp/ios-simulator-x86_64"
|
||||
export WATCHOS32_PREFIX="${PREFIX}/tmp/watchos32"
|
||||
export WATCHOS64_32_PREFIX="${PREFIX}/tmp/watchos64_32"
|
||||
export WATCHOS_SIMULATOR_ARM64_PREFIX="${PREFIX}/tmp/watchos-simulator-arm64"
|
||||
export WATCHOS_SIMULATOR_I386_PREFIX="${PREFIX}/tmp/watchos-simulator-i386"
|
||||
export WATCHOS_SIMULATOR_X86_64_PREFIX="${PREFIX}/tmp/watchos-simulator-x86_64"
|
||||
export TVOS64_PREFIX="${PREFIX}/tmp/tvos64"
|
||||
export TVOS_SIMULATOR_ARM64_PREFIX="${PREFIX}/tmp/tvos-simulator-arm64"
|
||||
export TVOS_SIMULATOR_X86_64_PREFIX="${PREFIX}/tmp/tvos-simulator-x86_64"
|
||||
export CATALYST_ARM64_PREFIX="${PREFIX}/tmp/catalyst-arm64"
|
||||
export CATALYST_X86_64_PREFIX="${PREFIX}/tmp/catalyst-x86_64"
|
||||
export LOG_FILE="${PREFIX}/tmp/build_log"
|
||||
export XCODEDIR="$(xcode-select -p)"
|
||||
|
||||
export MACOS_VERSION_MIN=${MACOS_VERSION_MIN-"10.10"}
|
||||
export IOS_SIMULATOR_VERSION_MIN=${IOS_SIMULATOR_VERSION_MIN-"9.0.0"}
|
||||
export IOS_VERSION_MIN=${IOS_VERSION_MIN-"9.0.0"}
|
||||
export WATCHOS_SIMULATOR_VERSION_MIN=${WATCHOS_SIMULATOR_VERSION_MIN-"4.0.0"}
|
||||
export WATCHOS_VERSION_MIN=${WATCHOS_VERSION_MIN-"4.0.0"}
|
||||
export TVOS_SIMULATOR_VERSION_MIN=${TVOS_SIMULATOR_VERSION_MIN-"9.0.0"}
|
||||
export TVOS_VERSION_MIN=${TVOS_VERSION_MIN-"9.0.0"}
|
||||
|
||||
echo
|
||||
echo "Warnings related to headers being present but not usable are due to functions"
|
||||
echo "that didn't exist in the specified minimum iOS version level."
|
||||
echo "They can be safely ignored."
|
||||
echo
|
||||
|
||||
if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
APPLE_SILICON_SUPPORTED=false
|
||||
echo 'int main(void){return 0;}' >comptest.c && cc --target=arm64-macos comptest.c 2>/dev/null && APPLE_SILICON_SUPPORTED=true
|
||||
rm -f comptest.c
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
swift_module_map() {
|
||||
echo 'module Clibsodium {'
|
||||
echo ' header "sodium.h"'
|
||||
echo ' export *'
|
||||
echo '}'
|
||||
}
|
||||
|
||||
build_macos() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/MacOSX.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
|
||||
## macOS arm64
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
export CFLAGS="-O2 -arch arm64 -mmacosx-version-min=${MACOS_VERSION_MIN}"
|
||||
export LDFLAGS="-arch arm64 -mmacosx-version-min=${MACOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin20 --prefix="$MACOS_ARM64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
fi
|
||||
|
||||
## macOS x86_64
|
||||
export CFLAGS="-O2 -arch x86_64 -mmacosx-version-min=${MACOS_VERSION_MIN}"
|
||||
export LDFLAGS="-arch x86_64 -mmacosx-version-min=${MACOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=x86_64-apple-darwin10 --prefix="$MACOS_X86_64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_ios() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/iPhoneOS.sdk"
|
||||
|
||||
## 32-bit iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$IOS32_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 32-bit armv7s iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7s -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7s -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$IOS32s_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 64-bit iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$IOS64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_ios_simulator() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/iPhoneSimulator.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/iPhoneSimulator.sdk"
|
||||
|
||||
## arm64 simulator
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin20 --prefix="$IOS_SIMULATOR_ARM64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
fi
|
||||
|
||||
## i386 simulator
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=i686-apple-darwin10 --prefix="$IOS_SIMULATOR_I386_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## x86_64 simulator
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=x86_64-apple-darwin10 --prefix="$IOS_SIMULATOR_X86_64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG}
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_watchos() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/WatchOS.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/WatchOS.sdk"
|
||||
|
||||
# 32-bit watchOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7k -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7k -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$WATCHOS32_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 64-bit arm64_32 watchOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch arm64_32 -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch arm64_32 -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$WATCHOS64_32_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_watchos_simulator() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/WatchSimulator.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/WatchSimulator.sdk"
|
||||
|
||||
## arm64 simulator
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin20 --prefix="$WATCHOS_SIMULATOR_ARM64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
fi
|
||||
|
||||
## i386 simulator
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch i386 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch i386 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=i686-apple-darwin10 --prefix="$WATCHOS_SIMULATOR_I386_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## x86_64 simulator
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch x86_64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch x86_64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=x86_64-apple-darwin10 --prefix="$WATCHOS_SIMULATOR_X86_64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_tvos() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/AppleTVOS.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/AppleTVOS.sdk"
|
||||
|
||||
## 64-bit tvOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mtvos-version-min=${TVOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mtvos-version-min=${TVOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin10 --prefix="$TVOS64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_tvos_simulator() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/AppleTVSimulator.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/AppleTVSimulator.sdk"
|
||||
|
||||
## arm64 simulator
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mtvos-simulator-version-min=${TVOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mtvos-simulator-version-min=${TVOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-darwin20 --prefix="$TVOS_SIMULATOR_ARM64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
fi
|
||||
|
||||
## x86_64 simulator
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch x86_64 -isysroot ${SDK} -mtvos-simulator-version-min=${TVOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch x86_64 -isysroot ${SDK} -mtvos-simulator-version-min=${TVOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=x86_64-apple-darwin10 --prefix="$TVOS_SIMULATOR_X86_64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG}
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
build_catalyst() {
|
||||
export BASEDIR="${XCODEDIR}/Platforms/MacOSX.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/MacOSX.sdk"
|
||||
|
||||
## arm64 catalyst
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
export CFLAGS="-O2 -arch arm64 -target arm64-apple-ios13.0-macabi -isysroot ${SDK}"
|
||||
export LDFLAGS="-arch arm64 -target arm64-apple-ios13.0-macabi -isysroot ${SDK}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=arm-apple-ios --prefix="$CATALYST_ARM64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
fi
|
||||
|
||||
## x86_64 catalyst
|
||||
export CFLAGS="-O2 -arch x86_64 -target x86_64-apple-ios13.0-macabi -isysroot ${SDK}"
|
||||
export LDFLAGS="-arch x86_64 -target x86_64-apple-ios13.0-macabi -isysroot ${SDK}"
|
||||
|
||||
make distclean >/dev/null 2>&1
|
||||
./configure --host=x86_64-apple-ios --prefix="$CATALYST_X86_64_PREFIX" \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} || exit 1
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
}
|
||||
|
||||
mkdir -p "${PREFIX}/tmp"
|
||||
echo "Building for macOS..."
|
||||
build_macos >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for iOS..."
|
||||
build_ios >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for the iOS simulator..."
|
||||
build_ios_simulator >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for watchOS..."
|
||||
build_watchos >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for the watchOS simulator..."
|
||||
build_watchos_simulator >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for tvOS..."
|
||||
build_tvos >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for the tvOS simulator..."
|
||||
build_tvos_simulator >"$LOG_FILE" 2>&1 || exit 1
|
||||
echo "Building for Catalyst..."
|
||||
build_catalyst >"$LOG_FILE" 2>&1 || exit 1
|
||||
|
||||
echo "Adding the Clibsodium module map for Swift..."
|
||||
|
||||
find "$PREFIX" -name "include" -type d -print | while read -r f; do
|
||||
swift_module_map >"${f}/module.modulemap"
|
||||
done
|
||||
|
||||
echo "Bundling macOS targets..."
|
||||
|
||||
mkdir -p "${PREFIX}/macos/lib"
|
||||
cp -a "${MACOS_X86_64_PREFIX}/include" "${PREFIX}/macos/"
|
||||
for ext in a dylib; do
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
lipo -create \
|
||||
"${MACOS_ARM64_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${MACOS_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/macos/lib/libsodium.${ext}"
|
||||
else
|
||||
lipo -create \
|
||||
"${MACOS_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/macos/lib/libsodium.${ext}"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Bundling iOS targets..."
|
||||
|
||||
mkdir -p "${PREFIX}/ios/lib"
|
||||
cp -a "${IOS64_PREFIX}/include" "${PREFIX}/ios/"
|
||||
for ext in a dylib; do
|
||||
lipo -create \
|
||||
"$IOS32_PREFIX/lib/libsodium.${ext}" \
|
||||
"$IOS32s_PREFIX/lib/libsodium.${ext}" \
|
||||
"$IOS64_PREFIX/lib/libsodium.${ext}" \
|
||||
-output "$PREFIX/ios/lib/libsodium.${ext}"
|
||||
done
|
||||
|
||||
echo "Bundling iOS simulators..."
|
||||
|
||||
mkdir -p "${PREFIX}/ios-simulators/lib"
|
||||
cp -a "${IOS_SIMULATOR_X86_64_PREFIX}/include" "${PREFIX}/ios-simulators/"
|
||||
for ext in a dylib; do
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
lipo -create \
|
||||
"${IOS_SIMULATOR_ARM64_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${IOS_SIMULATOR_I386_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${IOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/ios-simulators/lib/libsodium.${ext}" || exit 1
|
||||
else
|
||||
lipo -create \
|
||||
"${IOS_SIMULATOR_I386_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${IOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/ios-simulators/lib/libsodium.${ext}" || exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Bundling watchOS targets..."
|
||||
|
||||
mkdir -p "${PREFIX}/watchos/lib"
|
||||
cp -a "${WATCHOS64_32_PREFIX}/include" "${PREFIX}/watchos/"
|
||||
for ext in a dylib; do
|
||||
lipo -create \
|
||||
"${WATCHOS32_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${WATCHOS64_32_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/watchos/lib/libsodium.${ext}"
|
||||
done
|
||||
|
||||
echo "Bundling watchOS simulators..."
|
||||
|
||||
mkdir -p "${PREFIX}/watchos-simulators/lib"
|
||||
cp -a "${WATCHOS_SIMULATOR_X86_64_PREFIX}/include" "${PREFIX}/watchos-simulators/"
|
||||
for ext in a dylib; do
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
lipo -create \
|
||||
"${WATCHOS_SIMULATOR_ARM64_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${WATCHOS_SIMULATOR_I386_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${WATCHOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/watchos-simulators/lib/libsodium.${ext}"
|
||||
else
|
||||
lipo -create \
|
||||
"${WATCHOS_SIMULATOR_I386_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${WATCHOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/watchos-simulators/lib/libsodium.${ext}"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Bundling tvOS targets..."
|
||||
|
||||
mkdir -p "${PREFIX}/tvos/lib"
|
||||
cp -a "${TVOS64_PREFIX}/include" "${PREFIX}/tvos/"
|
||||
for ext in a dylib; do
|
||||
lipo -create \
|
||||
"$TVOS64_PREFIX/lib/libsodium.${ext}" \
|
||||
-output "$PREFIX/tvos/lib/libsodium.${ext}"
|
||||
done
|
||||
|
||||
echo "Bundling tvOS simulators..."
|
||||
|
||||
mkdir -p "${PREFIX}/tvos-simulators/lib"
|
||||
cp -a "${TVOS_SIMULATOR_X86_64_PREFIX}/include" "${PREFIX}/tvos-simulators/"
|
||||
for ext in a dylib; do
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
lipo -create \
|
||||
"${TVOS_SIMULATOR_ARM64_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${TVOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/tvos-simulators/lib/libsodium.${ext}" || exit 1
|
||||
else
|
||||
lipo -create \
|
||||
"${TVOS_SIMULATOR_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/tvos-simulators/lib/libsodium.${ext}" || exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Bundling Catalyst targets..."
|
||||
|
||||
mkdir -p "${PREFIX}/catalyst/lib"
|
||||
cp -a "${CATALYST_X86_64_PREFIX}/include" "${PREFIX}/catalyst/"
|
||||
for ext in a dylib; do
|
||||
if [ ! -f "${CATALYST_X86_64_PREFIX}/lib/libsodium.${ext}" ]; then
|
||||
continue
|
||||
fi
|
||||
if [ "$APPLE_SILICON_SUPPORTED" = "true" ]; then
|
||||
lipo -create \
|
||||
"${CATALYST_ARM64_PREFIX}/lib/libsodium.${ext}" \
|
||||
"${CATALYST_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/catalyst/lib/libsodium.${ext}"
|
||||
else
|
||||
lipo -create \
|
||||
"${CATALYST_X86_64_PREFIX}/lib/libsodium.${ext}" \
|
||||
-output "${PREFIX}/catalyst/lib/libsodium.${ext}"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Creating Clibsodium.xcframework..."
|
||||
|
||||
rm -rf "${PREFIX}/Clibsodium.xcframework"
|
||||
|
||||
XCFRAMEWORK_ARGS=""
|
||||
for f in macos ios ios-simulators watchos watchos-simulators tvos tvos-simulators catalyst; do
|
||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -library ${PREFIX}/${f}/lib/libsodium.a"
|
||||
XCFRAMEWORK_ARGS="${XCFRAMEWORK_ARGS} -headers ${PREFIX}/${f}/include"
|
||||
done
|
||||
xcodebuild -create-xcframework \
|
||||
${XCFRAMEWORK_ARGS} \
|
||||
-output "${PREFIX}/Clibsodium.xcframework" >/dev/null
|
||||
|
||||
ls -ld -- "$PREFIX"
|
||||
ls -l -- "$PREFIX"
|
||||
ls -l -- "$PREFIX/Clibsodium.xcframework"
|
||||
|
||||
echo "Done!"
|
||||
|
||||
# Cleanup
|
||||
rm -rf -- "$PREFIX/tmp"
|
||||
make distclean >/dev/null
|
608
deps/libsodium/dist-build/emscripten-symbols.def
vendored
Normal file
608
deps/libsodium/dist-build/emscripten-symbols.def
vendored
Normal file
@ -0,0 +1,608 @@
|
||||
_crypto_aead_aes256gcm_abytes 0 0
|
||||
_crypto_aead_aes256gcm_beforenm 0 0
|
||||
_crypto_aead_aes256gcm_decrypt 0 0
|
||||
_crypto_aead_aes256gcm_decrypt_afternm 0 0
|
||||
_crypto_aead_aes256gcm_decrypt_detached 0 0
|
||||
_crypto_aead_aes256gcm_decrypt_detached_afternm 0 0
|
||||
_crypto_aead_aes256gcm_encrypt 0 0
|
||||
_crypto_aead_aes256gcm_encrypt_afternm 0 0
|
||||
_crypto_aead_aes256gcm_encrypt_detached 0 0
|
||||
_crypto_aead_aes256gcm_encrypt_detached_afternm 0 0
|
||||
_crypto_aead_aes256gcm_is_available 0 0
|
||||
_crypto_aead_aes256gcm_keybytes 0 0
|
||||
_crypto_aead_aes256gcm_keygen 0 0
|
||||
_crypto_aead_aes256gcm_messagebytes_max 0 0
|
||||
_crypto_aead_aes256gcm_npubbytes 0 0
|
||||
_crypto_aead_aes256gcm_nsecbytes 0 0
|
||||
_crypto_aead_aes256gcm_statebytes 0 0
|
||||
_crypto_aead_chacha20poly1305_abytes 1 1
|
||||
_crypto_aead_chacha20poly1305_decrypt 1 1
|
||||
_crypto_aead_chacha20poly1305_decrypt_detached 1 1
|
||||
_crypto_aead_chacha20poly1305_encrypt 1 1
|
||||
_crypto_aead_chacha20poly1305_encrypt_detached 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_abytes 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_decrypt 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_decrypt_detached 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_encrypt 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_encrypt_detached 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_keybytes 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_keygen 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_messagebytes_max 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_npubbytes 1 1
|
||||
_crypto_aead_chacha20poly1305_ietf_nsecbytes 1 1
|
||||
_crypto_aead_chacha20poly1305_keybytes 1 1
|
||||
_crypto_aead_chacha20poly1305_keygen 1 1
|
||||
_crypto_aead_chacha20poly1305_messagebytes_max 1 1
|
||||
_crypto_aead_chacha20poly1305_npubbytes 1 1
|
||||
_crypto_aead_chacha20poly1305_nsecbytes 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_abytes 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_decrypt 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_decrypt_detached 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_encrypt 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_encrypt_detached 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_keybytes 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_keygen 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_messagebytes_max 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_npubbytes 1 1
|
||||
_crypto_aead_xchacha20poly1305_ietf_nsecbytes 1 1
|
||||
_crypto_auth 1 1
|
||||
_crypto_auth_bytes 1 1
|
||||
_crypto_auth_hmacsha256 0 1
|
||||
_crypto_auth_hmacsha256_bytes 0 1
|
||||
_crypto_auth_hmacsha256_final 0 1
|
||||
_crypto_auth_hmacsha256_init 0 1
|
||||
_crypto_auth_hmacsha256_keybytes 0 1
|
||||
_crypto_auth_hmacsha256_keygen 0 1
|
||||
_crypto_auth_hmacsha256_statebytes 0 1
|
||||
_crypto_auth_hmacsha256_update 0 1
|
||||
_crypto_auth_hmacsha256_verify 0 1
|
||||
_crypto_auth_hmacsha512 0 1
|
||||
_crypto_auth_hmacsha512256 0 1
|
||||
_crypto_auth_hmacsha512256_bytes 0 1
|
||||
_crypto_auth_hmacsha512256_final 0 1
|
||||
_crypto_auth_hmacsha512256_init 0 1
|
||||
_crypto_auth_hmacsha512256_keybytes 0 1
|
||||
_crypto_auth_hmacsha512256_keygen 0 1
|
||||
_crypto_auth_hmacsha512256_statebytes 0 1
|
||||
_crypto_auth_hmacsha512256_update 0 1
|
||||
_crypto_auth_hmacsha512256_verify 0 1
|
||||
_crypto_auth_hmacsha512_bytes 0 1
|
||||
_crypto_auth_hmacsha512_final 0 1
|
||||
_crypto_auth_hmacsha512_init 0 1
|
||||
_crypto_auth_hmacsha512_keybytes 0 1
|
||||
_crypto_auth_hmacsha512_keygen 0 1
|
||||
_crypto_auth_hmacsha512_statebytes 0 1
|
||||
_crypto_auth_hmacsha512_update 0 1
|
||||
_crypto_auth_hmacsha512_verify 0 1
|
||||
_crypto_auth_keybytes 1 1
|
||||
_crypto_auth_keygen 1 1
|
||||
_crypto_auth_primitive 0 1
|
||||
_crypto_auth_verify 1 1
|
||||
_crypto_box 0 1
|
||||
_crypto_box_afternm 0 1
|
||||
_crypto_box_beforenm 1 1
|
||||
_crypto_box_beforenmbytes 1 1
|
||||
_crypto_box_boxzerobytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_beforenm 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_beforenmbytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_detached 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_detached_afternm 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_easy 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_easy_afternm 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_keypair 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_macbytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_messagebytes_max 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_noncebytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_open_detached 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_open_detached_afternm 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_open_easy 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_open_easy_afternm 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_publickeybytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_seal 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_seal_open 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_sealbytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_secretkeybytes 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_seed_keypair 0 1
|
||||
_crypto_box_curve25519xchacha20poly1305_seedbytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_afternm 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_beforenm 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_beforenmbytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_boxzerobytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_keypair 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_macbytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_messagebytes_max 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_noncebytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_open 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_open_afternm 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_publickeybytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_secretkeybytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_seed_keypair 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_seedbytes 0 1
|
||||
_crypto_box_curve25519xsalsa20poly1305_zerobytes 0 1
|
||||
_crypto_box_detached 1 1
|
||||
_crypto_box_detached_afternm 1 1
|
||||
_crypto_box_easy 1 1
|
||||
_crypto_box_easy_afternm 1 1
|
||||
_crypto_box_keypair 1 1
|
||||
_crypto_box_macbytes 1 1
|
||||
_crypto_box_messagebytes_max 1 1
|
||||
_crypto_box_noncebytes 1 1
|
||||
_crypto_box_open 0 1
|
||||
_crypto_box_open_afternm 0 1
|
||||
_crypto_box_open_detached 1 1
|
||||
_crypto_box_open_detached_afternm 1 1
|
||||
_crypto_box_open_easy 1 1
|
||||
_crypto_box_open_easy_afternm 1 1
|
||||
_crypto_box_primitive 0 1
|
||||
_crypto_box_publickeybytes 1 1
|
||||
_crypto_box_seal 1 1
|
||||
_crypto_box_seal_open 1 1
|
||||
_crypto_box_sealbytes 1 1
|
||||
_crypto_box_secretkeybytes 1 1
|
||||
_crypto_box_seed_keypair 1 1
|
||||
_crypto_box_seedbytes 1 1
|
||||
_crypto_box_zerobytes 0 1
|
||||
_crypto_core_ed25519_add 0 1
|
||||
_crypto_core_ed25519_bytes 0 1
|
||||
_crypto_core_ed25519_from_hash 0 1
|
||||
_crypto_core_ed25519_from_uniform 0 1
|
||||
_crypto_core_ed25519_hashbytes 0 1
|
||||
_crypto_core_ed25519_is_valid_point 0 1
|
||||
_crypto_core_ed25519_nonreducedscalarbytes 0 1
|
||||
_crypto_core_ed25519_random 0 1
|
||||
_crypto_core_ed25519_scalar_add 0 1
|
||||
_crypto_core_ed25519_scalar_complement 0 1
|
||||
_crypto_core_ed25519_scalar_invert 0 1
|
||||
_crypto_core_ed25519_scalar_mul 0 1
|
||||
_crypto_core_ed25519_scalar_negate 0 1
|
||||
_crypto_core_ed25519_scalar_random 0 1
|
||||
_crypto_core_ed25519_scalar_reduce 0 1
|
||||
_crypto_core_ed25519_scalar_sub 0 1
|
||||
_crypto_core_ed25519_scalarbytes 0 1
|
||||
_crypto_core_ed25519_sub 0 1
|
||||
_crypto_core_ed25519_uniformbytes 0 1
|
||||
_crypto_core_hchacha20 0 1
|
||||
_crypto_core_hchacha20_constbytes 0 1
|
||||
_crypto_core_hchacha20_inputbytes 0 1
|
||||
_crypto_core_hchacha20_keybytes 0 1
|
||||
_crypto_core_hchacha20_outputbytes 0 1
|
||||
_crypto_core_hsalsa20 0 1
|
||||
_crypto_core_hsalsa20_constbytes 0 1
|
||||
_crypto_core_hsalsa20_inputbytes 0 1
|
||||
_crypto_core_hsalsa20_keybytes 0 1
|
||||
_crypto_core_hsalsa20_outputbytes 0 1
|
||||
_crypto_core_ristretto255_add 0 1
|
||||
_crypto_core_ristretto255_bytes 0 1
|
||||
_crypto_core_ristretto255_from_hash 0 1
|
||||
_crypto_core_ristretto255_hashbytes 0 1
|
||||
_crypto_core_ristretto255_is_valid_point 0 1
|
||||
_crypto_core_ristretto255_nonreducedscalarbytes 0 1
|
||||
_crypto_core_ristretto255_random 0 1
|
||||
_crypto_core_ristretto255_scalar_add 0 1
|
||||
_crypto_core_ristretto255_scalar_complement 0 1
|
||||
_crypto_core_ristretto255_scalar_invert 0 1
|
||||
_crypto_core_ristretto255_scalar_mul 0 1
|
||||
_crypto_core_ristretto255_scalar_negate 0 1
|
||||
_crypto_core_ristretto255_scalar_random 0 1
|
||||
_crypto_core_ristretto255_scalar_reduce 0 1
|
||||
_crypto_core_ristretto255_scalar_sub 0 1
|
||||
_crypto_core_ristretto255_scalarbytes 0 1
|
||||
_crypto_core_ristretto255_sub 0 1
|
||||
_crypto_core_ristretto255_uniformbytes 0 1
|
||||
_crypto_core_salsa20 0 1
|
||||
_crypto_core_salsa2012 0 1
|
||||
_crypto_core_salsa2012_constbytes 0 1
|
||||
_crypto_core_salsa2012_inputbytes 0 1
|
||||
_crypto_core_salsa2012_keybytes 0 1
|
||||
_crypto_core_salsa2012_outputbytes 0 1
|
||||
_crypto_core_salsa208 0 1
|
||||
_crypto_core_salsa208_constbytes 0 1
|
||||
_crypto_core_salsa208_inputbytes 0 1
|
||||
_crypto_core_salsa208_keybytes 0 1
|
||||
_crypto_core_salsa208_outputbytes 0 1
|
||||
_crypto_core_salsa20_constbytes 0 1
|
||||
_crypto_core_salsa20_inputbytes 0 1
|
||||
_crypto_core_salsa20_keybytes 0 1
|
||||
_crypto_core_salsa20_outputbytes 0 1
|
||||
_crypto_generichash 1 1
|
||||
_crypto_generichash_blake2b 0 1
|
||||
_crypto_generichash_blake2b_bytes 0 1
|
||||
_crypto_generichash_blake2b_bytes_max 0 1
|
||||
_crypto_generichash_blake2b_bytes_min 0 1
|
||||
_crypto_generichash_blake2b_final 0 1
|
||||
_crypto_generichash_blake2b_init 0 1
|
||||
_crypto_generichash_blake2b_init_salt_personal 0 1
|
||||
_crypto_generichash_blake2b_keybytes 0 1
|
||||
_crypto_generichash_blake2b_keybytes_max 0 1
|
||||
_crypto_generichash_blake2b_keybytes_min 0 1
|
||||
_crypto_generichash_blake2b_keygen 0 1
|
||||
_crypto_generichash_blake2b_personalbytes 0 1
|
||||
_crypto_generichash_blake2b_salt_personal 0 1
|
||||
_crypto_generichash_blake2b_saltbytes 0 1
|
||||
_crypto_generichash_blake2b_statebytes 0 1
|
||||
_crypto_generichash_blake2b_update 0 1
|
||||
_crypto_generichash_bytes 1 1
|
||||
_crypto_generichash_bytes_max 1 1
|
||||
_crypto_generichash_bytes_min 1 1
|
||||
_crypto_generichash_final 1 1
|
||||
_crypto_generichash_init 1 1
|
||||
_crypto_generichash_keybytes 1 1
|
||||
_crypto_generichash_keybytes_max 1 1
|
||||
_crypto_generichash_keybytes_min 1 1
|
||||
_crypto_generichash_keygen 1 1
|
||||
_crypto_generichash_primitive 0 1
|
||||
_crypto_generichash_statebytes 1 1
|
||||
_crypto_generichash_update 1 1
|
||||
_crypto_hash 1 1
|
||||
_crypto_hash_bytes 1 1
|
||||
_crypto_hash_primitive 0 1
|
||||
_crypto_hash_sha256 0 1
|
||||
_crypto_hash_sha256_bytes 0 1
|
||||
_crypto_hash_sha256_final 0 1
|
||||
_crypto_hash_sha256_init 0 1
|
||||
_crypto_hash_sha256_statebytes 0 1
|
||||
_crypto_hash_sha256_update 0 1
|
||||
_crypto_hash_sha512 0 1
|
||||
_crypto_hash_sha512_bytes 0 1
|
||||
_crypto_hash_sha512_final 0 1
|
||||
_crypto_hash_sha512_init 0 1
|
||||
_crypto_hash_sha512_statebytes 0 1
|
||||
_crypto_hash_sha512_update 0 1
|
||||
_crypto_kdf_blake2b_bytes_max 0 1
|
||||
_crypto_kdf_blake2b_bytes_min 0 1
|
||||
_crypto_kdf_blake2b_contextbytes 0 1
|
||||
_crypto_kdf_blake2b_derive_from_key 0 1
|
||||
_crypto_kdf_blake2b_keybytes 0 1
|
||||
_crypto_kdf_bytes_max 1 1
|
||||
_crypto_kdf_bytes_min 1 1
|
||||
_crypto_kdf_contextbytes 1 1
|
||||
_crypto_kdf_derive_from_key 1 1
|
||||
_crypto_kdf_keybytes 1 1
|
||||
_crypto_kdf_keygen 1 1
|
||||
_crypto_kdf_primitive 0 1
|
||||
_crypto_kx_client_session_keys 1 1
|
||||
_crypto_kx_keypair 1 1
|
||||
_crypto_kx_primitive 0 1
|
||||
_crypto_kx_publickeybytes 1 1
|
||||
_crypto_kx_secretkeybytes 1 1
|
||||
_crypto_kx_seed_keypair 1 1
|
||||
_crypto_kx_seedbytes 1 1
|
||||
_crypto_kx_server_session_keys 1 1
|
||||
_crypto_kx_sessionkeybytes 1 1
|
||||
_crypto_onetimeauth 0 1
|
||||
_crypto_onetimeauth_bytes 0 1
|
||||
_crypto_onetimeauth_final 0 1
|
||||
_crypto_onetimeauth_init 0 1
|
||||
_crypto_onetimeauth_keybytes 0 1
|
||||
_crypto_onetimeauth_keygen 0 1
|
||||
_crypto_onetimeauth_poly1305 0 1
|
||||
_crypto_onetimeauth_poly1305_bytes 0 1
|
||||
_crypto_onetimeauth_poly1305_final 0 1
|
||||
_crypto_onetimeauth_poly1305_init 0 1
|
||||
_crypto_onetimeauth_poly1305_keybytes 0 1
|
||||
_crypto_onetimeauth_poly1305_keygen 0 1
|
||||
_crypto_onetimeauth_poly1305_statebytes 0 1
|
||||
_crypto_onetimeauth_poly1305_update 0 1
|
||||
_crypto_onetimeauth_poly1305_verify 0 1
|
||||
_crypto_onetimeauth_primitive 0 1
|
||||
_crypto_onetimeauth_statebytes 0 1
|
||||
_crypto_onetimeauth_update 0 1
|
||||
_crypto_onetimeauth_verify 0 1
|
||||
_crypto_pwhash 1 1
|
||||
_crypto_pwhash_alg_argon2i13 1 1
|
||||
_crypto_pwhash_alg_argon2id13 1 1
|
||||
_crypto_pwhash_alg_default 1 1
|
||||
_crypto_pwhash_argon2i 0 1
|
||||
_crypto_pwhash_argon2i_alg_argon2i13 0 1
|
||||
_crypto_pwhash_argon2i_bytes_max 0 1
|
||||
_crypto_pwhash_argon2i_bytes_min 0 1
|
||||
_crypto_pwhash_argon2i_memlimit_interactive 0 1
|
||||
_crypto_pwhash_argon2i_memlimit_max 0 1
|
||||
_crypto_pwhash_argon2i_memlimit_min 0 1
|
||||
_crypto_pwhash_argon2i_memlimit_moderate 0 1
|
||||
_crypto_pwhash_argon2i_memlimit_sensitive 0 1
|
||||
_crypto_pwhash_argon2i_opslimit_interactive 0 1
|
||||
_crypto_pwhash_argon2i_opslimit_max 0 1
|
||||
_crypto_pwhash_argon2i_opslimit_min 0 1
|
||||
_crypto_pwhash_argon2i_opslimit_moderate 0 1
|
||||
_crypto_pwhash_argon2i_opslimit_sensitive 0 1
|
||||
_crypto_pwhash_argon2i_passwd_max 0 1
|
||||
_crypto_pwhash_argon2i_passwd_min 0 1
|
||||
_crypto_pwhash_argon2i_saltbytes 0 1
|
||||
_crypto_pwhash_argon2i_str 0 1
|
||||
_crypto_pwhash_argon2i_str_needs_rehash 0 1
|
||||
_crypto_pwhash_argon2i_str_verify 0 1
|
||||
_crypto_pwhash_argon2i_strbytes 0 1
|
||||
_crypto_pwhash_argon2i_strprefix 0 1
|
||||
_crypto_pwhash_argon2id 0 1
|
||||
_crypto_pwhash_argon2id_alg_argon2id13 0 1
|
||||
_crypto_pwhash_argon2id_bytes_max 0 1
|
||||
_crypto_pwhash_argon2id_bytes_min 0 1
|
||||
_crypto_pwhash_argon2id_memlimit_interactive 0 1
|
||||
_crypto_pwhash_argon2id_memlimit_max 0 1
|
||||
_crypto_pwhash_argon2id_memlimit_min 0 1
|
||||
_crypto_pwhash_argon2id_memlimit_moderate 0 1
|
||||
_crypto_pwhash_argon2id_memlimit_sensitive 0 1
|
||||
_crypto_pwhash_argon2id_opslimit_interactive 0 1
|
||||
_crypto_pwhash_argon2id_opslimit_max 0 1
|
||||
_crypto_pwhash_argon2id_opslimit_min 0 1
|
||||
_crypto_pwhash_argon2id_opslimit_moderate 0 1
|
||||
_crypto_pwhash_argon2id_opslimit_sensitive 0 1
|
||||
_crypto_pwhash_argon2id_passwd_max 0 1
|
||||
_crypto_pwhash_argon2id_passwd_min 0 1
|
||||
_crypto_pwhash_argon2id_saltbytes 0 1
|
||||
_crypto_pwhash_argon2id_str 0 1
|
||||
_crypto_pwhash_argon2id_str_needs_rehash 0 1
|
||||
_crypto_pwhash_argon2id_str_verify 0 1
|
||||
_crypto_pwhash_argon2id_strbytes 0 1
|
||||
_crypto_pwhash_argon2id_strprefix 0 1
|
||||
_crypto_pwhash_bytes_max 1 1
|
||||
_crypto_pwhash_bytes_min 1 1
|
||||
_crypto_pwhash_memlimit_interactive 1 1
|
||||
_crypto_pwhash_memlimit_max 1 1
|
||||
_crypto_pwhash_memlimit_min 1 1
|
||||
_crypto_pwhash_memlimit_moderate 1 1
|
||||
_crypto_pwhash_memlimit_sensitive 1 1
|
||||
_crypto_pwhash_opslimit_interactive 1 1
|
||||
_crypto_pwhash_opslimit_max 1 1
|
||||
_crypto_pwhash_opslimit_min 1 1
|
||||
_crypto_pwhash_opslimit_moderate 1 1
|
||||
_crypto_pwhash_opslimit_sensitive 1 1
|
||||
_crypto_pwhash_passwd_max 1 1
|
||||
_crypto_pwhash_passwd_min 1 1
|
||||
_crypto_pwhash_primitive 0 1
|
||||
_crypto_pwhash_saltbytes 1 1
|
||||
_crypto_pwhash_scryptsalsa208sha256 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_bytes_max 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_bytes_min 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_ll 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_memlimit_interactive 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_memlimit_max 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_memlimit_min 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_opslimit_interactive 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_opslimit_max 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_opslimit_min 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_passwd_max 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_passwd_min 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_saltbytes 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_str 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_str_needs_rehash 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_str_verify 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_strbytes 0 1
|
||||
_crypto_pwhash_scryptsalsa208sha256_strprefix 0 1
|
||||
_crypto_pwhash_str 1 1
|
||||
_crypto_pwhash_str_alg 1 1
|
||||
_crypto_pwhash_str_needs_rehash 1 1
|
||||
_crypto_pwhash_str_verify 1 1
|
||||
_crypto_pwhash_strbytes 1 1
|
||||
_crypto_pwhash_strprefix 1 1
|
||||
_crypto_scalarmult 1 1
|
||||
_crypto_scalarmult_base 1 1
|
||||
_crypto_scalarmult_bytes 1 1
|
||||
_crypto_scalarmult_curve25519 0 1
|
||||
_crypto_scalarmult_curve25519_base 0 1
|
||||
_crypto_scalarmult_curve25519_bytes 0 1
|
||||
_crypto_scalarmult_curve25519_scalarbytes 0 1
|
||||
_crypto_scalarmult_ed25519 0 1
|
||||
_crypto_scalarmult_ed25519_base 0 1
|
||||
_crypto_scalarmult_ed25519_base_noclamp 0 1
|
||||
_crypto_scalarmult_ed25519_bytes 0 1
|
||||
_crypto_scalarmult_ed25519_noclamp 0 1
|
||||
_crypto_scalarmult_ed25519_scalarbytes 0 1
|
||||
_crypto_scalarmult_primitive 0 1
|
||||
_crypto_scalarmult_ristretto255 0 1
|
||||
_crypto_scalarmult_ristretto255_base 0 1
|
||||
_crypto_scalarmult_ristretto255_bytes 0 1
|
||||
_crypto_scalarmult_ristretto255_scalarbytes 0 1
|
||||
_crypto_scalarmult_scalarbytes 1 1
|
||||
_crypto_secretbox 0 1
|
||||
_crypto_secretbox_boxzerobytes 0 1
|
||||
_crypto_secretbox_detached 1 1
|
||||
_crypto_secretbox_easy 1 1
|
||||
_crypto_secretbox_keybytes 1 1
|
||||
_crypto_secretbox_keygen 1 1
|
||||
_crypto_secretbox_macbytes 1 1
|
||||
_crypto_secretbox_messagebytes_max 1 1
|
||||
_crypto_secretbox_noncebytes 1 1
|
||||
_crypto_secretbox_open 0 1
|
||||
_crypto_secretbox_open_detached 1 1
|
||||
_crypto_secretbox_open_easy 1 1
|
||||
_crypto_secretbox_primitive 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_detached 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_easy 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_keybytes 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_macbytes 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_messagebytes_max 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_noncebytes 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_open_detached 0 1
|
||||
_crypto_secretbox_xchacha20poly1305_open_easy 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_boxzerobytes 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_keybytes 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_keygen 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_macbytes 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_messagebytes_max 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_noncebytes 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_open 0 1
|
||||
_crypto_secretbox_xsalsa20poly1305_zerobytes 0 1
|
||||
_crypto_secretbox_zerobytes 0 1
|
||||
_crypto_secretstream_xchacha20poly1305_abytes 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_headerbytes 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_init_pull 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_init_push 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_keybytes 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_keygen 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_messagebytes_max 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_pull 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_push 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_rekey 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_statebytes 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_tag_final 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_tag_message 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_tag_push 1 1
|
||||
_crypto_secretstream_xchacha20poly1305_tag_rekey 1 1
|
||||
_crypto_shorthash 1 1
|
||||
_crypto_shorthash_bytes 1 1
|
||||
_crypto_shorthash_keybytes 1 1
|
||||
_crypto_shorthash_keygen 1 1
|
||||
_crypto_shorthash_primitive 0 1
|
||||
_crypto_shorthash_siphash24 0 1
|
||||
_crypto_shorthash_siphash24_bytes 0 1
|
||||
_crypto_shorthash_siphash24_keybytes 0 1
|
||||
_crypto_shorthash_siphashx24 0 1
|
||||
_crypto_shorthash_siphashx24_bytes 0 1
|
||||
_crypto_shorthash_siphashx24_keybytes 0 1
|
||||
_crypto_sign 1 1
|
||||
_crypto_sign_bytes 1 1
|
||||
_crypto_sign_detached 1 1
|
||||
_crypto_sign_ed25519 0 1
|
||||
_crypto_sign_ed25519_bytes 0 1
|
||||
_crypto_sign_ed25519_detached 0 1
|
||||
_crypto_sign_ed25519_keypair 0 1
|
||||
_crypto_sign_ed25519_messagebytes_max 0 1
|
||||
_crypto_sign_ed25519_open 0 1
|
||||
_crypto_sign_ed25519_pk_to_curve25519 1 1
|
||||
_crypto_sign_ed25519_publickeybytes 0 1
|
||||
_crypto_sign_ed25519_secretkeybytes 0 1
|
||||
_crypto_sign_ed25519_seed_keypair 0 1
|
||||
_crypto_sign_ed25519_seedbytes 0 1
|
||||
_crypto_sign_ed25519_sk_to_curve25519 1 1
|
||||
_crypto_sign_ed25519_sk_to_pk 0 1
|
||||
_crypto_sign_ed25519_sk_to_seed 0 1
|
||||
_crypto_sign_ed25519_verify_detached 0 1
|
||||
_crypto_sign_ed25519ph_final_create 0 1
|
||||
_crypto_sign_ed25519ph_final_verify 0 1
|
||||
_crypto_sign_ed25519ph_init 0 1
|
||||
_crypto_sign_ed25519ph_statebytes 0 1
|
||||
_crypto_sign_ed25519ph_update 0 1
|
||||
_crypto_sign_edwards25519sha512batch 0 0
|
||||
_crypto_sign_edwards25519sha512batch_keypair 0 0
|
||||
_crypto_sign_edwards25519sha512batch_open 0 0
|
||||
_crypto_sign_final_create 1 1
|
||||
_crypto_sign_final_verify 1 1
|
||||
_crypto_sign_init 1 1
|
||||
_crypto_sign_keypair 1 1
|
||||
_crypto_sign_messagebytes_max 1 1
|
||||
_crypto_sign_open 1 1
|
||||
_crypto_sign_primitive 0 1
|
||||
_crypto_sign_publickeybytes 1 1
|
||||
_crypto_sign_secretkeybytes 1 1
|
||||
_crypto_sign_seed_keypair 1 1
|
||||
_crypto_sign_seedbytes 1 1
|
||||
_crypto_sign_statebytes 1 1
|
||||
_crypto_sign_update 1 1
|
||||
_crypto_sign_verify_detached 1 1
|
||||
_crypto_stream 0 1
|
||||
_crypto_stream_chacha20 0 1
|
||||
_crypto_stream_chacha20_ietf 0 1
|
||||
_crypto_stream_chacha20_ietf_keybytes 0 1
|
||||
_crypto_stream_chacha20_ietf_keygen 0 1
|
||||
_crypto_stream_chacha20_ietf_messagebytes_max 0 1
|
||||
_crypto_stream_chacha20_ietf_noncebytes 0 1
|
||||
_crypto_stream_chacha20_ietf_xor 0 1
|
||||
_crypto_stream_chacha20_ietf_xor_ic 0 1
|
||||
_crypto_stream_chacha20_keybytes 0 1
|
||||
_crypto_stream_chacha20_keygen 0 1
|
||||
_crypto_stream_chacha20_messagebytes_max 0 1
|
||||
_crypto_stream_chacha20_noncebytes 0 1
|
||||
_crypto_stream_chacha20_xor 0 1
|
||||
_crypto_stream_chacha20_xor_ic 0 1
|
||||
_crypto_stream_keybytes 0 1
|
||||
_crypto_stream_keygen 0 1
|
||||
_crypto_stream_messagebytes_max 0 1
|
||||
_crypto_stream_noncebytes 0 1
|
||||
_crypto_stream_primitive 0 1
|
||||
_crypto_stream_salsa20 0 1
|
||||
_crypto_stream_salsa2012 0 1
|
||||
_crypto_stream_salsa2012_keybytes 0 1
|
||||
_crypto_stream_salsa2012_keygen 0 1
|
||||
_crypto_stream_salsa2012_messagebytes_max 0 1
|
||||
_crypto_stream_salsa2012_noncebytes 0 1
|
||||
_crypto_stream_salsa2012_xor 0 1
|
||||
_crypto_stream_salsa208 0 1
|
||||
_crypto_stream_salsa208_keybytes 0 1
|
||||
_crypto_stream_salsa208_keygen 0 1
|
||||
_crypto_stream_salsa208_messagebytes_max 0 1
|
||||
_crypto_stream_salsa208_noncebytes 0 1
|
||||
_crypto_stream_salsa208_xor 0 1
|
||||
_crypto_stream_salsa20_keybytes 0 1
|
||||
_crypto_stream_salsa20_keygen 0 1
|
||||
_crypto_stream_salsa20_messagebytes_max 0 1
|
||||
_crypto_stream_salsa20_noncebytes 0 1
|
||||
_crypto_stream_salsa20_xor 0 1
|
||||
_crypto_stream_salsa20_xor_ic 0 1
|
||||
_crypto_stream_xchacha20 0 1
|
||||
_crypto_stream_xchacha20_keybytes 0 1
|
||||
_crypto_stream_xchacha20_keygen 0 1
|
||||
_crypto_stream_xchacha20_messagebytes_max 0 1
|
||||
_crypto_stream_xchacha20_noncebytes 0 1
|
||||
_crypto_stream_xchacha20_xor 0 1
|
||||
_crypto_stream_xchacha20_xor_ic 0 1
|
||||
_crypto_stream_xor 0 1
|
||||
_crypto_stream_xsalsa20 0 1
|
||||
_crypto_stream_xsalsa20_keybytes 0 1
|
||||
_crypto_stream_xsalsa20_keygen 0 1
|
||||
_crypto_stream_xsalsa20_messagebytes_max 0 1
|
||||
_crypto_stream_xsalsa20_noncebytes 0 1
|
||||
_crypto_stream_xsalsa20_xor 0 1
|
||||
_crypto_stream_xsalsa20_xor_ic 0 1
|
||||
_crypto_verify_16 0 1
|
||||
_crypto_verify_16_bytes 0 1
|
||||
_crypto_verify_32 0 1
|
||||
_crypto_verify_32_bytes 0 1
|
||||
_crypto_verify_64 0 1
|
||||
_crypto_verify_64_bytes 0 1
|
||||
_randombytes 1 1
|
||||
_randombytes_buf 1 1
|
||||
_randombytes_buf_deterministic 1 1
|
||||
_randombytes_close 1 1
|
||||
_randombytes_implementation_name 0 1
|
||||
_randombytes_random 1 1
|
||||
_randombytes_seedbytes 1 1
|
||||
_randombytes_set_implementation 0 0
|
||||
_randombytes_stir 1 1
|
||||
_randombytes_uniform 1 1
|
||||
_sodium_add 0 0
|
||||
_sodium_allocarray 0 0
|
||||
_sodium_base642bin 1 1
|
||||
_sodium_base64_encoded_len 1 1
|
||||
_sodium_bin2base64 1 1
|
||||
_sodium_bin2hex 1 1
|
||||
_sodium_compare 0 0
|
||||
_sodium_free 0 0
|
||||
_sodium_hex2bin 1 1
|
||||
_sodium_increment 0 0
|
||||
_sodium_init 1 1
|
||||
_sodium_is_zero 0 0
|
||||
_sodium_library_minimal 1 1
|
||||
_sodium_library_version_major 1 1
|
||||
_sodium_library_version_minor 1 1
|
||||
_sodium_malloc 0 0
|
||||
_sodium_memcmp 0 0
|
||||
_sodium_memzero 0 0
|
||||
_sodium_misuse 0 0
|
||||
_sodium_mlock 0 0
|
||||
_sodium_mprotect_noaccess 0 0
|
||||
_sodium_mprotect_readonly 0 0
|
||||
_sodium_mprotect_readwrite 0 0
|
||||
_sodium_munlock 0 0
|
||||
_sodium_pad 1 1
|
||||
_sodium_runtime_has_aesni 0 0
|
||||
_sodium_runtime_has_avx 0 0
|
||||
_sodium_runtime_has_avx2 0 0
|
||||
_sodium_runtime_has_avx512f 0 0
|
||||
_sodium_runtime_has_neon 0 0
|
||||
_sodium_runtime_has_pclmul 0 0
|
||||
_sodium_runtime_has_rdrand 0 0
|
||||
_sodium_runtime_has_sse2 0 0
|
||||
_sodium_runtime_has_sse3 0 0
|
||||
_sodium_runtime_has_sse41 0 0
|
||||
_sodium_runtime_has_ssse3 0 0
|
||||
_sodium_set_misuse_handler 0 0
|
||||
_sodium_stackzero 0 0
|
||||
_sodium_sub 0 0
|
||||
_sodium_unpad 1 1
|
||||
_sodium_version_string 1 1
|
205
deps/libsodium/dist-build/emscripten.sh
vendored
Executable file
205
deps/libsodium/dist-build/emscripten.sh
vendored
Executable file
File diff suppressed because one or more lines are too long
57
deps/libsodium/dist-build/generate-emscripten-symbols.sh
vendored
Executable file
57
deps/libsodium/dist-build/generate-emscripten-symbols.sh
vendored
Executable file
@ -0,0 +1,57 @@
|
||||
#! /bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
symbols() {
|
||||
{
|
||||
SUMO="$1"
|
||||
while read symbol standard sumo; do
|
||||
found="$standard"
|
||||
if [ "x$SUMO" = "xsumo" ]; then
|
||||
found="$sumo"
|
||||
fi
|
||||
if [ "$found" = "1" ]; then
|
||||
eval "defined_${symbol}=yes"
|
||||
else
|
||||
eval "defined_${symbol}=no"
|
||||
fi
|
||||
done < emscripten-symbols.def
|
||||
|
||||
/usr/bin/nm /usr/local/lib/libsodium.23.dylib | \
|
||||
fgrep ' T _' | \
|
||||
cut -d' ' -f3 | {
|
||||
while read symbol; do
|
||||
eval "found=\$defined_${symbol}"
|
||||
if [ "$found" = "yes" ]; then
|
||||
echo "$symbol"
|
||||
elif [ "$found" != "no" ]; then
|
||||
echo >&2
|
||||
echo "*** [$symbol] was not expected ***" >&2
|
||||
echo >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
} | \
|
||||
sort | \
|
||||
{
|
||||
out='"_malloc","_free"'
|
||||
while read symbol ; do
|
||||
if [ ! -z "$out" ]; then
|
||||
out="${out},"
|
||||
fi
|
||||
out="${out}\"${symbol}\""
|
||||
done
|
||||
echo "[${out}]"
|
||||
}
|
||||
}
|
||||
|
||||
out=$(symbols standard)
|
||||
sed s/EXPORTED_FUNCTIONS_STANDARD=\'.*\'/EXPORTED_FUNCTIONS_STANDARD=\'${out}\'/ < emscripten.sh > emscripten.sh.tmp && \
|
||||
mv -f emscripten.sh.tmp emscripten.sh
|
||||
|
||||
out=$(symbols sumo)
|
||||
sed s/EXPORTED_FUNCTIONS_SUMO=\'.*\'/EXPORTED_FUNCTIONS_SUMO=\'${out}\'/ < emscripten.sh > emscripten.sh.tmp && \
|
||||
mv -f emscripten.sh.tmp emscripten.sh
|
||||
|
||||
chmod +x emscripten.sh
|
135
deps/libsodium/dist-build/ios.sh
vendored
Executable file
135
deps/libsodium/dist-build/ios.sh
vendored
Executable file
@ -0,0 +1,135 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Step 1.
|
||||
# Configure for base system so simulator is covered
|
||||
#
|
||||
# Step 2.
|
||||
# Make for iOS and iOS simulator
|
||||
#
|
||||
# Step 3.
|
||||
# Merge libs into final version for xcode import
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-ios"
|
||||
export IOS32_PREFIX="$PREFIX/tmp/ios32"
|
||||
export IOS32s_PREFIX="$PREFIX/tmp/ios32s"
|
||||
export IOS64_PREFIX="$PREFIX/tmp/ios64"
|
||||
export SIMULATOR32_PREFIX="$PREFIX/tmp/simulator32"
|
||||
export SIMULATOR64_PREFIX="$PREFIX/tmp/simulator64"
|
||||
export XCODEDIR=$(xcode-select -p)
|
||||
|
||||
export IOS_SIMULATOR_VERSION_MIN=${IOS_SIMULATOR_VERSION_MIN-"6.0.0"}
|
||||
export IOS_VERSION_MIN=${IOS_VERSION_MIN-"6.0.0"}
|
||||
|
||||
echo
|
||||
echo "Warnings related to headers being present but not usable are due to functions"
|
||||
echo "that didn't exist in the specified minimum iOS version level."
|
||||
echo "They can be safely ignored."
|
||||
echo
|
||||
|
||||
mkdir -p $SIMULATOR32_PREFIX $SIMULATOR64_PREFIX $IOS32_PREFIX $IOS32s_PREFIX $IOS64_PREFIX || exit 1
|
||||
|
||||
# Build for the simulator
|
||||
export BASEDIR="${XCODEDIR}/Platforms/iPhoneSimulator.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/iPhoneSimulator.sdk"
|
||||
|
||||
## i386 simulator
|
||||
export CFLAGS="-O2 -arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-arch i386 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
./configure --host=i686-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$SIMULATOR32_PREFIX" || exit 1
|
||||
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## x86_64 simulator
|
||||
export CFLAGS="-O2 -arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-arch x86_64 -isysroot ${SDK} -mios-simulator-version-min=${IOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=x86_64-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$SIMULATOR64_PREFIX"
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
# Build for iOS
|
||||
export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/iPhoneOS.sdk"
|
||||
|
||||
## 32-bit iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=arm-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$IOS32_PREFIX" || exit 1
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 32-bit armv7s iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7s -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7s -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=arm-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$IOS32s_PREFIX" || exit 1
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 64-bit iOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -arch arm64 -isysroot ${SDK} -mios-version-min=${IOS_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=arm-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$IOS64_PREFIX" || exit 1
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
# Create universal binary and include folder
|
||||
rm -fr -- "$PREFIX/include" "$PREFIX/libsodium.a" 2> /dev/null
|
||||
mkdir -p -- "$PREFIX/lib"
|
||||
lipo -create \
|
||||
"$SIMULATOR32_PREFIX/lib/libsodium.a" \
|
||||
"$SIMULATOR64_PREFIX/lib/libsodium.a" \
|
||||
"$IOS32_PREFIX/lib/libsodium.a" \
|
||||
"$IOS32s_PREFIX/lib/libsodium.a" \
|
||||
"$IOS64_PREFIX/lib/libsodium.a" \
|
||||
-output "$PREFIX/lib/libsodium.a"
|
||||
mv -f -- "$IOS32_PREFIX/include" "$PREFIX/"
|
||||
|
||||
echo
|
||||
echo "libsodium has been installed into $PREFIX"
|
||||
echo
|
||||
file -- "$PREFIX/lib/libsodium.a"
|
||||
|
||||
# Cleanup
|
||||
rm -rf -- "$PREFIX/tmp"
|
||||
make distclean > /dev/null
|
18
deps/libsodium/dist-build/msys2-win32.sh
vendored
Executable file
18
deps/libsodium/dist-build/msys2-win32.sh
vendored
Executable file
@ -0,0 +1,18 @@
|
||||
#! /bin/sh
|
||||
|
||||
export CFLAGS="-Ofast -fomit-frame-pointer -m32 -march=pentium3 -mtune=westmere"
|
||||
export PREFIX="$(pwd)/libsodium-win32"
|
||||
|
||||
if (i686-w64-mingw32-gcc --version > /dev/null 2>&1) then
|
||||
echo MinGW found
|
||||
else
|
||||
echo Please install mingw-w64-i686-gcc >&2
|
||||
exit
|
||||
fi
|
||||
|
||||
./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
|
||||
--host=i686-w64-mingw32 && \
|
||||
make clean && \
|
||||
make && \
|
||||
make check && \
|
||||
make install
|
18
deps/libsodium/dist-build/msys2-win64.sh
vendored
Executable file
18
deps/libsodium/dist-build/msys2-win64.sh
vendored
Executable file
@ -0,0 +1,18 @@
|
||||
#! /bin/sh
|
||||
|
||||
export CFLAGS="-Ofast -fomit-frame-pointer -m64 -mtune=westmere"
|
||||
export PREFIX="$(pwd)/libsodium-win64"
|
||||
|
||||
if (x86_64-w64-mingw32-gcc --version > /dev/null 2>&1) then
|
||||
echo MinGW found
|
||||
else
|
||||
echo Please install mingw-w64-x86_64-gcc >&2
|
||||
exit
|
||||
fi
|
||||
|
||||
./configure --prefix="$PREFIX" --exec-prefix="$PREFIX" \
|
||||
--host=x86_64-w64-mingw32 && \
|
||||
make clean && \
|
||||
make && \
|
||||
make check && \
|
||||
make install
|
26
deps/libsodium/dist-build/osx.sh
vendored
Executable file
26
deps/libsodium/dist-build/osx.sh
vendored
Executable file
@ -0,0 +1,26 @@
|
||||
#! /bin/sh
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-osx"
|
||||
export MACOS_VERSION_MIN=${MACOS_VERSION_MIN-"10.10"}
|
||||
|
||||
if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
mkdir -p $PREFIX || exit 1
|
||||
|
||||
export CFLAGS="-mmacosx-version-min=${MACOS_VERSION_MIN} -O2 -g"
|
||||
export LDFLAGS="-mmacosx-version-min=${MACOS_VERSION_MIN}"
|
||||
|
||||
make distclean >/dev/null
|
||||
./configure ${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$PREFIX" || exit 1
|
||||
make -j${PROCESSORS} check && make -j${PROCESSORS} install || exit 1
|
||||
|
||||
# Cleanup
|
||||
make distclean >/dev/null
|
45
deps/libsodium/dist-build/wasm32-wasi.sh
vendored
Executable file
45
deps/libsodium/dist-build/wasm32-wasi.sh
vendored
Executable file
@ -0,0 +1,45 @@
|
||||
#! /bin/sh
|
||||
|
||||
export PATH="/opt/zig/bin:/opt/zig:/opt/homebrew/bin:$PATH"
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-wasm32-wasi"
|
||||
|
||||
mkdir -p $PREFIX || exit 1
|
||||
|
||||
export CC="zig cc"
|
||||
export CFLAGS="--target=wasm32-wasi -O2"
|
||||
export LDFLAGS="-s -Wl,--stack-first"
|
||||
export AR="zig ar"
|
||||
export RANLIB="zig ranlib"
|
||||
|
||||
make distclean >/dev/null
|
||||
|
||||
if [ "x$1" = "x--bench" ]; then
|
||||
export BENCHMARKS=1
|
||||
export CPPFLAGS="-DBENCHMARKS -DITERATIONS=100"
|
||||
else
|
||||
export CPPFLAGS="-DED25519_NONDETERMINISTIC=1"
|
||||
fi
|
||||
|
||||
if [ -n "$LIBSODIUM_MINIMAL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
if ! ./configure ${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$PREFIX" \
|
||||
--host=wasm32-wasi \
|
||||
--disable-ssp --disable-shared --without-pthreads; then
|
||||
cat config.log
|
||||
exit 1
|
||||
fi
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
if [ -z "$BENCHMARKS" ]; then
|
||||
make -j${PROCESSORS} check && make install && make distclean >/dev/null
|
||||
else
|
||||
make -j${PROCESSORS} && make check
|
||||
fi
|
114
deps/libsodium/dist-build/watchos.sh
vendored
Executable file
114
deps/libsodium/dist-build/watchos.sh
vendored
Executable file
@ -0,0 +1,114 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
# Step 1.
|
||||
# Configure for base system so simulator is covered
|
||||
#
|
||||
# Step 2.
|
||||
# Make for watchOS and watchOS simulator
|
||||
#
|
||||
# Step 3.
|
||||
# Merge libs into final version for xcode import
|
||||
|
||||
export PREFIX="$(pwd)/libsodium-watchos"
|
||||
export WATCHOS32_PREFIX="$PREFIX/tmp/watchos32"
|
||||
export WATCHOS64_32_PREFIX="$PREFIX/tmp/watchos64_32"
|
||||
export SIMULATOR32_PREFIX="$PREFIX/tmp/simulator32"
|
||||
export SIMULATOR64_PREFIX="$PREFIX/tmp/simulator64"
|
||||
export XCODEDIR=$(xcode-select -p)
|
||||
|
||||
export WATCHOS_SIMULATOR_VERSION_MIN=${WATCHOS_SIMULATOR_VERSION_MIN-"4.0.0"}
|
||||
export WATCHOS_VERSION_MIN=${WATCHOS_VERSION_MIN-"4.0.0"}
|
||||
|
||||
mkdir -p $SIMULATOR32_PREFIX $SIMULATOR64_PREFIX $WATCHOS32_PREFIX $WATCHOS64_32_PREFIX || exit 1
|
||||
|
||||
# Build for the simulator
|
||||
export BASEDIR="${XCODEDIR}/Platforms/WatchSimulator.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/WatchSimulator.sdk"
|
||||
|
||||
## i386 simulator
|
||||
export CFLAGS="-O2 -arch i386 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-arch i386 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
if [ -z "$LIBSODIUM_FULL_BUILD" ]; then
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG="--enable-minimal"
|
||||
else
|
||||
export LIBSODIUM_ENABLE_MINIMAL_FLAG=""
|
||||
fi
|
||||
|
||||
./configure --host=i686-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$SIMULATOR32_PREFIX" || exit 1
|
||||
|
||||
|
||||
NPROCESSORS=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
|
||||
PROCESSORS=${NPROCESSORS:-3}
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## x86_64 simulator
|
||||
export CFLAGS="-O2 -arch x86_64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
export LDFLAGS="-arch x86_64 -isysroot ${SDK} -mwatchos-simulator-version-min=${WATCHOS_SIMULATOR_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=x86_64-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$SIMULATOR64_PREFIX"
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
# Build for watchOS
|
||||
export BASEDIR="${XCODEDIR}/Platforms/WatchOS.platform/Developer"
|
||||
export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH"
|
||||
export SDK="${BASEDIR}/SDKs/WatchOS.sdk"
|
||||
|
||||
## 32-bit watchOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch armv7k -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch armv7k -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=arm-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$WATCHOS32_PREFIX" || exit 1
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
## 64-bit arm64_32 watchOS
|
||||
export CFLAGS="-fembed-bitcode -O2 -mthumb -arch arm64_32 -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
export LDFLAGS="-fembed-bitcode -mthumb -arch arm64_32 -isysroot ${SDK} -mwatchos-version-min=${WATCHOS_VERSION_MIN}"
|
||||
|
||||
make distclean > /dev/null
|
||||
|
||||
./configure --host=arm-apple-darwin10 \
|
||||
--disable-shared \
|
||||
${LIBSODIUM_ENABLE_MINIMAL_FLAG} \
|
||||
--prefix="$WATCHOS64_32_PREFIX" || exit 1
|
||||
|
||||
make -j${PROCESSORS} install || exit 1
|
||||
|
||||
# Create universal binary and include folder
|
||||
rm -fr -- "$PREFIX/include" "$PREFIX/libsodium.a" 2> /dev/null
|
||||
mkdir -p -- "$PREFIX/lib"
|
||||
lipo -create \
|
||||
"$SIMULATOR32_PREFIX/lib/libsodium.a" \
|
||||
"$SIMULATOR64_PREFIX/lib/libsodium.a" \
|
||||
"$WATCHOS32_PREFIX/lib/libsodium.a" \
|
||||
"$WATCHOS64_32_PREFIX/lib/libsodium.a" \
|
||||
-output "$PREFIX/lib/libsodium.a"
|
||||
mv -f -- "$WATCHOS32_PREFIX/include" "$PREFIX/"
|
||||
|
||||
echo
|
||||
echo "libsodium has been installed into $PREFIX"
|
||||
echo
|
||||
file -- "$PREFIX/lib/libsodium.a"
|
||||
|
||||
# Cleanup
|
||||
rm -rf -- "$PREFIX/tmp"
|
||||
make distclean > /dev/null
|
Reference in New Issue
Block a user