aboutsummaryrefslogtreecommitdiff
path: root/compiler/package.yaml
diff options
context:
space:
mode:
authorzeroinformatique2021-06-29 17:23:22 +0200
committerGitHub2021-06-29 17:23:22 +0200
commit1cf6dd4243a72935d382d62bb2a79ff13186e70d (patch)
tree8f6447aa8dc0802eea625fd61fc8ac895e421b4f /compiler/package.yaml
parent622af23bb3ce8d6dc8dc1d658cb7f01bc905ef2c (diff)
parent083f0658399afc206ea0751415d54a50d2aa4fe9 (diff)
downloadldgallery-1cf6dd4243a72935d382d62bb2a79ff13186e70d.tar.gz
Merge pull request #294 from ldgallery/pacien-20210629-portable-viewer-dist
compiler: portable viewer dist
Diffstat (limited to 'compiler/package.yaml')
-rw-r--r--compiler/package.yaml14
1 files changed, 13 insertions, 1 deletions
diff --git a/compiler/package.yaml b/compiler/package.yaml
index faa2174..b02a40a 100644
--- a/compiler/package.yaml
+++ b/compiler/package.yaml
@@ -5,7 +5,7 @@ github: "pacien/ldgallery"
5license: AGPL-3 5license: AGPL-3
6author: "Pacien TRAN-GIRARD, Guillaume FOUET" 6author: "Pacien TRAN-GIRARD, Guillaume FOUET"
7maintainer: "" 7maintainer: ""
8copyright: "2019-2020 Pacien TRAN-GIRARD, Guillaume FOUET" 8copyright: "2019-2021 Pacien TRAN-GIRARD, Guillaume FOUET"
9 9
10extra-source-files: 10extra-source-files:
11- readme.md 11- readme.md
@@ -54,6 +54,15 @@ data-files: ["**/*"]
54library: 54library:
55 source-dirs: src 55 source-dirs: src
56 56
57flags:
58 portable:
59 description: >
60 Make the output binary portable.
61 It will look in its own runtime location for its assets instead of
62 absolute installation paths.
63 manual: true
64 default: false
65
57executables: 66executables:
58 ldgallery: 67 ldgallery:
59 main: Main.hs 68 main: Main.hs
@@ -64,6 +73,9 @@ executables:
64 - -with-rtsopts=-N 73 - -with-rtsopts=-N
65 dependencies: 74 dependencies:
66 - ldgallery-compiler 75 - ldgallery-compiler
76 when:
77 - condition: flag(portable)
78 cpp-options: -DFLAG_PORTABLE
67 79
68tests: 80tests:
69 ldgallery-compiler-test: 81 ldgallery-compiler-test: