diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-19 22:40:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-19 22:49:17 +0100 |
commit | c371fc511500acada422cdcf93658fc25e5106de (patch) | |
tree | 519d15df59ab94c579beceac57aac348c08de329 /libs/canvas/wscript | |
parent | 7d41e542fe54feaa24fc87004df2b0276b9941c3 (diff) |
Prepare NSView/OpenGL Canvas (to speed up rendering on [mac]OS[X]
This avoids Coregraphics (cairo_quartz_surface..) competely.
The openGL texture bypasses CG's slow argb_image and CGSColorMask
methods.
Diffstat (limited to 'libs/canvas/wscript')
-rw-r--r-- | libs/canvas/wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/canvas/wscript b/libs/canvas/wscript index 6294fe0d05..cdb6156f15 100644 --- a/libs/canvas/wscript +++ b/libs/canvas/wscript @@ -3,6 +3,7 @@ from waflib.extras import autowaf as autowaf from waflib import Options from waflib import TaskGen import os +import sys # Version of this package (even if built as a child) MAJOR = '0' @@ -96,6 +97,9 @@ def build(bld): obj.install_path = bld.env['LIBDIR'] obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ] + if sys.platform == 'darwin': + obj.source += [ 'nsglview.mm'] + # canvas unit-tests are outdated if False and bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'): unit_testobj = bld(features = 'cxx cxxprogram') |