Skip to content

Commit 28037b1

Browse files
committed
contrib: added libunit-wasm and wasi-sysroot.
1 parent fcee584 commit 28037b1

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

pkg/contrib/src/libunit-wasm/Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# libunit-wasm
2+
3+
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
4+
LIBUNIT_WASM_URL := https://github.com/nginx/unit-wasm.git
5+
6+
PKGS += libunit-wasm
7+
8+
DEPS_libunit-wasm = wasi-sysroot $(DEPS_wasi-sysroot)
9+
10+
$(TARBALLS)/libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz:
11+
$(call download_git,$(LIBUNIT_WASM_URL),,$(LIBUNIT_WASM_GITHASH))
12+
13+
.sum-libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
14+
$(call check_githash,$(LIBUNIT_WASM_GITHASH))
15+
touch $@
16+
17+
libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
18+
$(UNPACK)
19+
$(MOVE)
20+
21+
.libunit-wasm: libunit-wasm
22+
cd $< && CFLAGS= make WASI_SYSROOT=$(TOPSRC)wasi-sysroot V=1 libunit-wasm
23+
touch $@

pkg/contrib/src/libunit-wasm/version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
LIBUNIT_WASM_VERSION := 0.1.0
2+
LIBUNIT_WASM_GITHASH := d6ed6a219b31a58526721f96195c80061d41ce54

pkg/contrib/src/wasi-sysroot/Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# wasi-sysroot
2+
3+
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
4+
WASI_SYSROOT_URL := https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WASI_SYSROOT_VERSION_MAJOR)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
5+
6+
PKGS += wasi-sysroot
7+
8+
$(TARBALLS)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz:
9+
$(call download_pkg,$(WASI_SYSROOT_URL),wasi-sysroot)
10+
11+
.sum-wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
12+
13+
wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz .sum-wasi-sysroot
14+
$(UNPACK)
15+
16+
.wasi-sysroot: wasi-sysroot
17+
touch $@
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ad4ad629d02f01f3d2eb977dd0bc43091b0f11ed1b5dd9fdb3580e4cf49c132f6cb4982ae80eabf638f0d08d0c4c7df40cceb2be8f9d2c29abc35b8564ffda42 wasi-sysroot-20.0.tar.gz

pkg/contrib/src/wasi-sysroot/version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
WASI_SYSROOT_VERSION_MAJOR := 20
2+
WASI_SYSROOT_VERSION_MINOR := 0

0 commit comments

Comments
 (0)