2023-01-04 20:21:15 +03:00
|
|
|
# Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-04-12 14:10:16 +03:00
|
|
|
load("//bazel_tools:haskell.bzl", "da_haskell_library")
|
2019-04-04 11:33:38 +03:00
|
|
|
|
2019-04-12 14:10:16 +03:00
|
|
|
da_haskell_library(
|
2021-11-29 15:49:02 +03:00
|
|
|
name = "daml-lf-util",
|
|
|
|
srcs =
|
|
|
|
[
|
|
|
|
"src/DA/Daml/LF/Mangling.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/Error.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/Util.hs",
|
|
|
|
],
|
2019-09-06 12:01:09 +03:00
|
|
|
hackage_deps = [
|
2019-04-04 11:33:38 +03:00
|
|
|
"base",
|
|
|
|
"bytestring",
|
|
|
|
"either",
|
2021-11-29 15:49:02 +03:00
|
|
|
"text",
|
|
|
|
],
|
2022-05-12 11:53:10 +03:00
|
|
|
src_strip_prefix = "src",
|
2021-11-29 15:49:02 +03:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//compiler/daml-lf-ast",
|
|
|
|
"//daml-lf/archive:daml_lf_dev_archive_haskell_proto",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_haskell_library(
|
|
|
|
name = "daml-lf-proto-decode",
|
|
|
|
srcs = [
|
|
|
|
"src/DA/Daml/LF/Proto3/Archive/Decode.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/Decode.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/DecodeV1.hs",
|
|
|
|
],
|
|
|
|
hackage_deps = [
|
|
|
|
"base",
|
|
|
|
"containers",
|
2019-04-04 11:33:38 +03:00
|
|
|
"lens",
|
2021-11-29 15:49:02 +03:00
|
|
|
"cryptonite",
|
2019-04-04 11:33:38 +03:00
|
|
|
"memory",
|
2021-11-29 15:49:02 +03:00
|
|
|
"bytestring",
|
2019-06-26 12:15:24 +03:00
|
|
|
"mtl",
|
2019-04-24 18:59:08 +03:00
|
|
|
"proto3-suite",
|
2019-04-04 11:33:38 +03:00
|
|
|
"text",
|
2021-11-29 15:49:02 +03:00
|
|
|
"vector",
|
|
|
|
],
|
2022-05-12 11:53:10 +03:00
|
|
|
src_strip_prefix = "src",
|
2021-11-29 15:49:02 +03:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":daml-lf-util",
|
|
|
|
"//compiler/daml-lf-ast",
|
2021-11-30 19:24:08 +03:00
|
|
|
"//compiler/damlc/stable-packages:stable-packages-list",
|
2021-11-29 15:49:02 +03:00
|
|
|
"//daml-lf/archive:daml_lf_dev_archive_haskell_proto",
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_haskell_library(
|
|
|
|
name = "daml-lf-proto-encode",
|
|
|
|
srcs = [
|
|
|
|
"src/DA/Daml/LF/Proto3/Archive/Encode.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/Encode.hs",
|
|
|
|
"src/DA/Daml/LF/Proto3/EncodeV1.hs",
|
|
|
|
],
|
|
|
|
hackage_deps = [
|
|
|
|
"base",
|
|
|
|
"bytestring",
|
|
|
|
"cryptonite",
|
|
|
|
"memory",
|
|
|
|
"containers",
|
|
|
|
"mtl",
|
|
|
|
"lens",
|
|
|
|
"text",
|
|
|
|
"vector",
|
|
|
|
"proto3-suite",
|
2019-09-26 17:37:36 +03:00
|
|
|
"unordered-containers",
|
2021-11-29 15:49:02 +03:00
|
|
|
],
|
2022-05-12 11:53:10 +03:00
|
|
|
src_strip_prefix = "src",
|
2021-11-29 15:49:02 +03:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
":daml-lf-util",
|
|
|
|
"//compiler/daml-lf-ast",
|
|
|
|
"//daml-lf/archive:daml_lf_dev_archive_haskell_proto",
|
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
da_haskell_library(
|
|
|
|
name = "daml-lf-proto",
|
|
|
|
srcs = [
|
|
|
|
"src/DA/Daml/LF/Proto3/Archive.hs",
|
|
|
|
],
|
|
|
|
hackage_deps = [
|
|
|
|
"base",
|
|
|
|
"containers",
|
|
|
|
"cryptonite",
|
|
|
|
"memory",
|
|
|
|
"bytestring",
|
|
|
|
"mtl",
|
|
|
|
"lens",
|
|
|
|
"text",
|
2019-04-04 11:33:38 +03:00
|
|
|
"vector",
|
2021-11-29 15:49:02 +03:00
|
|
|
"proto3-suite",
|
|
|
|
"unordered-containers",
|
2019-04-04 11:33:38 +03:00
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
2019-04-12 14:10:16 +03:00
|
|
|
deps = [
|
2021-11-29 15:49:02 +03:00
|
|
|
":daml-lf-proto-decode",
|
|
|
|
":daml-lf-proto-encode",
|
|
|
|
":daml-lf-util",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//compiler/daml-lf-ast",
|
2019-10-15 12:36:11 +03:00
|
|
|
"//daml-lf/archive:daml_lf_dev_archive_haskell_proto",
|
2019-04-12 14:10:16 +03:00
|
|
|
"//libs-haskell/da-hs-base",
|
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|