• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#######################################################################
2# SConscript for xlib winsys
3
4Import('*')
5
6env = env.Clone()
7
8env.Prepend(LIBS = [
9    ws_xlib,
10    mesautil,
11    gallium,
12])
13
14env.Append(LIBS = env['X11_LIBS'])
15env.Append(LIBPATH = env['X11_LIBPATH'])
16
17env.Append(CPPPATH = [
18    '#src/gallium/drivers',
19    '#src/gallium/include/state_tracker',
20    '#src/gallium/winsys',
21])
22
23env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE'])
24
25sources = [
26    'graw_xlib.c',
27    graw_util
28]
29
30if True:
31    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
32    env.Prepend(LIBS = [trace, rbug, softpipe])
33
34if env['llvm']:
35    env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
36    env.Prepend(LIBS = [llvmpipe])
37
38graw = env.SharedLibrary(
39    target ='graw',
40    source = sources,
41)
42
43graw = env.InstallSharedLibrary(graw, version=(1, 0))
44
45env.Alias('graw-xlib', graw)
46