aboutsummaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-26 22:49:30 +0200
committerDavid Robillard <d@drobilla.net>2019-07-29 01:58:40 +0200
commit39553be4dd02773a7d71eaab63efbf5c76f5e9d2 (patch)
tree1999800ae6651dc61aef8059b045a2d10b958227 /wscript
parentb63194bf2536b156bbda688b3bf9917a5dcdc3f3 (diff)
Windows: Add Cairo support
Diffstat (limited to 'wscript')
-rw-r--r--wscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/wscript b/wscript
index 86c909d..bbaeff6 100644
--- a/wscript
+++ b/wscript
@@ -97,8 +97,14 @@ def build(bld):
framework = []
libs = []
if bld.env.TARGET_PLATFORM == 'win32':
- lib_source = ['pugl/pugl_win.c', 'pugl/pugl_win_gl.c']
- libs = ['opengl32', 'gdi32', 'user32']
+ lib_source = ['pugl/pugl_win.c']
+ libs = ['gdi32', 'user32']
+ if bld.is_defined('HAVE_GL'):
+ lib_source += ['pugl/pugl_win_gl.c']
+ libs += ['opengl32']
+ if bld.is_defined('HAVE_CAIRO'):
+ lib_source += ['pugl/pugl_win_cairo.c']
+ libs += ['cairo']
elif bld.env.TARGET_PLATFORM == 'darwin':
lib_source = ['pugl/pugl_osx.m']
framework = ['Cocoa', 'OpenGL']