/
plutus-scripts-bench.cabal
104 lines (87 loc) · 2.91 KB
/
plutus-scripts-bench.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
cabal-version: 3.0
name: plutus-scripts-bench
version: 1.0.0.0
synopsis: Plutus scripts used for benchmarking
description: Plutus scripts used for benchmarking.
category: Cardano,
Benchmarking,
author: IOHK
maintainer: operations@iohk.io
license: Apache-2.0
license-files: LICENSE
NOTICE
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 project-config
if os(windows)
buildable: False
if impl(ghc < 9)
buildable: False
common common-definitions
build-depends: base >= 4.14 && < 4.17
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
-fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas
if flag(defer-plugin-errors)
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
library
import: common-definitions
, project-config
hs-source-dirs: src
if flag(unexpected_thunks)
cpp-options: -DUNEXPECTED_THUNKS
exposed-modules:
Cardano.Benchmarking.PlutusScripts
Cardano.Benchmarking.PlutusScripts.CustomCallTypes
Cardano.Benchmarking.ScriptAPI
other-modules:
Cardano.Benchmarking.PlutusScripts.CustomCall
Cardano.Benchmarking.PlutusScripts.EcdsaSecp256k1Loop
Cardano.Benchmarking.PlutusScripts.Loop
Cardano.Benchmarking.PlutusScripts.SchnorrSecp256k1Loop
--------------------------
-- IOG dependencies
--------------------------
build-depends:
, cardano-api ^>= 8.2
, plutus-ledger-api >=1.0.0
, plutus-tx >=1.0.0
, plutus-tx-plugin >=1.0.0
------------------------
-- Non-IOG dependencies
------------------------
build-depends:
, filepath
, bytestring
, serialise
, template-haskell
, text
executable gen-plutus
import: project-config
hs-source-dirs: app
main-is: gen-plutus.hs
default-language: Haskell2010
ghc-options: -threaded
-Wall
-rtsopts
"-with-rtsopts=-T"
build-depends: base >=4.12 && <5
, bytestring
, filepath
, optparse-applicative
, plutus-scripts-bench