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