-
Notifications
You must be signed in to change notification settings - Fork 29
/
Makefile
128 lines (109 loc) · 3.7 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# This Makefile contains the main targets for all supported language runtimes
include Makefile.helpers
.PHONY: php/v*
php/v*:
make -C php $(subst php/,,$@)
$(eval $(call create_flavor_targets,php,v8.2.0,slim wasmedge))
$(eval $(call create_flavor_targets,php,v8.2.6,slim wasmedge))
.PHONY: php/master
php/master:
make -C php master
.PHONY: ruby/v*
ruby/v*:
make -C ruby $(subst ruby/,,$@)
$(eval $(call create_flavor_targets,ruby,v3.2.0,slim))
$(eval $(call create_flavor_targets,ruby,v3.2.2,slim))
.PHONY: python/v*
python/v*:
make -C python $(subst python/,,$@)
$(eval $(call create_flavor_targets,python,v3.11.1,aio wasmedge aio-wasmedge))
$(eval $(call create_flavor_targets,python,v3.11.3,aio wasmedge aio-wasmedge))
$(eval $(call create_flavor_targets,python,v3.11.4,aio wasmedge aio-wasmedge))
$(eval $(call create_flavor_targets,python,v3.12.0,aio wasmedge aio-wasmedge))
.PHONY: oci-python-3.11.1
oci-python-3.11.1: python/v3.11.1
docker build \
--platform wasm32/wasi \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.1 \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.1 \
-f images/python/Dockerfile \
build-output
.PHONY: oci-python-3.11.1-wasmedge
oci-python-3.11.1-wasmedge: python/v3.11.1-wasmedge
docker build \
--platform wasm32/wasi \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI+WasmEdge, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.1-wasmedge \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.1-wasmedge \
-f images/python/Dockerfile \
build-output
.PHONY: oci-python-3.11.4
oci-python-3.11.4: python/v3.11.4
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.4 \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.4 \
-f images/python/Dockerfile \
build-output
.PHONY: oci-python-3.11.4-wasmedge
oci-python-3.11.4-wasmedge: python/v3.11.4-wasmedge
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI+WasmEdge, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.11.4-wasmedge \
--build-arg PYTHON_BINARY=python.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.11.4-wasmedge \
-f images/python/Dockerfile \
build-output
.PHONY: oci-python-3.12.0
oci-python-3.12.0: python/v3.12.0
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.12.0 \
--build-arg PYTHON_BINARY=python-3.12.0.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.12.0 \
-f images/python/Dockerfile \
build-output
.PHONY: oci-python-3.12.0-wasmedge
oci-python-3.12.0-wasmedge: python/v3.12.0-wasmedge
docker build \
--platform wasi/wasm32 \
--build-arg NAME=python-wasm \
--build-arg SUMMARY="CPython built for WASI+WasmEdge, by Wasm Labs" \
--build-arg ARTIFACTS_BASE_DIR=python/v3.12.0-wasmedge \
--build-arg PYTHON_BINARY=python-3.12.0.wasm \
-t ghcr.io/vmware-labs/python-wasm:3.12.0-wasmedge \
-f images/python/Dockerfile \
build-output
LIBS := \
bzip2 \
icu \
libjpeg \
libpng \
libxml2 \
libuuid \
oniguruma \
sqlite \
zlib
$(foreach _,${LIBS},$(eval $(call create_external_lib_sub_targets,$_)))
LOCAL_LIBS := \
wasmedge_sock \
bundle_wlr
$(foreach _,${LOCAL_LIBS},$(eval $(call create_local_lib_sub_targets,$_)))
.PHONY: clean
clean:
make -C php clean
make -C ruby clean
make -C python clean
make -C libs clean