1import common 2 3Import('*') 4 5from sys import executable as python_cmd 6 7env = env.Clone() 8 9env.MSVC2013Compat() 10 11env.Prepend(CPPPATH = [ 12 '#include', 13 '#src', 14 '#src/mapi', 15 '#src/mesa', 16 '#src/gallium/include', 17 '#src/gallium/auxiliary', 18 '#src/util', 19]) 20 21env.CodeGenerate( 22 target = 'format_srgb.c', 23 script = 'format_srgb.py', 24 source = [], 25 command = python_cmd + ' $SCRIPT > $TARGET' 26) 27 28# parse Makefile.sources 29source_lists = env.ParseSourceList('Makefile.sources') 30 31mesautil_sources = ( 32 source_lists['MESA_UTIL_FILES'] + 33 source_lists['MESA_UTIL_GENERATED_FILES'] 34) 35 36mesautil = env.ConvenienceLibrary( 37 target = 'mesautil', 38 source = mesautil_sources, 39) 40 41env.Alias('mesautil', mesautil) 42Export('mesautil') 43 44 45u_atomic_test = env.Program( 46 target = 'u_atomic_test', 47 source = ['u_atomic_test.c'], 48) 49env.UnitTest("u_atomic_test", u_atomic_test) 50 51roundeven_test = env.Program( 52 target = 'roundeven_test', 53 source = ['roundeven_test.c'], 54) 55env.UnitTest("roundeven_test", roundeven_test) 56