-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
17 lines (16 loc) · 885 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
WASI_SDK_PATH=/opt/wasi-sdk/
build:
@cd plugin && ${WASI_SDK_PATH}/bin/clang --sysroot=/opt/wasi-sdk/share/wasi-sysroot \
--target=wasm32-wasi \
-o libsqlite.wasm \
sqlite3.c sqlite_wrapper.c pwdump.c \
-Wl,--export=sqlite_open \
-Wl,--export=sqlite_exec \
-Wl,--export=sqlite_errmsg \
-Wl,--export=realloc \
-Wl,--allow-undefined \
-Wl,--no-entry \
-Oz \
&& cd ..
@mv plugin/libsqlite.wasm src/main/resources
@mvn clean install