aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-28 18:53:31 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 22:43:19 +0200
commitb0a92df939138ba3fb92d0d5b3cafcc822df4fec (patch)
tree7a3c330f97cf98a21ae6d7ea6dd42ec08941f184 /wscript
parent074538bae86584b962b9cd41304fed235f8731b1 (diff)
Mac: Separate backends from platform implementation
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']