Jbuilder: Wrap Tezos_protocol_environment_sigs

This commit is contained in:
Grégoire Henry 2017-10-27 21:42:44 +02:00 committed by Benjamin Canou
parent 05da5a73b8
commit 108fe7799f
9 changed files with 13 additions and 11 deletions

View File

@ -8,5 +8,6 @@
(**************************************************************************)
val camlinternalFormatBasics_cmi: string
val tezos_protocol_environment_sigs_v1_cmi: string
val tezos_protocol_environment_sigs_cmi: string
val tezos_protocol_environment_sigs__V1_cmi: string
val tezos_protocol_compiler__Registerer_cmi: string

View File

@ -6,7 +6,8 @@
(run ${bin:ocp-ocamlres} -format ocaml -o ${@}
${lib:stdlib:camlinternalFormatBasics.cmi}
${path:tezos_protocol_compiler__Registerer.cmi}
${path:../environment/tezos_protocol_environment_sigs_v1.cmi}))))
${path:../environment/tezos_protocol_environment_sigs.cmi}
${path:../environment/tezos_protocol_environment_sigs__V1.cmi}))))
(library
((name tezos_protocol_compiler)

View File

@ -109,7 +109,8 @@ let tezos_protocol_env =
let open Embedded_cmis in
[
"CamlinternalFormatBasics", camlinternalFormatBasics_cmi ;
"Tezos_protocol_environment_sigs_v1", tezos_protocol_environment_sigs_v1_cmi ;
"Tezos_protocol_environment_sigs", tezos_protocol_environment_sigs_cmi ;
"Tezos_protocol_environment_sigs__V1", tezos_protocol_environment_sigs__V1_cmi ;
]
let register_env =

View File

@ -50,7 +50,7 @@ let opened_modules = [
let dump oc files =
Printf.fprintf oc
"module Make (Tezos_protocol_environment : Tezos_protocol_environment_sigs_v1.T) = struct\n" ;
"module Make (Tezos_protocol_environment : Tezos_protocol_environment_sigs__V1.T) = struct\n" ;
Printf.fprintf oc "[@@@ocaml.warning \"-33\"]\n" ;
List.iter (Printf.fprintf oc "open %s\n") opened_modules ;
Printf.fprintf oc "[@@@ocaml.warning \"+33\"]\n" ;

View File

@ -8,7 +8,7 @@
(**************************************************************************)
module type PROTOCOL_V1 =
functor (Env : Tezos_protocol_environment_sigs_v1.T) -> Env.Updater.PROTOCOL
functor (Env : Tezos_protocol_environment_sigs.V1.T) -> Env.Updater.PROTOCOL
module VersionTable = Protocol_hash.Table

View File

@ -8,7 +8,7 @@
(**************************************************************************)
module type PROTOCOL_V1 =
functor (Env : Tezos_protocol_environment_sigs_v1.T) -> Env.Updater.PROTOCOL
functor (Env : Tezos_protocol_environment_sigs.V1.T) -> Env.Updater.PROTOCOL
val register: string -> (module PROTOCOL_V1) -> unit

View File

@ -1,7 +1,7 @@
(jbuild_version 1)
(rule
((targets (tezos_protocol_environment_sigs_v1.ml))
((targets (v1.ml))
(deps
(
;; Part of OCaml stdlib
@ -51,5 +51,4 @@
(library
((name tezos_protocol_environment_sigs)
(flags (:standard -nopervasives))
(wrapped false)
(modules ("Tezos_protocol_environment_sigs_v1"))))
(modules ("V1"))))

View File

@ -117,7 +117,7 @@ module Node_protocol_environment_sigs = struct
module type V1 = sig
include Tezos_protocol_environment_sigs_v1.T
include Tezos_protocol_environment_sigs.V1.T
with type Format.formatter = Format.formatter
and type 'a Data_encoding.t = 'a Data_encoding.t
and type 'a Lwt.t = 'a Lwt.t

View File

@ -83,7 +83,7 @@ module Node_protocol_environment_sigs : sig
module type V1 = sig
include Tezos_protocol_environment_sigs_v1.T
include Tezos_protocol_environment_sigs.V1.T
with type Format.formatter = Format.formatter
and type 'a Data_encoding.t = 'a Data_encoding.t
and type 'a Lwt.t = 'a Lwt.t