summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/svga/drm/SConscript
blob: 099acdac8c01cab5a61173c725867868a0d1f642 (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
Import('*')

env = env.Clone()

env.PkgUseModules('DRM')

if env['gcc'] or env['clang'] or env['icc']:
    env.Append(CCFLAGS = ['-fvisibility=hidden'])
    env.Append(CPPDEFINES = [
        'HAVE_STDINT_H', 
        'HAVE_SYS_TYPES_H',
        '-D_FILE_OFFSET_BITS=64',
    ])

env.Prepend(CPPPATH = [
    '#/src/gallium/drivers/svga',
    '#/src/gallium/drivers/svga/include',
])

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

svgadrm = env.ConvenienceLibrary(
    target = 'svgadrm',
    source = sources,
)

Export('svgadrm')