2017-10-27 22:45:31 +04:00
|
|
|
(jbuild_version 1)
|
|
|
|
|
|
|
|
(rule
|
|
|
|
((targets (embedded_cmis.ml))
|
|
|
|
(action
|
|
|
|
(run ${bin:ocp-ocamlres} -format ocaml -o ${@}
|
|
|
|
${lib:stdlib:camlinternalFormatBasics.cmi}
|
2017-10-29 01:14:00 +04:00
|
|
|
${path:tezos_protocol_compiler__Registerer.cmi}
|
2017-11-27 09:13:12 +04:00
|
|
|
${lib:tezos-protocol-environment-sigs:tezos_protocol_environment_sigs.cmi}
|
|
|
|
${lib:tezos-protocol-environment-sigs:tezos_protocol_environment_sigs__V1.cmi}))))
|
2017-10-27 22:45:31 +04:00
|
|
|
|
|
|
|
(library
|
|
|
|
((name tezos_protocol_compiler)
|
2017-11-27 09:13:12 +04:00
|
|
|
(public_name tezos-protocol-compiler)
|
2017-11-27 09:13:12 +04:00
|
|
|
(libraries (tezos-base
|
2017-11-27 09:13:12 +04:00
|
|
|
tezos-protocol-environment-sigs
|
2017-10-27 22:45:31 +04:00
|
|
|
compiler-libs
|
|
|
|
compiler-libs.optcomp
|
|
|
|
lwt.unix
|
|
|
|
ocplib-endian
|
|
|
|
ocplib-ocamlres
|
|
|
|
unix))
|
2017-11-13 17:29:28 +04:00
|
|
|
(flags (:standard -w -9+27-30-32-40@8
|
|
|
|
-safe-string
|
2017-10-27 22:45:31 +04:00
|
|
|
-opaque
|
2017-11-27 09:13:12 +04:00
|
|
|
-open Tezos_base__TzPervasives))
|
2017-12-05 18:16:34 +04:00
|
|
|
(modules (:standard \ Main Main_embedded_packer))))
|
2017-11-27 09:13:12 +04:00
|
|
|
|
|
|
|
(executable
|
|
|
|
((name main)
|
|
|
|
(public_name tezos-protocol-compiler)
|
|
|
|
(modes (native))
|
2017-12-05 18:16:34 +04:00
|
|
|
(libraries (tezos_protocol_compiler))
|
2017-11-27 09:13:12 +04:00
|
|
|
(flags (:standard -linkall))
|
|
|
|
(modules (Main))))
|
2017-11-27 09:13:12 +04:00
|
|
|
|
2017-12-05 18:16:34 +04:00
|
|
|
(executable
|
|
|
|
((name main_embedded_packer)
|
|
|
|
(public_name tezos-embedded-protocol-packer)
|
|
|
|
(modes (native))
|
|
|
|
(libraries (tezos-base))
|
|
|
|
(flags (:standard -linkall
|
|
|
|
-open Tezos_base__TzPervasives))
|
|
|
|
(modules (Main_embedded_packer))))
|
|
|
|
|
|
|
|
(install
|
|
|
|
((section share)
|
|
|
|
(files (jbuild_protocol_template
|
|
|
|
jbuild_embedded_protocol_template))))
|
|
|
|
|
2017-11-27 09:13:12 +04:00
|
|
|
(alias
|
|
|
|
((name runtest_indent)
|
|
|
|
(deps ((glob_files *.ml) (glob_files *.mli)))
|
|
|
|
(action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))
|