From eb67678262ac6feab1ec65891445a802957182b0 Mon Sep 17 00:00:00 2001 From: Stephen Blackheath Date: Sat, 31 Aug 2013 18:28:08 +1200 Subject: [PATCH] Add configuration for iOS. --- OpenGLRaw.cabal | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenGLRaw.cabal b/OpenGLRaw.cabal index a37fd822..3f0f0323 100644 --- a/OpenGLRaw.cabal +++ b/OpenGLRaw.cabal @@ -256,7 +256,7 @@ library extra-libraries: opengl32 else cpp-options: "-DCALLCONV=ccall" - if !os(darwin) && flag(UseGlXGetProcAddress) + if !os(darwin) && !os(ios) && flag(UseGlXGetProcAddress) cc-options: "-DUSE_GLXGETPROCADDRESS" else cc-options: "-DUSE_DLSYM" @@ -264,7 +264,10 @@ library cpp-options: "-DHANDLE_IS_POINTER" frameworks: OpenGL else - extra-libraries: GL + if os(ios) + frameworks: OpenGLES + else + extra-libraries: GL source-repository head type: git