1Import('*') 2 3env = env.Clone() 4 5env.MSVC2013Compat() 6 7env.Append(CPPPATH = [ 8 '#/src/loader', 9 '#/src/gallium/winsys', 10]) 11 12env.Append(CPPDEFINES = [ 13 ('HAVE_PIPE_LOADER_DRI', '1'), 14 ('DROP_PIPE_LOADER_MISC', '1'), 15 ('GALLIUM_STATIC_TARGETS', '1'), 16]) 17 18source = env.ParseSourceList('Makefile.sources', 'COMMON_SOURCES') 19 20if env['HAVE_DRM']: 21 source += env.ParseSourceList('Makefile.sources', 'DRM_SOURCES') 22 23 env.PkgUseModules('DRM') 24 env.Append(LIBS = [libloader]) 25 26pipe_loader = env.ConvenienceLibrary( 27 target = 'pipe_loader', 28 source = source, 29) 30 31env.Alias('pipe_loader', pipe_loader) 32 33Export('pipe_loader') 34