This commit is contained in:
blueloveTH 2024-08-06 13:56:56 +08:00
parent c4f761d7c2
commit 3a2e8ab6c5
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,5 @@
set -e
# if no $1 default arm64-v8a
if [ -z $1 ]; then
$1=arm64-v8a

View File

@ -1,3 +1,5 @@
set -e
rm -rf build
mkdir build
cd build

View File

@ -1,10 +1,10 @@
set -e
python prebuild.py
rm -rf web/lib
mkdir web/lib
SRC_C=$(find src/ -name "*.c")
SRC_CPP=$(find src/ -name "*.cpp")
SRC="$SRC_C $SRC_CPP"
SRC=$(find src/ -name "*.c")
em++ $SRC -Iinclude/ -fexceptions -frtti -s -Os -sEXPORTED_FUNCTIONS=_pkpy_new_repl,_pkpy_repl_input,_pkpy_new_vm -sEXPORTED_RUNTIME_METHODS=ccall -o web/lib/pocketpy.js
emcc $SRC -Iinclude/ -s -Os -sEXPORTED_FUNCTIONS=_py_initialize,_py_finalize,_py_exec,_py_replinput -sEXPORTED_RUNTIME_METHODS=ccall -o web/lib/pocketpy.js