003 File Manager
Current Path:
/usr/src/sys/contrib/libsodium/dist-build
usr
/
src
/
sys
/
contrib
/
libsodium
/
dist-build
/
📁
..
📄
Makefile.am
(314 B)
📄
android-arm.sh
(171 B)
📄
android-armv7-a.sh
(208 B)
📄
android-armv8-a.sh
(185 B)
📄
android-build.sh
(2.87 KB)
📄
android-mips32.sh
(136 B)
📄
android-mips64.sh
(220 B)
📄
android-x86.sh
(153 B)
📄
android-x86_64.sh
(186 B)
📄
emscripten-symbols.def
(20.6 KB)
📄
emscripten.sh
(28.77 KB)
📄
generate-emscripten-symbols.sh
(1.33 KB)
📄
ios.sh
(4.21 KB)
📄
msys2-win32.sh
(424 B)
📄
msys2-win64.sh
(414 B)
📄
nativeclient-pnacl.sh
(1.17 KB)
📄
nativeclient-x86.sh
(913 B)
📄
nativeclient-x86_64.sh
(918 B)
📄
osx.sh
(861 B)
Editing: generate-emscripten-symbols.sh
#! /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 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
Upload File
Create Folder