File tree Expand file tree Collapse file tree 2 files changed +35
-57
lines changed Expand file tree Collapse file tree 2 files changed +35
-57
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ description:
13
13
Set package flags according to your needs.
14
14
15
15
build-type : Simple
16
- extra-source-files :
17
- README.md,
18
- ChangeLog.md
19
16
20
17
extra-source-files :
18
+ README.md,
19
+ ChangeLog.md,
21
20
imgui/*.h,
22
21
imgui/backends/*.h,
23
22
imgui/backends/*.mm,
@@ -148,6 +147,7 @@ library
148
147
import : common
149
148
hs-source-dirs :
150
149
src
150
+ generator
151
151
exposed-modules :
152
152
DearImGui
153
153
DearImGui.FontAtlas
@@ -163,6 +163,13 @@ library
163
163
DearImGui.Context
164
164
DearImGui.Enums
165
165
DearImGui.Structs
166
+ DearImGui.Generator
167
+ DearImGui.Generator.Parser
168
+ DearImGui.Generator.Tokeniser
169
+ DearImGui.Generator.Types
170
+ ghc-options :
171
+ -static -dynamic-too
172
+ -- create both libHSdear-imgui... .a and .so
166
173
cxx-options : -std=c++11
167
174
cxx-sources :
168
175
imgui/imgui.cpp
@@ -178,20 +185,39 @@ library
178
185
imstb_truetype.h
179
186
extra-libraries :
180
187
stdc++
181
- extra-bundled-libraries :
182
- HSdear-imgui-2.0.0-inplace
183
188
include-dirs :
184
189
imgui
185
190
build-depends :
186
- dear-imgui-generator
187
- , containers
188
- , managed
189
- , inline-c
191
+ managed
190
192
, inline-c-cpp
191
193
, StateVar
192
194
, unliftio
193
195
, vector
196
+ -- for the generator:
197
+ , template-haskell
198
+ >= 2.15 && < 2.19
199
+ , containers
200
+ ^>= 0.6.2.1
201
+ , directory
202
+ >= 1.3 && < 1.4
203
+ , filepath
204
+ >= 1.4 && < 1.5
205
+ , inline-c
206
+ >= 0.9.0.0 && < 0.10
207
+ , megaparsec
208
+ >= 9.0 && < 9.3
209
+ , parser-combinators
210
+ >= 1.2.0 && < 1.4
211
+ , scientific
212
+ >= 0.3.6.2 && < 0.3.8
194
213
, text
214
+ >= 1.2.4 && < 2.1
215
+ , th-lift
216
+ >= 0.7 && < 0.9
217
+ , transformers
218
+ >= 0.5.6 && < 0.6
219
+ , unordered-containers
220
+ >= 0.2.11 && < 0.3
195
221
196
222
if flag(disable-obsolete)
197
223
cxx-options : -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
@@ -285,40 +311,6 @@ library
285
311
exposed-modules :
286
312
DearImGui.GLFW.Vulkan
287
313
288
- library dear-imgui-generator
289
- import : common
290
- hs-source-dirs : generator
291
- exposed-modules :
292
- DearImGui.Generator
293
- , DearImGui.Generator.Parser
294
- , DearImGui.Generator.Tokeniser
295
- , DearImGui.Generator.Types
296
- build-depends :
297
- template-haskell
298
- >= 2.15 && < 2.19
299
- , containers
300
- ^>= 0.6.2.1
301
- , directory
302
- >= 1.3 && < 1.4
303
- , filepath
304
- >= 1.4 && < 1.5
305
- , inline-c
306
- >= 0.9.0.0 && < 0.10
307
- , megaparsec
308
- >= 9.0 && < 9.3
309
- , parser-combinators
310
- >= 1.2.0 && < 1.4
311
- , scientific
312
- >= 0.3.6.2 && < 0.3.8
313
- , text
314
- >= 1.2.4 && < 2.1
315
- , th-lift
316
- >= 0.7 && < 0.9
317
- , transformers
318
- >= 0.5.6 && < 0.6
319
- , unordered-containers
320
- >= 0.2.11 && < 0.3
321
-
322
314
executable test
323
315
import : common, exe-flags
324
316
main-is : Main.hs
You can’t perform that action at this time.
0 commit comments