Issue 1366, swig defines

This commit is contained in:
Thomas Nagy 2013-10-17 21:36:22 +02:00
parent 0aeecb0f3d
commit b0ec707975
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ re_3 = re.compile('#include "(.*)"', re.M)
class swig(Task.Task):
color = 'BLUE'
run_str = '${SWIG} ${SWIGFLAGS} ${SWIGPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${SRC}'
run_str = '${SWIG} ${SWIGFLAGS} ${SWIGPATH_ST:INCPATHS} ${SWIGDEF_ST:DEFINES} ${SRC}'
ext_out = ['.h'] # might produce .h files although it is not mandatory
def runnable_status(self):
@ -169,4 +169,5 @@ def check_swig_version(self):
def configure(conf):
swig = conf.find_program('swig', var='SWIG')
conf.env.SWIGPATH_ST = '-I%s'
conf.env.SWIGDEF_ST = '-D%s'