diff options
Diffstat (limited to 'compiler/package.yaml')
-rw-r--r-- | compiler/package.yaml | 21 |
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 @@ | |||
1 | name: ldgallery-compiler | 1 | name: ldgallery-compiler |
2 | version: 2.0 | 2 | version: 2.3 |
3 | homepage: https://ldgallery.pacien.org | 3 | homepage: https://ldgallery.pacien.org |
4 | github: "pacien/ldgallery" | 4 | github: "pacien/ldgallery" |
5 | license: AGPL-3 | 5 | license: AGPL-3.0-only |
6 | author: "Pacien TRAN-GIRARD, Guillaume FOUET" | 6 | author: "Pacien TRAN-GIRARD, Guillaume FOUET" |
7 | maintainer: "" | 7 | copyright: "2019-2023 Pacien TRAN-GIRARD, Guillaume FOUET" |
8 | copyright: "2019-2020 Pacien TRAN-GIRARD, Guillaume FOUET" | ||
9 | 8 | ||
10 | extra-source-files: | 9 | extra-source-files: |
11 | - readme.md | 10 | - readme.md |
@@ -33,6 +32,8 @@ dependencies: | |||
33 | 32 | ||
34 | default-extensions: | 33 | default-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: ["**/*"] | |||
54 | library: | 55 | library: |
55 | source-dirs: src | 56 | source-dirs: src |
56 | 57 | ||
58 | flags: | ||
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 | |||
57 | executables: | 67 | executables: |
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 | ||
68 | tests: | 81 | tests: |
69 | ldgallery-compiler-test: | 82 | ldgallery-compiler-test: |