1 #######################################################################
2 # SConscript for xlib winsys
16 env.Append(CPPPATH = [
17 '#src/gallium/drivers',
20 if env['platform'] == 'windows':
28 '../graw-xlib/graw_util.c',
32 env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
33 env.Prepend(LIBS = [softpipe])
36 env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
38 env.Prepend(LIBS = [llvmpipe])
40 # Need this for trace, identity drivers referenced by
41 # gallium_wrap_screen().
43 env.Prepend(LIBS = [gallium])
45 # TODO: write a wrapper function http://www.scons.org/wiki/WrapperFunctions
46 graw = env.SharedLibrary(
51 env.InstallSharedLibrary(graw, version=(1, 0))
53 if env['platform'] == 'windows':
54 graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
56 graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')