Skip to content

Commit 233700e

Browse files
committed
Merge pull request #17 from ghc-ios/master
Add configuration for iOS.
2 parents f129106 + eb67678 commit 233700e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

OpenGLRaw.cabal

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,18 @@ library
256256
extra-libraries: opengl32
257257
else
258258
cpp-options: "-DCALLCONV=ccall"
259-
if !os(darwin) && flag(UseGlXGetProcAddress)
259+
if !os(darwin) && !os(ios) && flag(UseGlXGetProcAddress)
260260
cc-options: "-DUSE_GLXGETPROCADDRESS"
261261
else
262262
cc-options: "-DUSE_DLSYM"
263263
if os(darwin)
264264
cpp-options: "-DHANDLE_IS_POINTER"
265265
frameworks: OpenGL
266266
else
267-
extra-libraries: GL
267+
if os(ios)
268+
frameworks: OpenGLES
269+
else
270+
extra-libraries: GL
268271

269272
source-repository head
270273
type: git

0 commit comments

Comments
 (0)