• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#######################################################################
2# SConscript for graw-gdi
3
4Import('*')
5
6env = env.Clone()
7
8env.Append(CPPPATH = [
9    '#src/gallium/winsys/sw',
10])
11
12env.Prepend(LIBS = [
13    mesautil,
14    gallium,
15    'gdi32',
16    'user32',
17    'ws2_32',
18])
19
20sources = [
21    'graw_gdi.c',
22    graw_util,
23]
24
25if True:
26    env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_RBUG', 'GALLIUM_SOFTPIPE'])
27    env.Prepend(LIBS = [trace, rbug, softpipe])
28
29if env['llvm']:
30    env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
31    env.Prepend(LIBS = [llvmpipe])
32
33graw = env.SharedLibrary(
34    target = 'graw',
35    source = sources,
36    LIBS = ws_gdi + env['LIBS'],
37)
38
39if env['platform'] == 'windows':
40    graw = env.FindIxes(graw, 'LIBPREFIX', 'LIBSUFFIX')
41else:
42    graw = env.FindIxes(graw, 'SHLIBPREFIX', 'SHLIBSUFFIX')
43
44env.Alias('graw-gdi', graw)
45