Logo Search packages:      
Sourcecode: abakus version File versions  Download package

g++.py

import os.path
import re
import SCons.Defaults
import SCons.Tool
import SCons.Util
cplusplus=__import__('c++', globals(), locals(), [])
compilers=['g++']
def generate(env):
    static_obj, shared_obj=SCons.Tool.createObjBuilders(env)
    cplusplus.generate(env)
    env['CXX']       =env.Detect(compilers)
    env['SHCXXFLAGS']=SCons.Util.CLVar('$CXXFLAGS -fPIC')
    if env['CXX']:
        line=os.popen(env['CXX'] + ' --version').readline()
        match=re.search(r'[0-9]+(\.[0-9]+)+', line)
        if match:
            env['CXXVERSION']=match.group(0)
def exists(env):
    return env.Detect(compilers)

Generated by  Doxygen 1.6.0   Back to index