blob: 6a315642c2c79ef3c52866a399486b21b7cb9ead [file] [log] [blame]
Import('*')
env = env.Clone()
env.MSVC2013Compat()
env.Prepend(CPPPATH = [
'#include'
])
if env['drm']:
env.PkgUseModules('DRM')
env.Append(CPPDEFINES = ['HAVE_LIBDRM'])
env.Append(CPPDEFINES = ['DEFAULT_DRIVER_DIR=\\"/usr/local/lib/dri\\"'])
# parse Makefile.sources
sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES')
libloader = env.ConvenienceLibrary(
target = 'libloader',
source = sources,
)
env.Alias('libloader', libloader)
Export('libloader')