Propagate to the created SConstructs the version of swig found by the test (which is used to determine whether to run or not run this test).
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3443
fdb21ef1-2011-0410-befe-
b5e4ea1792b1
#
env = Environment(CPPPATH = [".", r'%(python_include_dir)s'],
CPPDEFINES = "NDEBUG",
+ SWIG =r'%(swig)s',
SWIGFLAGS = ["-python", "-c++"],
SWIGCXXFILESUFFIX = "_wrap.cpp",
LDMODULEPREFIX='_',
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks)s',
+ SWIG=r'%(swig)s',
#LIBS=%(python_library_path)s,
)
test.write(['SConstruct'], """\
env = Environment(SWIGFLAGS = '-python -c++',
CPPPATH=r"%(python_include_dir)s",
+ SWIG=r'%(swig)s',
FRAMEWORKS='%(python_frameworks_flags)s',
)
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks_flags)s',
+ SWIG=r'%(swig)s',
)
import sys
LDMODULEPREFIX='%(ldmodule_prefix)s',
LDMODULESUFFIX='%(_dll)s',
FRAMEWORKS='%(python_frameworks_flags)s',
+ SWIG=r'%(swig)s',
)
import sys