1 #######################################################################
2 # SConscript for xlib winsys
12 '#src/gallium/state_trackers/glx/xlib',
15 env.Append(CPPDEFINES = ['USE_XSHM'])
17 env.Prepend(LIBS = env['X11_LIBS'])
19 # when GLES is enabled, gl* and _glapi_* belong to bridge_glapi and
20 # shared_glapi respectively
22 env.Prepend(LIBPATH = [shared_glapi.dir])
23 glapi = [bridge_glapi, 'glapi']
39 env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_GALAHAD', 'GALLIUM_SOFTPIPE'])
40 env.Prepend(LIBS = [trace, rbug, galahad, softpipe])
43 env.Append(CPPDEFINES = ['GALLIUM_LLVMPIPE'])
44 env.Prepend(LIBS = [llvmpipe])
47 libgl_1_5 = env.SharedLibrary(
50 SHLIBSUFFIX = env['SHLIBSUFFIX'] + '.1.5',
54 libgl = env.subst('${SHLIBPREFIX}GL${SHLIBSUFFIX}')
55 libgl_1 = libgl + '.1'
56 env.Command(libgl_1, libgl_1_5, "ln -sf ${SOURCE.file} ${TARGET}")
57 env.Command(libgl, libgl_1, "ln -sf ${SOURCE.file} ${TARGET}")
59 env.Alias('libgl-xlib', libgl)