Jbuilder: Move client & node libraries in their own OPAM packages

This commit is contained in:
Grégoire Henry 2017-11-27 06:13:12 +01:00 committed by Benjamin Canou
parent cecd042daa
commit ab5b597eb1
202 changed files with 346 additions and 169 deletions

19
bin_client/jbuild Normal file
View File

@ -0,0 +1,19 @@
(jbuild_version 1)
(executable
((name main)
(public_name tezos-client)
(libraries (tezos-base
tezos-client-base
tezos-embedded-client-genesis
tezos-embedded-client-alpha))
(flags (:standard -w -9+27-30-32-40@8
-safe-string
-open Tezos_base__TzPervasives
-open Tezos_client_base
-linkall))))
(alias
((name runtest_indent)
(deps ((glob_files *.ml) (glob_files *.mli)))
(action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))

View File

@ -0,0 +1,19 @@
opam-version: "1.2"
version: "dev"
maintainer: "contact@tezos.com"
authors: [ "Tezos devteam" ]
homepage: "https://www.tezos.com/"
bug-reports: "https://gitlab.com/tezos/tezos/issues"
dev-repo: "https://gitlab.com/tezos/tezos.git"
license: "unreleased"
depends: [
"ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" }
"tezos-base"
]
build: [
[ "jbuilder" "build" "-p" name "-j" jobs ]
]
build-test: [
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

25
bin_node/jbuild Normal file
View File

@ -0,0 +1,25 @@
(jbuild_version 1)
(executable
((name main)
(public_name tezos-node)
(libraries (tezos-base
tezos-node-updater
tezos-node-net
tezos-node-shell
tezos-embedded-protocol-genesis
tezos-embedded-protocol-demo
tezos-embedded-protocol-alpha
cmdliner))
(flags (:standard -w -9+27-30-32-40@8
-safe-string
-open Tezos_base__TzPervasives
-open Tezos_node_updater
-open Tezos_node_net
-open Tezos_node_shell
-linkall))))
(alias
((name runtest_indent)
(deps ((glob_files *.ml) (glob_files *.mli)))
(action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))

23
bin_node/tezos-node.opam Normal file
View File

@ -0,0 +1,23 @@
opam-version: "1.2"
version: "dev"
maintainer: "contact@tezos.com"
authors: [ "Tezos devteam" ]
homepage: "https://www.tezos.com/"
bug-reports: "https://gitlab.com/tezos/tezos/issues"
dev-repo: "https://gitlab.com/tezos/tezos.git"
license: "unreleased"
depends: [
"ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" }
"tezos-base"
"tezos-embedded-protocol-genesis"
"tezos-embedded-protocol-demo"
"tezos-embedded-protocol-alpha"
"cmdliner"
]
build: [
[ "jbuilder" "build" "-p" name "-j" jobs ]
]
build-test: [
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

0
jbuild-workspace Normal file
View File

23
lib_client_base/jbuild Normal file
View File

@ -0,0 +1,23 @@
(jbuild_version 1)
(library
((name tezos_client_base)
(public_name tezos-client-base)
(libraries (tezos-base
tezos-node-shell
tezos-node-net
tezos-node-db
tezos-node-updater
tezos-protocol-compiler))
(flags (:standard -w -9+27-30-32-40@8
-safe-string
-open Tezos_base__TzPervasives
-open Tezos_node_net
-open Tezos_node_db
-open Tezos_node_updater
-open Tezos_node_shell))))
(alias
((name runtest_indent)
(deps ((glob_files *.ml) (glob_files *.mli)))
(action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))

View File

@ -0,0 +1,23 @@
opam-version: "1.2"
version: "dev"
maintainer: "contact@tezos.com"
authors: [ "Tezos devteam" ]
homepage: "https://www.tezos.com/"
bug-reports: "https://gitlab.com/tezos/tezos/issues"
dev-repo: "https://gitlab.com/tezos/tezos.git"
license: "unreleased"
depends: [
"ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" }
"tezos-base"
"tezos-embedded-protocol-genesis"
"tezos-embedded-protocol-demo"
"tezos-embedded-protocol-alpha"
"cmdliner"
]
build: [
[ "jbuilder" "build" "-p" name "-j" jobs ]
]
build-test: [
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

View File

@ -1,18 +1,21 @@
(jbuild_version 1)
(library
((name client_embedded_alpha)
(public_name tezos.client.embedded.alpha)
((name tezos_embedded_client_alpha)
(public_name tezos-embedded-client-alpha)
(libraries (tezos-base
tezos-embedded-protocol-alpha
tezos-embedded-protocol-alpha.raw
client_lib))
tezos-node-shell
tezos-client-base))
(library_flags (:standard -linkall))
(flags (:standard -w -9+27-30-32-40@8
-safe-string
-open Tezos_base__TzPervasives
-open Tezos_embedded_protocol_environment_alpha
-open Tezos_embedded_raw_protocol_alpha
-open Tezos_node_shell
-open Tezos_client_base
-open Tezos_context))))
(alias

View File

@ -0,0 +1,22 @@
opam-version: "1.2"
version: "dev"
maintainer: "contact@tezos.com"
authors: [ "Tezos devteam" ]
homepage: "https://www.tezos.com/"
bug-reports: "https://gitlab.com/tezos/tezos/issues"
dev-repo: "https://gitlab.com/tezos/tezos.git"
license: "unreleased"
depends: [
"ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" }
"tezos-base"
"tezos-embedded-protocol-alpha"
"tezos-embedded-protocol-alpha.raw"
"tezos-client-base"
]
build: [
[ "jbuilder" "build" "-p" name "-j" jobs ]
]
build-test: [
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

View File

@ -1,20 +1,23 @@
(jbuild_version 1)
(library
((name client_embedded_genesis)
(public_name tezos.client.embedded.genesis)
((name tezos_embedded_client_genesis)
(public_name tezos-embedded-client-genesis)
(libraries (tezos-base
tezos-embedded-protocol-genesis
tezos-embedded-protocol-genesis.raw
tezos-embedded-protocol-alpha.environment
tezos-embedded-protocol-alpha.raw
client_lib))
tezos-node-shell
tezos-client-base))
(library_flags (:standard -linkall))
(flags (:standard -w -9+27-30-32-40@8
-safe-string
-open Tezos_base__TzPervasives
-open Tezos_embedded_protocol_environment_genesis
-open Tezos_embedded_raw_protocol_genesis))))
-open Tezos_embedded_raw_protocol_genesis
-open Tezos_node_shell
-open Tezos_client_base))))
(alias
((name runtest_indent)

View File

@ -0,0 +1,24 @@
opam-version: "1.2"
version: "dev"
maintainer: "contact@tezos.com"
authors: [ "Tezos devteam" ]
homepage: "https://www.tezos.com/"
bug-reports: "https://gitlab.com/tezos/tezos/issues"
dev-repo: "https://gitlab.com/tezos/tezos.git"
license: "unreleased"
depends: [
"ocamlfind" { build }
"jbuilder" { build & >= "1.0+beta15" }
"tezos-base"
"tezos-embedded-protocol-genesis"
"tezos-embedded-protocol-genesis.raw"
"tezos-embedded-protocol-alpha.environment"
"tezos-embedded-protocol-alpha.raw"
"tezos-client-base"
]
build: [
[ "jbuilder" "build" "-p" name "-j" jobs ]
]
build-test: [
[ "jbuilder" "runtest" "-p" name "-j" jobs ]
]

View File

@ -4,7 +4,7 @@
((targets (environment.ml))
(action
(write-file ${@}
"include Tezos_protocol_environment.Make(struct let name = \"alpha\" end)()"))))
"include Tezos_node_updater.Tezos_protocol_environment.Make(struct let name = \"alpha\" end)()"))))
(rule
((targets (registerer.ml))
@ -12,7 +12,7 @@
(write-file ${@}
"
let () =
let module Ignored = State.Register_embedded_protocol
let module Ignored = Tezos_node_shell.State.Register_embedded_protocol
(Tezos_embedded_protocol_environment_alpha.Environment)
(Tezos_embedded_raw_protocol_alpha.Main)
(struct
@ -28,7 +28,7 @@ let () =
((name tezos_embedded_protocol_environment_alpha)
(public_name tezos-embedded-protocol-alpha.environment)
(library_flags (:standard -linkall))
(libraries (tezos.node.updater))
(libraries (tezos-node-updater))
(modules (Environment))))
(library
@ -49,5 +49,5 @@ let () =
((name tezos_embedded_protocol_alpha)
(public_name tezos-embedded-protocol-alpha)
(library_flags (:standard -linkall))
(libraries (tezos_embedded_raw_protocol_alpha tezos.node.shell))
(libraries (tezos_embedded_raw_protocol_alpha tezos-node-shell))
(modules (Registerer))))

Some files were not shown because too many files have changed in this diff Show More