1 Import('*') 2 3 env = env.Clone() 4 5 if env['suncc']: 6 print 'warning: not building svga' 7 Return() 8 9 if env['platform'] in ['linux']: 10 env.Append(CCFLAGS = ['-fvisibility=hidden']) 11 12 if env['gcc']: 13 env.Append(CPPDEFINES = [ 14 'HAVE_STDINT_H', 15 'HAVE_SYS_TYPES_H', 16 ]) 17 18 env.Prepend(CPPPATH = [ 19 'include', 20 ]) 21 22 env.Append(CPPDEFINES = [ 23 ]) 24 25 sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES') 26 27 svga = env.ConvenienceLibrary( 28 target = 'svga', 29 source = sources, 30 ) 31 32 env.Alias('svga', svga) 33 34 Export('svga') 35