Add tests of js_of_ocaml flag
Make sure that adding js runtime files reflects correctly in the META and .install files
This commit is contained in:
parent
00623728e1
commit
3646e554a9
|
@ -4,6 +4,7 @@
|
||||||
((name foo)
|
((name foo)
|
||||||
(modules (foo))
|
(modules (foo))
|
||||||
(install_c_headers (cfoo))
|
(install_c_headers (cfoo))
|
||||||
|
(js_of_ocaml ((javascript_files (foo.js))))
|
||||||
(wrapped false)
|
(wrapped false)
|
||||||
(public_name foo)))
|
(public_name foo)))
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
"_build/install/default/lib/foo/foo.cmxa"
|
"_build/install/default/lib/foo/foo.cmxa"
|
||||||
"_build/install/default/lib/foo/foo.a"
|
"_build/install/default/lib/foo/foo.a"
|
||||||
"_build/install/default/lib/foo/foo.cmxs"
|
"_build/install/default/lib/foo/foo.cmxs"
|
||||||
|
"_build/install/default/lib/foo/foo.js"
|
||||||
"_build/install/default/lib/foo/cfoo.h"
|
"_build/install/default/lib/foo/cfoo.h"
|
||||||
"_build/install/default/lib/foo/byte/foo_byte.cmi" {"byte/foo_byte.cmi"}
|
"_build/install/default/lib/foo/byte/foo_byte.cmi" {"byte/foo_byte.cmi"}
|
||||||
"_build/install/default/lib/foo/byte/foo_byte.cmt" {"byte/foo_byte.cmt"}
|
"_build/install/default/lib/foo/byte/foo_byte.cmt" {"byte/foo_byte.cmt"}
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
(library
|
(library
|
||||||
((name foobar_runtime_lib2)
|
((name foobar_runtime_lib2)
|
||||||
|
(js_of_ocaml ((javascript_files (foobar_runtime.js foobar_runtime2.js))))
|
||||||
(public_name foobar.runtime-lib2)
|
(public_name foobar.runtime-lib2)
|
||||||
(synopsis "runtime library for foobar.rewriter2")))
|
(synopsis "runtime library for foobar.rewriter2")))
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,9 @@
|
||||||
archive(native) = "foobar_runtime_lib2.cmxa"
|
archive(native) = "foobar_runtime_lib2.cmxa"
|
||||||
plugin(byte) = "foobar_runtime_lib2.cma"
|
plugin(byte) = "foobar_runtime_lib2.cma"
|
||||||
plugin(native) = "foobar_runtime_lib2.cmxs"
|
plugin(native) = "foobar_runtime_lib2.cmxs"
|
||||||
|
linkopts(javascript) = "+foobar/foobar_runtime.js
|
||||||
|
+foobar/foobar_runtime2.js"
|
||||||
|
jsoo_runtime = "foobar_runtime.js foobar_runtime2.js"
|
||||||
)
|
)
|
||||||
package "sub" (
|
package "sub" (
|
||||||
directory = "sub"
|
directory = "sub"
|
||||||
|
|
Loading…
Reference in New Issue