ligo/src/jbuild
Milo Davis 0a7f9a39a9 Switch to Jbuilder
This is a rewrite of the build system with `jbuilder`, with just a
minimal toplevel Makefile for backward compatibility.

This first patch preserves the project architecture, we only gain
proper dependencies handling and always up-to-date `.merlin` files.
A latter patch may split the project in smaller "sub-package",
i.e. multiple `.opam` files.

The embedded versions of the economic protocol are now compiled with
`jbuilder` instead of `tezos-protocol-compiler`, potentially allowing
proper inlining at the cost of slightly-less-stricter
sandboxing. Nevertheless, dynamically loaded protocol are still
compiled with the `tezos-protocol-compiler` and thus strictly
sandboxed ; and a CI rule also checks the proper sandboxing of
embedded protocols.

This patch is coauthored with @hnrgrgr
2017-10-31 20:33:56 +00:00

29 lines
811 B
Plaintext

(jbuild_version 1)
(executable
((name compiler_main)
(public_name tezos-protocol-compiler)
(libraries (tezos_protocol_compiler))
(flags (:standard -w +27-30-40@8
-linkall))
(modules (Compiler_main))))
(executable
((name node_main)
(public_name tezos-node)
(libraries (node_db node_main_lib node_net cmdliner
tezos_embedded_protocol_genesis
tezos_embedded_protocol_demo
tezos_embedded_protocol_alpha))
(flags (:standard -w +27-30-40@8
-linkall))
(modules (Node_main))))
(executable
((name client_main)
(public_name tezos-client)
(libraries (lwt utils client_lib client_embedded_genesis client_embedded_alpha))
(flags (:standard -w +27-30-40@8
-linkall))
(modules (Client_main))))