19 lines
931 B
Text
19 lines
931 B
Text
--- SConstruct.orig 2010-01-29 14:17:02.000000000 +0300
|
|
+++ SConstruct 2010-01-29 19:33:39.000000000 +0300
|
|
@@ -23,14 +23,14 @@
|
|
opts = Variables()
|
|
opts.Add(PathVariable('prefix', 'autotools-style installation prefix', '/usr/local', validator=PathVariable.PathIsDirCreate))
|
|
opts.Add(BoolVariable('debug', 'enable HEAVY_DEBUG and disable optimizations', False))
|
|
-env = Environment(ENV=os.environ, options=opts)
|
|
+env = Environment(ENV=os.environ, options=opts, **dict((k, v.split()) for k, v in ARGUMENTS.iteritems()))
|
|
if sys.platform == "win32":
|
|
env = Environment(tools=['mingw'], ENV=os.environ, options=opts)
|
|
opts.Update(env)
|
|
|
|
env.ParseConfig('pkg-config --cflags --libs glib-2.0')
|
|
|
|
-env.Append(CXXFLAGS=' -Wall -Wno-sign-compare -Wno-write-strings')
|
|
+env.Append(CXXFLAGS=['-Wall', '-Wno-sign-compare', '-Wno-write-strings'])
|
|
|
|
# Get the numpy include path (for numpy/arrayobject.h).
|
|
numpy_path = numpy.get_include()
|