~ubuntu-branches/ubuntu/raring/glmark2/raring

« back to all changes in this revision

Viewing changes to src/wscript_build

  • Committer: Bazaar Package Importer
  • Author(s): Alexandros Frantzis
  • Date: 2011-01-25 17:53:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110125175350-hoztk110d79k3wjt
Tags: 11.01-0ubuntu1
* New upstream version 11.01 (LP: #707492).
* debian/rules:
  - Use the new --enable-glesv2, --enable-gl configure flags.
* debian/copyright:
  - Update copyright.
  - Change main source license to GPL-3+ (from GPL-3).
* debian/control:
  - Change maintainer to "Linaro Graphics Working Group".
* debian/watch:
  - Add watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
all_sources = bld.path.ant_glob('*.cpp').split();
2
 
common_sources = [f for f in all_sources if f.find('screen-') == -1]
 
1
all_sources = bld.path.ant_glob('*.cpp')
 
2
common_sources = [f for f in all_sources if f.name.find('screen-') == -1]
3
3
gl_sources = ['screen-sdl.cpp', 'screen-sdl-gl.cpp']
4
4
glesv2_sources = ['screen-sdl.cpp', 'screen-sdl-glesv2.cpp']
5
5
 
6
6
if bld.env.USE_GL:
7
 
        bld(
8
 
                features     = ['cxx', 'cprogram'],
9
 
                source       = common_sources + gl_sources,
10
 
                target       = 'glmark2',
11
 
                uselib       = ['sdl', 'gl'],
12
 
                lib          = ['m'],
13
 
                defines      = ['USE_GL']
14
 
                )
 
7
    bld(
 
8
        features     = ['cxx', 'cprogram'],
 
9
        source       = common_sources + gl_sources,
 
10
        target       = 'glmark2',
 
11
        uselib       = ['sdl', 'gl'],
 
12
        lib          = ['m'],
 
13
        defines      = ['USE_GL']
 
14
        )
15
15
 
16
16
if bld.env.USE_GLESv2:
17
 
        bld(
18
 
                features     = ['cc', 'cstaticlib'],
19
 
                source       = bld.path.ant_glob('sdlgles/*.c'),
20
 
                target       = 'sdlgles',
21
 
                uselib       = ['sdl', 'glesv2', 'egl'],
22
 
                lib          = ['m'],
23
 
                )
24
 
        bld(
25
 
                features     = ['cxx', 'cprogram'],
26
 
                source       = common_sources + glesv2_sources,
27
 
                target       = 'glmark2-es2',
28
 
                uselib       = ['sdl', 'glesv2'],
29
 
                uselib_local = ['sdlgles'],
30
 
                lib          = ['m'],
31
 
                defines      = ['USE_GLESv2']
32
 
                )
 
17
    bld(
 
18
        features     = ['c', 'cstlib'],
 
19
        source       = bld.path.ant_glob('sdlgles/*.c'),
 
20
        target       = 'sdlgles',
 
21
        uselib       = ['sdl', 'glesv2', 'egl']
 
22
        )
 
23
    bld(
 
24
        features     = ['cxx', 'cprogram'],
 
25
        source       = common_sources + glesv2_sources,
 
26
        target       = 'glmark2-es2',
 
27
        uselib       = ['sdl', 'glesv2'],
 
28
        use          = ['sdlgles'],
 
29
        lib          = ['m', 'dl'],
 
30
        defines      = ['USE_GLESv2']
 
31
        )