summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/svga/drm/SConscript
blob: b049ea60aa8d98cdf32c3d6965bd60f02a1d15d3 (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
34
35
36
37
38
39
40
41
Import('*')

env = env.Clone()

env.ParseConfig('pkg-config --cflags libdrm')

if env['gcc']:
    env.Append(CCFLAGS = ['-fvisibility=hidden'])
    env.Append(CPPDEFINES = [
        'HAVE_STDINT_H', 
        'HAVE_SYS_TYPES_H',
        '-D_FILE_OFFSET_BITS=64',
    ])
    
env.Prepend(CPPPATH = [
    'include',
    '#/src/gallium/drivers/svga',
    '#/src/gallium/drivers/svga/include',
])

env.Append(CPPDEFINES = [
])

sources = [
    'vmw_buffer.c',
    'vmw_context.c',
    'vmw_fence.c',
    'vmw_screen.c',
    'vmw_screen_dri.c',
    'vmw_screen_ioctl.c',
    'vmw_screen_pools.c',
    'vmw_screen_svga.c',
    'vmw_surface.c',
]

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

Export('svgadrm')