diff options
Diffstat (limited to 'libchatprivacy/src/Makefile')
-rw-r--r-- | libchatprivacy/src/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libchatprivacy/src/Makefile b/libchatprivacy/src/Makefile new file mode 100644 index 0000000..ca3e70e --- /dev/null +++ b/libchatprivacy/src/Makefile @@ -0,0 +1,15 @@ +EMCC=emcc +KOTLINC=kotlinc +WASM2KOTLIN=wasm2kotlin + +libchatprivacy.jar: libchatprivacy.kt wasm_rt_impl.kt + JAVA_OPTS=-Xmx2G $(KOTLINC) -jvm-target 1.8 -nowarn -d libchatprivacy.jar libchatprivacy.kt wasm_rt_impl.kt + +libchatprivacy.kt: libchatprivacy.wasm + $(WASM2KOTLIN) -p libchatprivacy libchatprivacy.wasm -o libchatprivacy.kt + +libchatprivacy.wasm: libchatprivacy.o + $(EMCC) -flto=full -Oz -s ALLOW_TABLE_GROWTH=1 -s ALLOW_MEMORY_GROWTH=1 -s PURE_WASI=1 -L$$(cd ../../libotr/buildenv; pwd)/lib -lotr -lgcrypt -lgpg-error --no-entry -o libchatprivacy.wasm libchatprivacy.o + +libchatprivacy.o: libchatprivacy.c libchatprivacy.h + $(EMCC) -flto=full -Oz -s PURE_WASI=1 -std=c99 -Wall -Wextra -Weverything -pedantic -isystem$$(cd ../../libotr/buildenv; pwd)/include -c -o libchatprivacy.o libchatprivacy.c |