mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-21 01:37:15 +03:00
dc32abb220
* Expose Daml LF features as a CPP flags. * Add missing text dependency
58 lines
1.4 KiB
Python
58 lines
1.4 KiB
Python
# 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
|
||
# ghcide’s 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",
|
||
],
|
||
)
|