~marcoil/glproxy/detection

« back to all changes in this revision

Viewing changes to wscript

  • Committer: Marc Ordinas i Llopis
  • Date: 2012-03-22 09:47:32 UTC
  • mfrom: (43.1.12 work)
  • Revision ID: marc.ordinasillopis@collabora.co.uk-20120322094732-pyrc0qg7kpaxlb2x
Detection: Add backend detection and auto-selection.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    if Options.options.build_tests:
33
33
        ctx.check_cc(lib = 'm', uselib_store = 'm')
34
34
 
35
 
    ctx.env.append_unique('CFLAGS', '-Wall -Wextra'.split(' '))
 
35
    ctx.env.append_unique('CFLAGS', '-D_GNU_SOURCE -Wall -Wextra'.split(' '))
36
36
 
37
37
    # Prepend -O# and -g flags so that they can be overriden by the CFLAGS environment variable
38
38
    if Options.options.opt:
62
62
    if ctx.env.BUILD_TESTS:
63
63
        ctx.recurse('tests/tfp')
64
64
        ctx.recurse('tests/triangle')
 
65
        ctx.recurse('tests/list')
65
66
    
66
67
    ctx.install_files('${INCLUDEDIR}/GL', ctx.path.ant_glob('include/GL/*.h'))
67
68
    ctx.install_files('${INCLUDEDIR}/KHR', ctx.path.ant_glob('include/KHR/*.h'))