~glcompbench-dev/glcompbench/scale

« back to all changes in this revision

Viewing changes to src/wscript_build

  • Committer: Marc Ordinas i Llopis
  • Date: 2011-12-13 11:42:28 UTC
  • mfrom: (67.1.4 glproxy-flavor)
  • Revision ID: marc.ordinasillopis@linaro.org-20111213114228-gdqkhmxwb4c2kndx
glproxy: Added new flavor that uses glproxy to access the selected
backend.
Options: Added a --backend option to select which backend (glx, egl-gl,
egl-es2) to use. The available values depend on the executable's flavor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
common_libs = ['x11', 'xdamage', 'xcomposite', 'pixman', 'xext', 'xrender']
10
10
 
 
11
# libmatrix
11
12
if bld.env.BUILD_EGL_GL or bld.env.BUILD_GLX:
12
13
    bld(
13
14
        features = ['cxx', 'cxxstlib'],
30
31
        export_includes = 'libmatrix'
31
32
        )
32
33
 
 
34
if bld.env.BUILD_GLPROXY:
 
35
    bld(
 
36
        features = ['cxx', 'cxxstlib'],
 
37
        source   = bld.path.ant_glob('libmatrix/*.cc'),
 
38
        target   = 'matrix-glproxy',
 
39
        lib      = ['m'],
 
40
        includes = ['.'],
 
41
        defines  = ['USE_GLPROXY'],
 
42
        export_includes = 'libmatrix'
 
43
        )
 
44
 
 
45
# glcompbench
33
46
if bld.env.BUILD_EGL_GL:
34
47
    bld(
35
48
        features = ['cxx', 'cprogram'],
63
76
        defines  = ['USE_GLX', 'USE_GL']
64
77
        )
65
78
 
 
79
if bld.env.BUILD_GLPROXY:
 
80
    bld(
 
81
        features = ['cxx', 'cprogram'],
 
82
        source   = common_sources + egl_sources + glx_sources,
 
83
        target   = 'glcompbench',
 
84
        uselib   = ['glproxy'] + common_libs,
 
85
        use      = ['matrix-glproxy'],
 
86
        lib      = ['m'],
 
87
        defines  = ['USE_EGL', 'USE_GLES2', 'USE_GLX', 'USE_GL', 'USE_GLPROXY']
 
88
        )
 
89
 
66
90
bld.install_files('${PREFIX}/bin', ['gl-composite-benchmark'], chmod=0755)