mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-21 01:37:15 +03:00
9976b4cd50
* kvutils: Use ScalaPB to generate a Scala JAR for daml_kvutils.proto. * Bazel: Delete the unused `da_java_binary` rule, and inline `_wrap_rule`. * Bazel: Factor out Java/Scala protobuf class generation into a helper. CHANGELOG_BEGIN CHANGELOG_END * daml-lf/archive: Use `proto_jars`. * Bazel: Remove the visibility modifier from `proto_jars`. It's too confusing. Just make everything public. * daml-lf/archive: Push protobuf source tarballs into `proto_jars`. * Bazel: Add comments to the various parts of `proto_jars`. * daml-assistant: Do unpleasant things with `location` in Bazel.
48 lines
1.3 KiB
Python
48 lines
1.3 KiB
Python
# Copyright (c) 2020 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",
|
|
)
|
|
|
|
da_scala_library(
|
|
name = "interface",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
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",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "tests",
|
|
size = "small",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":interface",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"//daml-lf/parser",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|