ocamljs
source (you can also use the -srcdir
argument to configure
to point to a different directory).-srcdir-lwt
and -srcdir-ounit
arguments). NB: ounit-1.0.3
has 1.0.2
in its META
file, so you need to either fix the META
file, rename the source directory, or use -srcdir-ounit
.ocamljs
directory, run ./configure
make
builds ocamljs
and the associated librariesmake install
installs ocamljs
and the associated librariesmake test
runs the test suite; see Ounit for prerequisitesmake examples
builds all the examplesThe command ocamljs
may be used just like ocamlc
or ocamlopt
. It generates .cmjs
/.cmjsa
files instead of .cmo
/.cma
. A linked file (.js
) consists of Javascript source, which may be run through a standalone Javascript interpreter, or embedded in a web page or Firefox extension. See the examples for details.
See tools/myocambuild.ml
for some useful ocamlbuild rules.
There is also findlib support which is recommended.