diff options
author | pacien | 2022-09-04 18:18:27 +0200 |
---|---|---|
committer | pacien | 2022-09-04 18:18:27 +0200 |
commit | 11bbbae2850b9c45da697a8ed9626495a50a38c0 (patch) | |
tree | ff2713118f8b45d36905bfea2933f08d8e70066d /compiler/package.yaml | |
parent | e93f7b1eb84c083d67567115284c0002a3a7d5fc (diff) | |
parent | 8349be992b46b77dee921f484cfbff8b758ff756 (diff) | |
download | ldgallery-11bbbae2850b9c45da697a8ed9626495a50a38c0.tar.gz |
Merge branch 'develop': release v2.1v2.1
GitHub: related to #315
Diffstat (limited to 'compiler/package.yaml')
-rw-r--r-- | compiler/package.yaml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/compiler/package.yaml b/compiler/package.yaml index faa2174..7bd86e9 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.1 |
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 |
6 | author: "Pacien TRAN-GIRARD, Guillaume FOUET" | 6 | author: "Pacien TRAN-GIRARD, Guillaume FOUET" |
7 | maintainer: "" | 7 | copyright: "2019-2021 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 |
@@ -54,6 +53,15 @@ data-files: ["**/*"] | |||
54 | library: | 53 | library: |
55 | source-dirs: src | 54 | source-dirs: src |
56 | 55 | ||
56 | flags: | ||
57 | portable: | ||
58 | description: > | ||
59 | Make the output binary portable. | ||
60 | It will look in its own runtime location for its assets instead of | ||
61 | absolute installation paths. | ||
62 | manual: true | ||
63 | default: false | ||
64 | |||
57 | executables: | 65 | executables: |
58 | ldgallery: | 66 | ldgallery: |
59 | main: Main.hs | 67 | main: Main.hs |
@@ -64,6 +72,9 @@ executables: | |||
64 | - -with-rtsopts=-N | 72 | - -with-rtsopts=-N |
65 | dependencies: | 73 | dependencies: |
66 | - ldgallery-compiler | 74 | - ldgallery-compiler |
75 | when: | ||
76 | - condition: flag(portable) | ||
77 | cpp-options: -DFLAG_PORTABLE | ||
67 | 78 | ||
68 | tests: | 79 | tests: |
69 | ldgallery-compiler-test: | 80 | ldgallery-compiler-test: |