1Import('*') 2 3env = env.Clone() 4 5env.PkgUseModules('DRM') 6 7if env['gcc'] or env['clang'] or env['icc']: 8 env.Append(CCFLAGS = ['-fvisibility=hidden']) 9 env.Append(CPPDEFINES = [ 10 'HAVE_STDINT_H', 11 'HAVE_SYS_TYPES_H', 12 '-D_FILE_OFFSET_BITS=64', 13 ]) 14 15env.Prepend(CPPPATH = [ 16 'include', 17 '#/src/gallium/drivers/svga', 18 '#/src/gallium/drivers/svga/include', 19]) 20 21env.Append(CPPDEFINES = [ 22]) 23 24sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES') 25 26svgadrm = env.ConvenienceLibrary( 27 target = 'svgadrm', 28 source = sources, 29) 30 31Export('svgadrm') 32