Merge pull request #471 from rgrinberg/jsoo-install-tests

Add tests of js_of_ocaml flag
This commit is contained in:
Rudi Grinberg 2018-02-01 16:03:14 +08:00 committed by GitHub
commit 5881f4301d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
((name foo)
(modules (foo))
(install_c_headers (cfoo))
(js_of_ocaml ((javascript_files (foo.js))))
(wrapped false)
(public_name foo)))

View File

@ -23,6 +23,7 @@
"_build/install/default/lib/foo/foo.cmxa"
"_build/install/default/lib/foo/foo.a"
"_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/byte/foo_byte.cmi" {"byte/foo_byte.cmi"}
"_build/install/default/lib/foo/byte/foo_byte.cmt" {"byte/foo_byte.cmt"}

View File

@ -15,6 +15,7 @@
(library
((name foobar_runtime_lib2)
(js_of_ocaml ((javascript_files (foobar_runtime.js foobar_runtime2.js))))
(public_name foobar.runtime-lib2)
(synopsis "runtime library for foobar.rewriter2")))

View File

@ -59,6 +59,9 @@
archive(native) = "foobar_runtime_lib2.cmxa"
plugin(byte) = "foobar_runtime_lib2.cma"
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" (
directory = "sub"