• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Import('*')
2
3env = drienv.Clone()
4
5env.Append(CPPPATH = [
6    '#/src/gallium/winsys/sw/dri',
7])
8
9env.Prepend(LIBS = [
10    st_drisw,
11    ws_dri,
12    trace,
13    rbug,
14    mesa,
15    glsl,
16    gallium,
17    COMMON_DRI_SW_OBJECTS
18])
19
20if True:
21    env.Append(CPPDEFINES = [
22        'GALLIUM_SOFTPIPE',
23        'GALLIUM_RBUG',
24        'GALLIUM_TRACE',
25    ])
26    env.Prepend(LIBS = [softpipe])
27
28if env['llvm']:
29    env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
30    env.Prepend(LIBS = [llvmpipe])
31
32swrast_sources = [
33    'swrast_drm_api.c'
34]
35
36module = env.LoadableModule(
37    target ='swrast_dri.so',
38    source = swrast_sources,
39    SHLIBPREFIX = '',
40)
41
42module = env.InstallSharedLibrary(module)
43
44env.Alias('dri-swrast', module)
45