summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/radeon/python/SConscript
blob: 91cae986975715a525eaa64664880ccfeb2ac2ef (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 + gallium + env['LIBS'],
    )