0a7f9a39a9
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
42 lines
917 B
Plaintext
42 lines
917 B
Plaintext
(jbuild_version 1)
|
|
|
|
(executables
|
|
((names (test_context
|
|
test_state
|
|
test_store))
|
|
(libraries (minutils
|
|
utils
|
|
test_lib
|
|
node_shell
|
|
tezos_embedded_protocol_demo
|
|
tezos_embedded_protocol_alpha
|
|
tezos_embedded_protocol_genesis))
|
|
(flags (:standard -open Error_monad
|
|
-open Hash
|
|
-open Utils
|
|
-open Tezos_data))))
|
|
|
|
(alias
|
|
((name buildtest)
|
|
(deps (test_context.exe
|
|
test_state.exe
|
|
test_store.exe))))
|
|
|
|
(alias
|
|
((name runtest_context)
|
|
(action (run ${exe:test_context.exe}))))
|
|
|
|
(alias
|
|
((name runtest_state)
|
|
(action (run ${exe:test_state.exe}))))
|
|
|
|
(alias
|
|
((name runtest_store)
|
|
(action (run ${exe:test_store.exe}))))
|
|
|
|
(alias
|
|
((name runtest)
|
|
(deps ((alias runtest_context)
|
|
(alias runtest_state)
|
|
(alias runtest_store)))))
|