We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d03ba commit 2879a17Copy full SHA for 2879a17
sdl2.cabal
@@ -61,6 +61,11 @@ flag recent-ish
61
description: Use features from a more recent libsdl2 release.
62
default: True
63
manual: False
64
+
65
+flag pkgconfig
66
+ description: Use pkgconfig to sort out SDL2 dependency
67
+ default: True
68
+ manual: True
69
70
library
71
-- ghc-options: -Wall -Werror
@@ -130,11 +135,13 @@ library
130
135
if flag(recent-ish)
131
136
cpp-options:
132
137
-DRECENT_ISH
133
- pkgconfig-depends:
134
- sdl2 >= 2.0.10
138
+ if flag(pkgconfig)
139
+ pkgconfig-depends:
140
+ sdl2 >= 2.0.10
141
else
- sdl2 >= 2.0.6
142
143
144
+ sdl2 >= 2.0.6
145
146
build-depends:
147
base >= 4.7 && < 5,
0 commit comments