mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
72a7bc63a6
* Add deploy-navigator command to daml helper. * Rebase * Organize ledger commands * Sandbox /= Remote Ledger, should not use that config.
61 lines
1.4 KiB
Python
61 lines
1.4 KiB
Python
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load("//bazel_tools:haskell.bzl", "da_haskell_binary", "da_haskell_library", "da_haskell_test")
|
|
load("//bazel_tools/packaging:packaging.bzl", "package_app")
|
|
|
|
da_haskell_library(
|
|
name = "daml-helper-lib",
|
|
srcs = glob(
|
|
["src/**/*.hs"],
|
|
exclude = ["src/DA/Daml/Helper/Main.hs"],
|
|
),
|
|
hazel_deps = [
|
|
"aeson",
|
|
"async",
|
|
"base",
|
|
"bytestring",
|
|
"directory",
|
|
"extra",
|
|
"filepath",
|
|
"http-client",
|
|
"http-types",
|
|
"monad-loops",
|
|
"network",
|
|
"open-browser",
|
|
"optparse-applicative",
|
|
"process",
|
|
"safe-exceptions",
|
|
"text",
|
|
"typed-process",
|
|
"utf8-string",
|
|
"yaml",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//daml-assistant:daml-project-config",
|
|
"//language-support/hs/bindings:hs-ledger",
|
|
],
|
|
)
|
|
|
|
da_haskell_binary(
|
|
name = "daml-helper",
|
|
srcs = ["src/DA/Daml/Helper/Main.hs"],
|
|
hazel_deps = [
|
|
"base",
|
|
"extra",
|
|
],
|
|
main_function = "DA.Daml.Helper.Main.main",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":daml-helper-lib",
|
|
"//libs-haskell/da-hs-base",
|
|
],
|
|
)
|
|
|
|
package_app(
|
|
name = "daml-helper-dist",
|
|
binary = ":daml-helper",
|
|
visibility = ["//visibility:public"],
|
|
)
|