Skip to content

Commit a3f16f1

Browse files
authored
Merge pull request #598 from ocsigen/fix-for-weak-with-jbuilder
META: changes for weak
2 parents fb561c8 + 2f9cf43 commit a3f16f1

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

META.js_of_ocaml-compiler.template

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# JBUILDER_GEN
2+
3+
package "runtime" (
4+
5+
package "weak" (
6+
description = "weak emulation for js_of_ocaml."
7+
version = "[distributed with js_of_ocaml-compiler]"
8+
jsoo_runtime = "weak.js"
9+
linkopts(javascript) = "+js_of_ocaml-compiler/weak.js"
10+
)
11+
12+
package "num" (
13+
description = "runtime support for the num library."
14+
version = "[distributed with js_of_ocaml-compiler]"
15+
jsoo_runtime = "nat.js"
16+
linkopts(javascript) = "+js_of_ocaml-compiler/nat.js"
17+
)
18+
19+
package "graphics" (
20+
description = "runtime support for the graphics library."
21+
version = "[distributed with js_of_ocaml-compiler]"
22+
jsoo_runtime = "graphics.js"
23+
linkopts(javascript) = "+js_of_ocaml-compiler/graphics.js"
24+
)
25+
26+
)

META.js_of_ocaml.template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ linkopts(javascript,pkg_graphics) += "+js_of_ocaml-compiler/graphics.js"
66
linkopts(javascript,pkg_num) += "+js_of_ocaml-compiler/nat.js"
77

88
package "weak" (
9-
description = "weak emulation for js_of_ocaml."
10-
version = "[distributed with js_of_ocaml]"
11-
linkopts(javascript) = "+js_of_ocaml-compiler/weak.js"
9+
requires = "js_of_ocaml-compiler.runtime.weak"
10+
)
11+
12+
package "num" (
13+
requires = "js_of_ocaml-compiler.runtime.num"
1214
)
1315

1416
package "ppx" (

0 commit comments

Comments
 (0)