mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
878429e3bf
copyright update 2020 * update template * run script: `dade-copyright-headers update .` * update script * manual adjustments * exclude frozen proto files from further header checks (by adding NO_AUTO_COPYRIGHT files)
42 lines
960 B
Python
42 lines
960 B
Python
# Copyright (c) 2020 The DAML Authors. 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 = "parser",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
visibility = [
|
|
"//daml-lf:__subpackages__",
|
|
"//ledger:__subpackages__",
|
|
],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"@maven//:org_scala_lang_modules_scala_parser_combinators_2_12",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|
|
|
|
da_scala_test(
|
|
name = "parser-test",
|
|
size = "small",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
visibility = [
|
|
"//daml-lf:__subpackages__",
|
|
],
|
|
deps = [
|
|
":parser",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|