aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/SConscript
blob: 29d5498c6c47eaef172ef60e0704cda610a7b416 (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
#######################################################################
# SConscript for vega state_tracker

Import('*')

from sys import executable as python_cmd

env = env.Clone()

env.Append(CPPPATH = [
    '#/src/mapi',
    Dir('.'),
])
env.Append(CPPDEFINES = [
    'KHRONOS_DLL_EXPORTS',
])

api_tmp, = env.CodeGenerate(
        target = 'api_tmp.h',
        script = '#src/mapi/mapi_abi.py',
        source = '#src/mapi/vgapi/vgapi.csv',
        command = python_cmd + ' $SCRIPT --printer vgapi --mode app $SOURCE > $TARGET'
)

st_vega = env.ConvenienceLibrary(
    target = 'st_vega',
    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
)

Export('st_vega')