mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
b324fc4551
changelog_begin changelog_end
59 lines
1.6 KiB
Python
59 lines
1.6 KiB
Python
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test",
|
|
"lf_scalacopts",
|
|
"silencer_plugin",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "interface",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
plugins = [
|
|
silencer_plugin,
|
|
],
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
"@maven//:org_scala_lang_modules_scala_collection_compat",
|
|
],
|
|
scalacopts = lf_scalacopts + [
|
|
"-P:silencer:lineContentFilters=import scala.collection.compat",
|
|
],
|
|
tags = ["maven_coordinates=com.daml:daml-lf-interface:__VERSION__"],
|
|
visibility = [
|
|
"//daml-assistant/daml-sdk:__subpackages__",
|
|
"//daml-lf:__subpackages__",
|
|
"//daml-script:__subpackages__",
|
|
"//extractor:__subpackages__",
|
|
"//language-support:__subpackages__",
|
|
"//ledger-service:__subpackages__",
|
|
"//navigator:__subpackages__",
|
|
],
|
|
deps = [
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/archive:daml_lf_dev_archive_proto_java",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "tests",
|
|
size = "small",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
scala_deps = [
|
|
"@maven//:org_scalaz_scalaz_core",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":interface",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"//daml-lf/parser",
|
|
],
|
|
)
|