~glmark2-dev/glmark2/cel-shading

« back to all changes in this revision

Viewing changes to src/wscript_build

  • Committer: Alexandros Frantzis
  • Date: 2013-03-04 19:02:58 UTC
  • mfrom: (260.1.8 canvas-generic)
  • Revision ID: alexandros.frantzis@canonical.com-20130304190258-035q8mulveyi2ori
CanvasGeneric: Replace custom Canvases with a customizable generic Canvas

The generic Canvas is customized by initializing it with a NativeState
(X11,DRM...) and a GLState (EGL,GLX). This separation of concerns makes
it easier to support new display systems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
all_sources = bld.path.ant_glob('*.cpp scene-ideas/*.cc scene-terrain/*.cpp')
2
2
common_sources = [f for f in all_sources if f.name.find('canvas-') == -1 and
3
3
                                            f.name.find('android') == -1 and
4
 
                                            f.name.find('egl-') == -1]
5
 
gl_sources = ['canvas-x11.cpp', 'canvas-x11-glx.cpp']
6
 
glesv2_sources = ['canvas-x11.cpp', 'canvas-x11-egl.cpp', 'egl-state.cpp']
7
 
gl_drm_sources = ['canvas-drm.cpp', 'egl-state.cpp']
8
 
glesv2_drm_sources = ['canvas-drm.cpp', 'egl-state.cpp']
 
4
                                            f.name.find('native-state-') == -1 and
 
5
                                            f.name.find('gl-state-') == -1]
 
6
gl_sources = ['canvas-generic.cpp', 'native-state-x11.cpp', 'gl-state-glx.cpp']
 
7
glesv2_sources = ['canvas-generic.cpp', 'native-state-x11.cpp', 'gl-state-egl.cpp']
 
8
gl_drm_sources = ['canvas-generic.cpp', 'native-state-drm.cpp', 'gl-state-egl.cpp']
 
9
glesv2_drm_sources = ['canvas-generic.cpp', 'native-state-drm.cpp', 'gl-state-egl.cpp']
9
10
libmatrix_sources = [f for f in bld.path.ant_glob('libmatrix/*.cc')
10
11
                     if not f.name.endswith('test.cc')]
11
12
includes = ['.', 'scene-ideas', 'scene-terrain']