1 Import('*') 2 3 env = env.Clone() 4 5 env.PkgUseModules('DRM') 6 7 if 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 15 env.Prepend(CPPPATH = [ 16 'include', 17 '#/src/gallium/drivers/svga', 18 '#/src/gallium/drivers/svga/include', 19 ]) 20 21 env.Append(CPPDEFINES = [ 22 ]) 23 24 sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES') 25 26 svgadrm = env.ConvenienceLibrary( 27 target = 'svgadrm', 28 source = sources, 29 ) 30 31 Export('svgadrm') 32