示例#1
0
def configure(conf):
    if Options.options.swig:
        swig = conf.find_program('swig', var='SWIG', mandatory=Options.options.require_swig)
        if not swig: return
        swigver = Options.options.swigver
        if swigver:
            swigver = map(int, swigver.split('.'))
        conf.check_swig_version(minver=swigver)
        conf.env.SWIGPATH_ST = '-I%s'
示例#2
0
文件: swig.py 项目: terminicus/nitro
def configure(conf):
    if Options.options.swig:
        swig = conf.find_program('swig', var='SWIG',
                                 path_list=Options.options.swig_home,
                                 mandatory=Options.options.require_swig)
        if not swig: return
        swigver = Options.options.swigver
        if swigver:
            swigver = list(map(int, swigver.split('.')))
        conf.check_swig_version(minver=swigver)
        conf.env.SWIGPATH_ST = '-I%s'
        conf.env.SWIGDEFINES_ST = '-D%s'
        conf.env['PYTHON_AGNOSTIC'] = Options.options.pyver_agnostic