-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.yaml
More file actions
141 lines (129 loc) · 3.19 KB
/
package.yaml
File metadata and controls
141 lines (129 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
verbatim:
cabal-version: ">=1.10"
name: nativefiledialog
author: DSLstandard
maintainer: qgeneral35@gmail.com
version: 0.0.1
license-file: LICENSE
synopsis: >
High-level Haskell bindings to https://github.com/btzy/nativefiledialog-extended
default-extensions:
- AllowAmbiguousTypes
- Arrows
- BinaryLiterals
- BlockArguments
- ConstraintKinds
- DataKinds
- DefaultSignatures
- DeriveAnyClass
- DeriveFoldable
- DeriveFunctor
- DeriveGeneric
- DeriveTraversable
- DerivingStrategies
- DerivingVia
- DuplicateRecordFields
- EmptyCase
- ExplicitForAll
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTs
- GeneralizedNewtypeDeriving
- ImportQualifiedPost
- LambdaCase
- LiberalTypeSynonyms
- MultiParamTypeClasses
- MultiWayIf
- NamedFieldPuns
- OverloadedLabels
- OverloadedRecordDot
- OverloadedStrings
- PartialTypeSignatures
- PatternSynonyms
- QuasiQuotes
- RankNTypes
- RecordWildCards
- RecursiveDo
- ScopedTypeVariables
- StandaloneDeriving
- TemplateHaskell
- TupleSections
- TypeApplications
- TypeFamilies
- TypeOperators
- UndecidableInstances
- ViewPatterns
ghc-options: -Wall -Wno-name-shadowing -Wno-orphans
# DEVELOPER NOTE: Link to a tutorial on using cabal flags to enable/disable
# assertions: https://guide.aelve.com/haskell/cpp-vww0qd72.html#item-oh9ytz0p
flags:
nfd-linux-use-portal:
description: >
Sets the @NFD_PORTAL@ cmake flag of @nativefiledialog@.
<https://github.com/btzy/nativefiledialog-extended> support GTK3 and
xdg-desktop-portal on Linux. When the flag is OFF, @nativefiledialog@ uses
GTK3. When ON, @nativefiledialog@ uses @xdg-desktop-portal@. For more
details, refer to the README of
<https://github.com/btzy/nativefiledialog-extended>.
default: true
manual: true
extra-source-files:
- nativefiledialog-extended/CMakeLists.txt
- nativefiledialog-extended/src/include/*
- nativefiledialog-extended/src/*
- nativefiledialog-extended/test/CMakeLists.txt
# build-type: Custom (hpack also sets it if the 'custom-setup' section is present)
custom-setup:
dependencies:
- base
- Cabal >=1.4 && <2.1
- directory <1.4
- filepath <1.5
- optics-core
- optics-th
library:
build-tools:
- c2hs
dependencies:
- base
- bytestring
- filepath
- inline-c
- managed
- storable-offset
- text >= 2.1.2 # Version 2.1.2 has peekCString. We want it.
source-dirs: src/
include-dirs:
- ./nativefiledialog-extended/src/include
extra-libraries:
- nfd
# TIP: See nativefiledialog-extended/CMakeLists.txt to learn what libraries to
# link.
when:
- condition: os(linux) && flag(nfd-linux-use-portal)
pkgconfig-depends: dbus-1
pkgconfig-depends: [sdl2, glfw3]
executables:
cli-demo:
source-dirs: app/
main: CliDemo.hs
other-modules: []
dependencies:
- GLFW-b
- base
- bindings-GLFW
- nativefiledialog
- optparse-applicative
- sdl2
- text
readme-demo:
source-dirs: app/
main: ReadmeDemo.hs
other-modules: []
dependencies:
- base
- directory
- filepath
- nativefiledialog
- text