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