aboutsummaryrefslogtreecommitdiff
path: root/compiler/package.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/package.yaml')
-rw-r--r--compiler/package.yaml21
1 files changed, 17 insertions, 4 deletions
diff --git a/compiler/package.yaml b/compiler/package.yaml
index faa2174..3d54d85 100644
--- a/compiler/package.yaml
+++ b/compiler/package.yaml
@@ -1,11 +1,10 @@
1name: ldgallery-compiler 1name: ldgallery-compiler
2version: 2.0 2version: 2.3
3homepage: https://ldgallery.pacien.org 3homepage: https://ldgallery.pacien.org
4github: "pacien/ldgallery" 4github: "pacien/ldgallery"
5license: AGPL-3 5license: AGPL-3.0-only
6author: "Pacien TRAN-GIRARD, Guillaume FOUET" 6author: "Pacien TRAN-GIRARD, Guillaume FOUET"
7maintainer: "" 7copyright: "2019-2023 Pacien TRAN-GIRARD, Guillaume FOUET"
8copyright: "2019-2020 Pacien TRAN-GIRARD, Guillaume FOUET"
9 8
10extra-source-files: 9extra-source-files:
11- readme.md 10- readme.md
@@ -33,6 +32,8 @@ dependencies:
33 32
34default-extensions: 33default-extensions:
35- DuplicateRecordFields 34- DuplicateRecordFields
35- DisambiguateRecordFields
36- OverloadedRecordDot
36- DeriveGeneric 37- DeriveGeneric
37- DeriveDataTypeable 38- DeriveDataTypeable
38- DeriveAnyClass 39- DeriveAnyClass
@@ -54,6 +55,15 @@ data-files: ["**/*"]
54library: 55library:
55 source-dirs: src 56 source-dirs: src
56 57
58flags:
59 portable:
60 description: >
61 Make the output binary portable.
62 It will look in its own runtime location for its assets instead of
63 absolute installation paths.
64 manual: true
65 default: false
66
57executables: 67executables:
58 ldgallery: 68 ldgallery:
59 main: Main.hs 69 main: Main.hs
@@ -64,6 +74,9 @@ executables:
64 - -with-rtsopts=-N 74 - -with-rtsopts=-N
65 dependencies: 75 dependencies:
66 - ldgallery-compiler 76 - ldgallery-compiler
77 when:
78 - condition: flag(portable)
79 cpp-options: -DFLAG_PORTABLE
67 80
68tests: 81tests:
69 ldgallery-compiler-test: 82 ldgallery-compiler-test: