summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/SConscript
blob: 1581182aec2f8788a0c6ef912e087cecfe36e14d (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
34
import sys
import os.path

Import('*')

if 'python' in env['statetrackers']:

    env = env.Clone()
    
    env.Tool('python')
    
    env.Tool('swig')
    env.Append(SWIGPATH = ['#src/gallium/include', '#src/gallium/include/pipe'])
    env.Append(SWIGFLAGS = ['-python', '-keyword'])
    
    env.Append(CPPPATH = '.')

    pyst = env.ConvenienceLibrary(
        target = 'pyst',
        source = [
            'gallium.i',
            'st_device.c',
            'st_sample.c',
            'st_softpipe_winsys.c',
        ],
    )

    env.SharedLibrary(
        target = '_gallium',
        source = [
            'st_hardpipe_winsys.c',
        ],
        LIBS = [pyst, softpipe, trace] + auxiliaries + env['LIBS'],
    )