-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathyoga.cabal
170 lines (155 loc) · 6.24 KB
/
yoga.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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
cabal-version: 2.2
-- Initial yoga.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: yoga
version: 0.0.0.8
synopsis: Bindings to Facebook's Yoga layout library
description: The <https://facebook.github.com/yoga Yoga> library from
<https://facebook.github.com/ Facebook> is a fast layout engine
written in C that implements flexbox. There are two
main ways to interface with these bindings. The high-level
bindings are stored in the Yoga module and provide a more
Haskell-like interface to the library. The other option is to
directly use the C-level bindings in "Bindings.Yoga". If you do
so you do so at your own risk (i.e. you must manage your own
memory).
The examples are not built nor included by default. Please
refer to the source tarball for examples on how to use this
library.
These bindings are not affiliated with Facebook in any way,
and have been developed separately for the sole purpose of
interfacing with their open source library.
license: BSD-3-Clause
license-file: LICENSE
author: Pavel Krajcevski
maintainer: [email protected]
copyright: 2017-present
category: Graphics
build-type: Simple
source-repository head
type: git
location: https://www.github.com/Mokosha/yoga-hs.git
library
default-language: Haskell2010
hs-source-dirs: lib
ghc-options: -Wall
if impl(ghc >= 8.0)
ghc-options: -Wno-redundant-constraints
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
build-tool-depends: hsc2hs:hsc2hs >= 0.68
include-dirs: yoga/
, yoga/yoga/
install-includes: YGConfig.h
YGEnums.h
YGMacros.h
YGNode.h
YGNodeLayout.h
YGNodeStyle.h
YGPixelGrid.h
YGValue.h
algorithm/AbsoluteLayout.h
algorithm/Align.h
algorithm/Baseline.h
algorithm/BoundAxis.h
algorithm/Cache.h
algorithm/CalculateLayout.h
algorithm/FlexDirection.h
algorithm/FlexLine.h
algorithm/PixelGrid.h
algorithm/SizingMode.h
algorithm/TrailingPosition.h
config/Config.h
debug/AssertFatal.h
debug/Log.h
debug/NodeToString.h
enums/Align.h
enums/Dimension.h
enums/Direction.h
enums/Display.h
enums/Edge.h
enums/Errata.h
enums/ExperimentalFeature.h
enums/FlexDirection.h
enums/Gutter.h
enums/Justify.h
enums/LogLevel.h
enums/MeasureMode.h
enums/NodeType.h
enums/Overflow.h
enums/PositionType.h
enums/PrintOptions.h
enums/Unit.h
enums/Wrap.h
enums/YogaEnums.h
event/event.h
node/CachedMeasurement.h
node/LayoutResults.h
node/Node.h
numeric/Comparison.h
numeric/FloatOptional.h
style/CompactValue.h
style/Style.h
style/StyleLength.h
Yoga.h
c-sources: lib/Bindings/glue.c
cxx-sources: yoga/yoga/YGConfig.cpp
yoga/yoga/YGEnums.cpp
yoga/yoga/YGNode.cpp
yoga/yoga/YGNodeLayout.cpp
yoga/yoga/YGNodeStyle.cpp
yoga/yoga/YGPixelGrid.cpp
yoga/yoga/YGValue.cpp
yoga/yoga/algorithm/AbsoluteLayout.cpp
yoga/yoga/algorithm/Baseline.cpp
yoga/yoga/algorithm/Cache.cpp
yoga/yoga/algorithm/CalculateLayout.cpp
yoga/yoga/algorithm/FlexLine.cpp
yoga/yoga/algorithm/PixelGrid.cpp
yoga/yoga/config/Config.cpp
yoga/yoga/debug/AssertFatal.cpp
yoga/yoga/debug/Log.cpp
yoga/yoga/debug/NodeToString.cpp
yoga/yoga/event/event.cpp
yoga/yoga/node/LayoutResults.cpp
yoga/yoga/node/Node.cpp
cxx-options: -fno-omit-frame-pointer
-fexceptions
-fvisibility=hidden
-ffunction-sections
-fdata-sections
-std=c++20
-DYG_ENABLE_EVENTS
extra-libraries: stdc++
exposed-modules:
Bindings.Yoga
Bindings.Yoga.Enums
Yoga
build-depends:
base >= 4 && < 6,
bindings-DSL
flag examples
description: Build examples
default: False
executable yoga-example
default-language: Haskell2010
main-is: Main.hs
hs-source-dirs: examples
ghc-options: -Wall -rtsopts -O3
build-depends: base > 4,
yoga
if flag(examples)
buildable: True
else
buildable: False
test-suite spec
default-language: Haskell2010
hs-source-dirs: test
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules: Bindings.YogaSpec
build-tool-depends: hspec-discover:hspec-discover
build-depends: base > 4,
hspec >= 2.7,
hspec-discover >= 2.7,
yoga