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 15# parse Makefile.sources 16sources = env.ParseSourceList('Makefile.sources', 'LOADER_C_FILES') 17 18libloader = env.ConvenienceLibrary( 19 target = 'libloader', 20 source = sources, 21) 22 23env.Alias('libloader', libloader) 24Export('libloader') 25