Ticket #29491: patch-SConstruct.diff
File patch-SConstruct.diff, 1.3 KB (added by jason@…, 14 years ago) |
---|
-
SConstruct
old new 48 48 # opts.Add(BoolVariable('style', 'Check style', "no")) 49 49 50 50 env = Environment(options=opts, CXXFLAGS=["${opt}","${warn}"]) 51 env.Append( CPPPATH=["@@PREFIX@@/include"] ) 52 env.Append( LIBPATH=["@@PREFIX@@/lib/"] ) 53 env["CFLAGS"] = os.getenv("CFLAGS") 54 env["CXXFLAGS"] = os.getenv("CXXFLAGS") 55 env["LINKFLAGS"] = os.getenv("LINKFLAGS") 56 51 57 Help(opts.GenerateHelpText(env)) 52 58 53 59 conf = Configure(env) … … 117 123 else: 118 124 sources += ["utils/dgraphics_nosdl.cc"] 119 125 126 env.Append(SHLINKFLAGS = '-dynamiclib -install_name "@@PREFIX@@/lib/libiulib.dylib"') 120 127 libiulib = env.SharedLibrary('libiulib',sources) 121 128 122 129 env.Append(CXXFLAGS=['-g','-fPIC']) … … 145 152 progs.Append(BUILDERS={'Test':test_builder}) 146 153 147 154 if env["test"]: 155 progs.Prepend(ENV = {'DYLD_LIBRARY_PATH': '.'}) 148 156 for file in glob.glob("*/test-*.cc") + glob.glob("*/*/test-*.cc"): 149 if not file.startswith('vidio'): 157 #Jason C - I exclude test-pbmpng becuase it depends on convert from ImageMagick 158 if not (file.startswith('vidio') or file.startswith('imgio/tests/test-pbmpng')): 150 159 progs.Program(file[:-3],file) 151 160 progs.Test(file[:-3]) 152 161 progs.Alias("test",file[:-3]+".passed")