diff options
author | David Robillard <d@drobilla.net> | 2019-07-28 18:53:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 22:43:19 +0200 |
commit | b0a92df939138ba3fb92d0d5b3cafcc822df4fec (patch) | |
tree | 7a3c330f97cf98a21ae6d7ea6dd42ec08941f184 /wscript | |
parent | 074538bae86584b962b9cd41304fed235f8731b1 (diff) | |
download | pugl-b0a92df939138ba3fb92d0d5b3cafcc822df4fec.tar.gz pugl-b0a92df939138ba3fb92d0d5b3cafcc822df4fec.tar.bz2 pugl-b0a92df939138ba3fb92d0d5b3cafcc822df4fec.zip |
Mac: Separate backends from platform implementation
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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'] |