mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
1872c668a5
Change requested by Manoj. CHANGELOG_BEGIN CHANGELOG_END
58 lines
1.8 KiB
Python
58 lines
1.8 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 = "engine",
|
|
srcs = glob(["src/main/**/*.scala"]),
|
|
scalacopts = lf_scalacopts,
|
|
tags = ["maven_coordinates=com.digitalasset:daml-lf-engine:__VERSION__"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/transaction",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
"@maven//:org_typelevel_paiges_core_2_12",
|
|
],
|
|
)
|
|
|
|
# TODO(JM): It would make sense to break up the tests
|
|
# into individual targets (so that individual tests can
|
|
# be cached!). There's the "da_scala_test_suite"
|
|
# macro that will do that for you, but one should separate
|
|
# the utilities from the tests.
|
|
da_scala_test(
|
|
name = "tests",
|
|
timeout = "moderate",
|
|
srcs = glob(["src/test/**/*.scala"]),
|
|
data = [
|
|
"//daml-lf/tests:BasicTests.dar",
|
|
"//daml-lf/tests:LargeTransaction.dar",
|
|
"//daml-lf/tests:Optional.dar",
|
|
],
|
|
scalacopts = lf_scalacopts,
|
|
deps = [
|
|
":engine",
|
|
"//bazel_tools/runfiles:scala_runfiles",
|
|
"//daml-lf/archive:daml_lf_archive_reader",
|
|
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/interpreter",
|
|
"//daml-lf/language",
|
|
"//daml-lf/parser",
|
|
"//daml-lf/transaction",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:com_storm_enroute_scalameter_core_2_12",
|
|
"@maven//:org_scalatest_scalatest_2_12",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
],
|
|
)
|