diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2023-08-22 14:55:10 -0700 |
---|---|---|
committer | Konstantin Pavlov <thresh@nginx.com> | 2023-08-22 14:55:10 -0700 |
commit | 28037b1f72cbff5fce053008216705baaa7dfcf6 (patch) | |
tree | c16a6d06d1a8544ab2a7f19527be7aba06d1ee5f /pkg/contrib/src/libunit-wasm/Makefile | |
parent | fcee584cce1b6b4fb10385e16820e17dc9769ca1 (diff) | |
download | unit-28037b1f72cbff5fce053008216705baaa7dfcf6.tar.gz unit-28037b1f72cbff5fce053008216705baaa7dfcf6.tar.bz2 |
contrib: added libunit-wasm and wasi-sysroot.
Diffstat (limited to '')
-rw-r--r-- | pkg/contrib/src/libunit-wasm/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/contrib/src/libunit-wasm/Makefile b/pkg/contrib/src/libunit-wasm/Makefile new file mode 100644 index 00000000..51c24456 --- /dev/null +++ b/pkg/contrib/src/libunit-wasm/Makefile @@ -0,0 +1,23 @@ +# libunit-wasm + +include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version +LIBUNIT_WASM_URL := https://github.com/nginx/unit-wasm.git + +PKGS += libunit-wasm + +DEPS_libunit-wasm = wasi-sysroot $(DEPS_wasi-sysroot) + +$(TARBALLS)/libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz: + $(call download_git,$(LIBUNIT_WASM_URL),,$(LIBUNIT_WASM_GITHASH)) + +.sum-libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz + $(call check_githash,$(LIBUNIT_WASM_GITHASH)) + touch $@ + +libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz + $(UNPACK) + $(MOVE) + +.libunit-wasm: libunit-wasm + cd $< && CFLAGS= make WASI_SYSROOT=$(TOPSRC)wasi-sysroot V=1 libunit-wasm + touch $@ |