st/vega: consolidate C sources list into Makefile.sources
[mesa.git] / src / gallium / state_trackers / vega / SConscript
1 #######################################################################
2 # SConscript for vega state_tracker
3
4 Import('*')
5
6 from sys import executable as python_cmd
7
8 env = env.Clone()
9
10 env.Append(CPPPATH = [
11 '#/src/mapi',
12 Dir('.'),
13 ])
14 env.Append(CPPDEFINES = [
15 'KHRONOS_DLL_EXPORTS',
16 ])
17
18 api_tmp, = env.CodeGenerate(
19 target = 'api_tmp.h',
20 script = '#src/mapi/mapi_abi.py',
21 source = '#src/mapi/vgapi/vgapi.csv',
22 command = python_cmd + ' $SCRIPT --printer vgapi --mode app $SOURCE > $TARGET'
23 )
24
25 st_vega = env.ConvenienceLibrary(
26 target = 'st_vega',
27 source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
28 )
29
30 Export('st_vega')