The script addition is a bit hacky, but there's no obvious straightforward arch/version-independent way to get most of the build path. And eventually, once issues with HLS etc. are sorted out we will revert to using Cabal hooks anyway.
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
cabal-version: 3.14
|
|
name: garnet
|
|
version: 0.1.0.0
|
|
license: BSD-3-Clause
|
|
author: Patrick Aldis
|
|
maintainer:
|
|
george.thomas@obsidian.systems
|
|
patrick.aldis@obsidian.systems
|
|
|
|
common common
|
|
default-language: GHC2024
|
|
default-extensions:
|
|
BlockArguments
|
|
DeriveAnyClass
|
|
DuplicateRecordFields
|
|
ImpredicativeTypes
|
|
LexicalNegation
|
|
MultiWayIf
|
|
NamedFieldPuns
|
|
NegativeLiterals
|
|
NoFieldSelectors
|
|
NoMonomorphismRestriction
|
|
OverloadedRecordDot
|
|
OverloadedStrings
|
|
RecordWildCards
|
|
ViewPatterns
|
|
ghc-options:
|
|
-Wall
|
|
-fdefer-type-errors
|
|
build-depends:
|
|
bytestring,
|
|
extra,
|
|
mtl,
|
|
process,
|
|
text,
|
|
|
|
library
|
|
import: common
|
|
exposed-modules:
|
|
GarnetRs.Raw
|
|
GarnetRs.Wrapped
|
|
hs-source-dirs: lib
|
|
include-dirs: rust/target/debug
|
|
extra-bundled-libraries: garnet_rs
|
|
build-depends:
|
|
base,
|
|
hs-bindgen,
|
|
hs-bindgen-runtime,
|
|
primitive,
|
|
template-haskell,
|
|
|
|
executable garnet
|
|
import: common
|
|
main-is: Main.hs
|
|
hs-source-dirs: exe
|
|
ghc-options:
|
|
-threaded
|
|
-rtsopts
|
|
-with-rtsopts=-N
|
|
build-depends:
|
|
base,
|
|
garnet,
|