2019-08-13 19:23:03 +03:00
|
|
|
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
2019-04-04 11:33:38 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
load(
|
2019-04-12 14:10:16 +03:00
|
|
|
"//bazel_tools:scala.bzl",
|
|
|
|
"da_scala_library",
|
|
|
|
"da_scala_test",
|
|
|
|
"lf_scalacopts",
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_library(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "data",
|
|
|
|
srcs = glob(["src/main/**/*.scala"]),
|
2019-12-11 12:22:38 +03:00
|
|
|
plugins = [
|
|
|
|
"@maven//:org_spire_math_kind_projector_2_12",
|
|
|
|
],
|
2019-04-12 14:10:16 +03:00
|
|
|
scalacopts = lf_scalacopts,
|
|
|
|
tags = ["maven_coordinates=com.digitalasset:daml-lf-data:__VERSION__"],
|
|
|
|
visibility = [
|
|
|
|
"//visibility:public",
|
|
|
|
],
|
|
|
|
deps = [
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
2019-04-12 14:10:16 +03:00
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
da_scala_test(
|
2019-04-12 14:10:16 +03:00
|
|
|
name = "data-test",
|
|
|
|
size = "small",
|
|
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
|
|
scalacopts = lf_scalacopts,
|
|
|
|
deps = [
|
|
|
|
":data",
|
2019-08-01 18:10:56 +03:00
|
|
|
"//daml-lf/data-scalacheck",
|
2019-10-28 15:53:14 +03:00
|
|
|
"@maven//:org_scalacheck_scalacheck_2_12",
|
|
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
|
|
"@maven//:org_scalaz_scalaz_scalacheck_binding_2_12",
|
2019-04-12 14:10:16 +03:00
|
|
|
],
|
2019-04-04 11:33:38 +03:00
|
|
|
)
|