• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Import('*')
2
3env = env.Clone()
4
5env.MSVC2013Compat()
6
7env.Prepend(CPPPATH = [
8    '#include'
9])
10
11if env['drm']:
12    env.PkgUseModules('DRM')
13    env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
14
15env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"'])
16
17# parse Makefile.sources
18sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
19
20libloader = env.ConvenienceLibrary(
21    target = 'libloader',
22    source = sources,
23)
24
25env.Alias('libloader', libloader)
26Export('libloader')
27