aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 6 insertions, 1 deletions
diff --git a/wscript b/wscript
index 5b4a654..df3bc3f 100644
--- a/wscript
+++ b/wscript
@@ -123,7 +123,12 @@ def build(bld):
libs += ['cairo']
elif bld.env.TARGET_PLATFORM == 'darwin':
lib_source += ['pugl/detail/mac.m']
- framework = ['Cocoa', 'OpenGL']
+ framework = ['Cocoa']
+ if bld.is_defined('HAVE_GL'):
+ lib_source += ['pugl/detail/mac_gl.m']
+ framework += ['OpenGL']
+ if bld.is_defined('HAVE_CAIRO'):
+ lib_source += ['pugl/detail/mac_cairo.m']
else:
lib_source += ['pugl/detail/x11.c']
libs = ['X11']