diff options
author | David Robillard <d@drobilla.net> | 2019-07-26 22:49:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-29 01:58:40 +0200 |
commit | 39553be4dd02773a7d71eaab63efbf5c76f5e9d2 (patch) | |
tree | 1999800ae6651dc61aef8059b045a2d10b958227 /wscript | |
parent | b63194bf2536b156bbda688b3bf9917a5dcdc3f3 (diff) | |
download | pugl-39553be4dd02773a7d71eaab63efbf5c76f5e9d2.tar.gz pugl-39553be4dd02773a7d71eaab63efbf5c76f5e9d2.tar.bz2 pugl-39553be4dd02773a7d71eaab63efbf5c76f5e9d2.zip |
Windows: Add Cairo support
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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'] |