daml/compiler/damlc/daml-opts/BUILD.bazel
associahedron dc32abb220
Add a CPP flag for each available DAML-LF feature. (#2896)
* Expose Daml LF features as a CPP flags.

* Add missing text dependency
2019-09-16 11:34:02 +01:00

58 lines
1.4 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright (c) 2019 The DAML Authors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:haskell.bzl",
"da_haskell_library",
)
da_haskell_library(
name = "daml-opts-types",
srcs = ["daml-opts-types/DA/Daml/Options/Types.hs"],
hackage_deps = [
"base",
"directory",
"extra",
"filepath",
"ghc-lib",
"ghc-lib-parser",
"ghcide",
"mtl",
],
src_strip_prefix = "daml-opts-types",
visibility = ["//visibility:public"],
deps = [
"//compiler/daml-lf-ast",
"//libs-haskell/bazel-runfiles",
"//libs-haskell/da-hs-base",
],
)
# This contains the conversion from the DAML-dependent Options type to
# ghcides IdeOpts. We split this into a separate lib so that daml-opts-types
# does not need to depend on the preprocessor.
da_haskell_library(
name = "daml-opts",
srcs = ["daml-opts/DA/Daml/Options.hs"],
hackage_deps = [
"base",
"directory",
"extra",
"filepath",
"ghc-lib",
"ghc-lib-parser",
"ghcide",
"mtl",
"text",
],
src_strip_prefix = "daml-opts",
visibility = ["//visibility:public"],
deps = [
":daml-opts-types",
"//compiler/daml-lf-ast",
"//compiler/damlc/daml-preprocessor",
"//libs-haskell/bazel-runfiles",
"//libs-haskell/da-hs-base",
],
)