Ticket #29489: patch-SConstruct.diff

File patch-SConstruct.diff, 982 bytes (added by jason@…, 14 years ago)
  • SConstruct

    old new  
    4848# opts.Add(BoolVariable('style', 'Check style', "no"))
    4949
    5050env = Environment(options=opts, CXXFLAGS=["${opt}","${warn}"])
     51env.Append( CPPPATH=["@@PREFIX@@/include"] )
     52env.Append( LIBPATH=["@@PREFIX@@/lib/"] )
     53env["CFLAGS"] = os.getenv("CFLAGS")
     54env["CXXFLAGS"] = os.getenv("CXXFLAGS")
     55env["LINKFLAGS"] = os.getenv("LINKFLAGS")
     56
    5157Help(opts.GenerateHelpText(env))
    5258
    5359conf = Configure(env)
     
    146152
    147153if env["test"]:
    148154    for file in glob.glob("*/test-*.cc") + glob.glob("*/*/test-*.cc"):
    149         if not file.startswith('vidio'):
     155        #Jason C - I exclude test-pbmpng becuase it depends on convert from ImageMagick
     156        if not (file.startswith('vidio') or file.startswith('imgio/tests/test-pbmpng')):
    150157            progs.Program(file[:-3],file)
    151158            progs.Test(file[:-3])
    152159            progs.Alias("test",file[:-3]+".passed")