From 36f45c9ec3d63c656e87c7cdfcc08bc1ac59a806 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 9 Jul 2022 02:41:14 -0300 Subject: [Project] Chat Privacy A Minecraft mod which partially fixes Microsoft's danger to Minecraft players. --- libchatprivacy/src/Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libchatprivacy/src/Makefile (limited to 'libchatprivacy/src/Makefile') 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 -- cgit 1.4.1