From 2f9cf435da7434d0ccdfaed6ef1596162c024901 Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Sat, 17 Jun 2017 11:03:02 +0100 Subject: [PATCH] META: changes for weak --- META.js_of_ocaml-compiler.template | 26 ++++++++++++++++++++++++++ META.js_of_ocaml.template | 8 +++++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 META.js_of_ocaml-compiler.template diff --git a/META.js_of_ocaml-compiler.template b/META.js_of_ocaml-compiler.template new file mode 100644 index 0000000000..0068408676 --- /dev/null +++ b/META.js_of_ocaml-compiler.template @@ -0,0 +1,26 @@ +# JBUILDER_GEN + +package "runtime" ( + +package "weak" ( + description = "weak emulation for js_of_ocaml." + version = "[distributed with js_of_ocaml-compiler]" + jsoo_runtime = "weak.js" + linkopts(javascript) = "+js_of_ocaml-compiler/weak.js" +) + +package "num" ( + description = "runtime support for the num library." + version = "[distributed with js_of_ocaml-compiler]" + jsoo_runtime = "nat.js" + linkopts(javascript) = "+js_of_ocaml-compiler/nat.js" +) + +package "graphics" ( + description = "runtime support for the graphics library." + version = "[distributed with js_of_ocaml-compiler]" + jsoo_runtime = "graphics.js" + linkopts(javascript) = "+js_of_ocaml-compiler/graphics.js" +) + +) diff --git a/META.js_of_ocaml.template b/META.js_of_ocaml.template index e80d6c46aa..a47dd7ce5f 100644 --- a/META.js_of_ocaml.template +++ b/META.js_of_ocaml.template @@ -6,9 +6,11 @@ linkopts(javascript,pkg_graphics) += "+js_of_ocaml-compiler/graphics.js" linkopts(javascript,pkg_num) += "+js_of_ocaml-compiler/nat.js" package "weak" ( - description = "weak emulation for js_of_ocaml." - version = "[distributed with js_of_ocaml]" - linkopts(javascript) = "+js_of_ocaml-compiler/weak.js" + requires = "js_of_ocaml-compiler.runtime.weak" +) + +package "num" ( + requires = "js_of_ocaml-compiler.runtime.num" ) package "ppx" (