summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/python/SConscript
blob: 57a3fb20759cd9343282f598dac1c6f7af3b7c7b (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
Import('*')

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

    env = env.Clone()
    
    env.Append(CPPPATH = '.')
    
    env.Tool('swig')
    env.Append(SWIGPATH = ['#src/gallium/include', '#src/gallium/include/pipe'])
    env.Append(SWIGFLAGS = ['-python', '-keyword'])
    
    env.ParseConfig('python-config --cflags --ldflags --libs')
    
    env.SharedLibrary(
    	target = '_gallium',
    	source = [
    		'gallium.i',
            'st_device.c',
            'st_softpipe_winsys.c',
    	],
        SHLIBPREFIX = '',
        LIBS = softpipe + auxiliaries + env['LIBS'],
    )