summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader/SConscript
blob: 14e1b350aea8fe79807bee1861303533694db0ec (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
Import('*')

env = env.Clone()

env.MSVC2013Compat()

env.Append(CPPPATH = [
    '#/src/loader',
    '#/src/gallium/winsys',
])

env.Append(CPPDEFINES = [
    ('HAVE_PIPE_LOADER_DRI', '1'),
    ('DROP_PIPE_LOADER_MISC', '1'),
    ('GALLIUM_STATIC_TARGETS', '1'),
])

source = env.ParseSourceList('Makefile.sources', 'COMMON_SOURCES')

if env['HAVE_DRM']:
    source += env.ParseSourceList('Makefile.sources', 'DRM_SOURCES')

    env.PkgUseModules('DRM')
    env.Append(LIBS = [libloader])

pipe_loader = env.ConvenienceLibrary(
    target = 'pipe_loader',
    source = source,
)

env.Alias('pipe_loader', pipe_loader)

Export('pipe_loader')