#######################################################################
# SConscript for xlib state_tracker

Import('*')

if env['platform'] == 'linux' \
        and 'mesa' in env['statetrackers']:

    env = env.Clone()

    env.Append(CPPPATH = [
        '#/src/mesa',
        '#/src/mesa/main',
    ])

    env.Append(CPPDEFINES = ['USE_XSHM'])

    st_xlib = env.ConvenienceLibrary(
	target = 'st_xlib',
	source = [
		'glx_api.c',
		'glx_getproc.c',
		'glx_usefont.c',
		'xm_api.c',
		]
    )
    Export('st_xlib')
