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