File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ include Makefile.jsc17
32
32
include Makefile.jsc18
33
33
include Makefile.jsc19
34
34
include Makefile.jsc20
35
+ include Makefile.wasm
35
36
endif
36
37
37
38
# Ubuntu 22.10
@@ -47,6 +48,7 @@ include Makefile.jsc11
47
48
include Makefile.jsc17
48
49
include Makefile.jsc18
49
50
include Makefile.jsc19
51
+ include Makefile.wasm
50
52
endif
51
53
52
54
# Ubuntu 22.04
@@ -61,6 +63,7 @@ include Makefile.jsc-common
61
63
include Makefile.jsc11
62
64
include Makefile.jsc17
63
65
include Makefile.jsc18
66
+ include Makefile.wasm
64
67
endif
65
68
66
69
# Ubuntu 21.10
@@ -77,6 +80,7 @@ include Makefile.jsc11
77
80
include Makefile.jsc16
78
81
include Makefile.jsc17
79
82
include Makefile.jsc18
83
+ include Makefile.wasm
80
84
endif
81
85
82
86
# Ubuntu 20.04
@@ -89,6 +93,7 @@ include Makefile.perl
89
93
include Makefile.ruby
90
94
include Makefile.jsc-common
91
95
include Makefile.jsc11
96
+ include Makefile.wasm
92
97
endif
93
98
94
99
# Ubuntu 18.04
@@ -104,6 +109,7 @@ include Makefile.ruby
104
109
include Makefile.jsc-common
105
110
include Makefile.jsc8
106
111
include Makefile.jsc11
112
+ include Makefile.wasm
107
113
endif
108
114
109
115
# Debian 12
@@ -115,6 +121,7 @@ include Makefile.perl
115
121
include Makefile.ruby
116
122
include Makefile.jsc-common
117
123
include Makefile.jsc17
124
+ include Makefile.wasm
118
125
endif
119
126
120
127
# Debian 11
@@ -127,6 +134,7 @@ include Makefile.perl
127
134
include Makefile.ruby
128
135
include Makefile.jsc-common
129
136
include Makefile.jsc11
137
+ include Makefile.wasm
130
138
endif
131
139
132
140
# Debian 10
@@ -139,6 +147,7 @@ include Makefile.perl
139
147
include Makefile.ruby
140
148
include Makefile.jsc-common
141
149
include Makefile.jsc11
150
+ include Makefile.wasm
142
151
endif
143
152
144
153
CONFIGURE_ARGS_COMMON =\
Original file line number Diff line number Diff line change
1
+ MODULES+= wasm
2
+ MODULE_SUFFIX_wasm= wasm
3
+
4
+ MODULE_SUMMARY_wasm= WASM module for NGINX Unit
5
+
6
+ MODULE_VERSION_wasm= $(VERSION)
7
+ MODULE_RELEASE_wasm= 1
8
+
9
+ MODULE_CONFARGS_wasm= wasm --include-path=\$$(CURDIR)/pkg/contrib/wasmtime/crates/c-api/include --lib-path=\$$(CURDIR)/pkg/contrib/wasmtime/target/release
10
+ MODULE_MAKEARGS_wasm= wasm
11
+ MODULE_INSTARGS_wasm= wasm-install
12
+
13
+ MODULE_SOURCES_wasm=
14
+
15
+ BUILD_DEPENDS_wasm=
16
+ MODULE_BUILD_DEPENDS_wasm=
17
+ MODULE_DEPENDS_wasm=
18
+
19
+ BUILD_DEPENDS+= $(BUILD_DEPENDS_wasm)
20
+
21
+ define MODULE_PREBUILD_wasm
22
+ \$$(MAKE) -C pkg/contrib .wasmtime
23
+ endef
24
+ export MODULE_PREBUILD_wasm
25
+
26
+ define MODULE_PREINSTALL_wasm
27
+ endef
28
+ export MODULE_PREINSTALL_wasm
29
+
30
+ define MODULE_POSTINSTALL_wasm
31
+ mkdir -p debian/unit-wasm/usr/lib/\$$(dpkg-architecture -q DEB_HOST_MULTIARCH)/
32
+ install -m 755 -p pkg/contrib/wasmtime/target/release/libwasmtime.so debian/unit-wasm/usr/lib/\$$(dpkg-architecture -q DEB_HOST_MULTIARCH)/
33
+ endef
34
+ export MODULE_POSTINSTALL_wasm
35
+
36
+ define MODULE_POST_wasm
37
+ cat <<BANNER
38
+ ----------------------------------------------------------------------
39
+
40
+ The $(MODULE_SUMMARY_wasm) has been installed.
41
+
42
+ Online documentation is available at https://unit.nginx.org
43
+
44
+ ----------------------------------------------------------------------
45
+ BANNER
46
+ endef
47
+ export MODULE_POST_wasm
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ BASEDIR = $(CURDIR)
17
17
18
18
config.env.% :
19
19
dh_testdir
20
+ %%MODULE_PREBUILD%%
20
21
mkdir -p $(BUILDDIR_$*)
21
22
cp -Pa $(CURDIR)/auto $(BUILDDIR_$*)/
22
23
cp -Pa $(CURDIR)/configure $(BUILDDIR_$*)/
You can’t perform that action at this time.
0 commit comments