forked from TristanCacqueray/dear-implot.hs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdear-implot.cabal
101 lines (95 loc) · 2.79 KB
/
dear-implot.cabal
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
cabal-version: 3.0
name: dear-implot
version: 1.0.0
build-type: Simple
extra-source-files:
README.md,
CONTRIBUTING.md,
implot/*.h,
implot/LICENSE,
dear-imgui.hs/imgui/*.h,
dear-imgui.hs/imgui/LICENSE.txt
flag use-wchar32
description:
Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...)
default:
True
manual:
True
flag use-ImDrawIdx32
description:
Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices.
Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices).
Another way to allow large meshes while keeping 16-bit indices is to handle ImDrawCmd::VtxOffset in your renderer.
Read about ImGuiBackendFlags_RendererHasVtxOffset for details.
default:
True
manual:
True
library
exposed-modules:
DearImGui.Raw.Plot
DearImGui.Plot
other-modules:
DearImGui.Plot.Generator
DearImGui.Plot.Generator.Parser
DearImGui.Plot.Context
DearImGui.Plot.Enums
DearImGui.Plot.Structs
--- from imgui via symlink:
DearImGui.Generator
DearImGui.Generator.Parser
DearImGui.Generator.Tokeniser
DearImGui.Generator.Types
DearImGui.Structs
DearImGui.Enums
DearImGui.Raw.Context
hs-source-dirs:
src
default-language:
Haskell2010
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints -Wderiving-defaults -Wmissing-deriving-strategies -static -dynamic-too
install-includes:
implot/implot.h
implot/implot_internal.h
imgui/imgui.h
imgui/imgui_internal.h
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
cxx-sources:
implot/implot.cpp
implot/implot_demo.cpp
implot/implot_items.cpp
cxx-options:
-std=c++11 -DIMGUI_DEFINE_MATH_OPERATORS
extra-libraries:
stdc++
include-dirs:
implot
dear-imgui.hs/imgui
if flag(use-wchar32)
cxx-options: -DIMGUI_USE_WCHAR32
cpp-options: -DIMGUI_USE_WCHAR32
if flag(use-ImDrawIdx32)
cxx-options: "-DImDrawIdx=unsigned int"
cpp-options: "-DImDrawIdx=unsigned int"
build-depends: base
, StateVar
, containers
, dear-imgui == 2.1.3
, inline-c
, inline-c-cpp
, managed
, template-haskell
, directory
, filepath
, text
, megaparsec
, parser-combinators
, scientific
, unordered-containers
, th-lift
, transformers
, vector
, unliftio