(jbuild_version 1)

(executable
 ((name main)
  (public_name tezos-node)
  (libraries (tezos-base
              tezos-rpc-http
              tezos-node-updater
              tezos-node-p2p-base
              tezos-node-p2p
              tezos-node-shell
              tezos-embedded-protocol-genesis
              tezos-embedded-protocol-demo
              tezos-embedded-protocol-alpha
              cmdliner
              ssl))
  (flags (:standard -w -9+27-30-32-40@8
                    -safe-string
                    -open Tezos_base__TzPervasives
                    -open Tezos_rpc_http
                    -open Tezos_node_updater
                    -open Tezos_node_p2p_base
                    -open Tezos_node_p2p
                    -open Tezos_node_shell
                    -linkall))))

(install
 ((section bin)
  (files ((tezos-sandboxed-node.sh as tezos-sandboxed-node.sh)))))

(alias
 ((name runtest_indent)
  (deps ((glob_files *.ml) (glob_files *.mli)))
  (action (run bash ${libexec:tezos-stdlib:test-ocp-indent.sh} ${<}))))