loader: always map the "amdgpu" kernel driver name to radeonsi (v2)
[mesa.git] / src / loader / SConscript
1 Import('*')
2
3 env = env.Clone()
4
5 env.MSVC2013Compat()
6
7 env.Prepend(CPPPATH = [
8 '#include'
9 ])
10
11 if env['drm']:
12 env.PkgUseModules('DRM')
13 env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
14
15 env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"'])
16
17 # parse Makefile.sources
18 sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
19
20 libloader = env.ConvenienceLibrary(
21 target = 'libloader',
22 source = sources,
23 )
24
25 env.Alias('libloader', libloader)
26 Export('libloader')