-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplutus-bworks.cabal
110 lines (90 loc) · 2.89 KB
/
plutus-bworks.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
cabal-version: 3.0
name: plutus-bworks
version: 1.0.0.0
author: Thang Tran
description: Create Plutus scripts for bWorks smart contracts.
build-type: Simple
flag unexpected_thunks
description: Turn on unexpected thunks checks
default: False
flag defer-plugin-errors
description:
Defer errors from the plugin, useful for things like Haddock that can't handle it.
default: False
manual: True
common common-definitions
build-depends: base ^>=4.14
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
ImportQualifiedPost
OverloadedStrings
-- See Plutus Tx readme for why we need the following flags:
-- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas
ghc-options:
-Wall -Wcompat -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
-Wunused-packages -fobject-code -fno-ignore-interface-pragmas
-fno-omit-interface-pragmas
if flag(defer-plugin-errors)
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
common maybe-Win32
library
import: common-definitions
hs-source-dirs: src
if os(windows)
build-depends: Win32
if flag(unexpected_thunks)
cpp-options: -DUNEXPECTED_THUNKS
exposed-modules:
BWorksV1.UnlockByBWorksWithOutDeadLine
BWorksV1.UnlockByBWorksWithOutDeadLine
BWorksV1.UnlockByBWorksWithDeadLine
BWorksV1.UnlockByEmpWithDeadLine
BWorksV1.UnlockByEmpWithoutDeadLine
BWorksV1.SimpleToTest
BWorksV2.UnlockByBWorksWithOutDeadLine
BWorksV2.UnlockByBWorksWithDeadLine
BWorksV2.UnlockByEmpWithDeadLine
BWorksV2.UnlockByEmpWithoutDeadLine
build-depends: plutus-script-utils >=1.0.0
build-depends:
, cardano-api >=1.35
, cardano-cli >=1.35
, cardano-ledger-alonzo
, cardano-ledger-babbage
, cardano-ledger-core
, cardano-ledger-shelley
, cardano-slotting
, ouroboros-consensus
, ouroboros-network
, plutus-ledger-api >=1.0.0
, plutus-tx >=1.0.0
, plutus-tx-plugin >=1.0.0
build-depends:
, aeson
, bytestring
, containers
, serialise
, strict-containers
, text
, transformers
, transformers-except
executable plutus-bworks
import: common-definitions
hs-source-dirs: app
main-is: plutus-bworks.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-T
-- Local components
build-depends: plutus-bworks
-- IOG dependencies
build-depends: cardano-api >=1.35
-- Non-IOG dependencies
build-depends:
, directory
, filepath
ghc-options: -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T
build-tool-depends:
, cardano-cli:cardano-cli >=1.35
, cardano-node:cardano-node >=1.35
, cardano-submit-api:cardano-submit-api >=1.35