summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/radeon/python/SConscript
blob: 3200fd8d1b065165cb0410419aa3f794a0d413f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os.path

Import('*')

if env['platform'] == 'linux':

    env = env.Clone()
    
    env.Tool('python')
    
    env.ParseConfig('pkg-config --cflags --libs libdrm')
    
    env.Prepend(CPPPATH = [
        '#src/gallium/state_trackers/python',
        '../core',
    ])
    
    drivers = [
        softpipe,
        radeon,
        trace,
    ]
    
    sources = [
        'radeon_hardpipe_winsys.c',
        'xf86dri.c',
    ]
    
    env.SharedLibrary(
        target ='_gallium',
        source = sources,
        LIBS = [pyst] + drivers + auxiliaries + env['LIBS'],
    )