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