aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/SConscript
blob: 0a0c0737422da3aeda537a48e4383911cc02d5b8 (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
Import('*')

env = env.Clone()

env.MSVC2013Compat()

env.Prepend(CPPPATH = [
    '#include',
    '#src',
    '#src/mapi',
    '#src/mesa',
    '#src/gallium/include',
    '#src/gallium/auxiliary',
])

# Make generated headers reachable from the include path.
env.Prepend(CPPPATH = [Dir('.').abspath, Dir('glsl').abspath])
env.Prepend(CPPPATH = [Dir('.').abspath, Dir('nir').abspath])

sources = env.ParseSourceList('Makefile.sources', 'LIBCOMPILER_FILES')

compiler = env.ConvenienceLibrary(
    target = 'compiler',
    source = sources
)
Export('compiler')

SConscript('SConscript.glsl')
SConscript('SConscript.nir')
SConscript('SConscript.spirv')