Import('*')

env = env.Clone()

radeon_sources = [
    'radeon_drm_bo.c',
    'radeon_drm_cs.c',
    'radeon_drm_winsys.c',
]

try:
    env.ParseConfig('pkg-config --cflags libdrm')
except:
    print 'warning: not building Gallium Radeon'
    Return()

radeonwinsys = env.ConvenienceLibrary(
    target ='radeonwinsys',
    source = radeon_sources,
)

Export('radeonwinsys')
