示例#1
0
def check_libs(conf):
    check_gtest(conf)
    check_gcov(conf)
    boost_params = dict(
        dict(mt=True, abi='gd' if conf.variant == 'debug' else ''),
        **FLAGS[conf.env.COMPILER_CXX]['boost'])
    conf.check_boost(**boost_params)
def check_robot_dart(conf):
    conf.load('boost')
    conf.load('eigen')
    conf.load('dart')
    # In boost you can use the uselib_store option to change the variable the libs will be loaded
    boost_var = 'BOOST_DART'
    conf.check_boost(lib='regex system', min_version='1.46', uselib_store=boost_var)
    conf.check_eigen()
    conf.check_dart()
    includes_check = ['/usr/local/include', '/usr/include']
    libs_check = ['/usr/local/lib', '/usr/lib']
    # You can customize where you want to check
    # e.g. here we search also in a folder defined by an environmental variable
    if 'RESIBOTS_DIR' in os.environ:
    	includes_check = [os.environ['RESIBOTS_DIR'] + '/include'] + includes_check
    	libs_check = [os.environ['RESIBOTS_DIR'] + '/lib'] + libs_check
    if conf.options.robot_dart:
    	includes_check = [conf.options.robot_dart + '/include']
    	libs_check = [conf.options.robot_dart + '/lib']
    try:
    	conf.start_msg('Checking for robot_dart includes')
    	res = conf.find_file('robot_dart/robot.hpp', includes_check)
    	res = res and conf.find_file('robot_dart/robot_control.hpp', includes_check)
    	res = res and conf.find_file('robot_dart/robot_dart_simu.hpp', includes_check)
    	res = res and conf.find_file('robot_dart/descriptors.hpp', includes_check)
    	conf.end_msg('ok')
    	conf.env.INCLUDES_ROBOT_DART = includes_check
    except:
    	conf.end_msg('Not found', 'RED')
    	return
    return 1
示例#3
0
def check_yaml_cpp(conf):
    conf.check_boost()
    conf.check_cxx(
        fragment = fragment,
        use = ['YAML-CPP','BOOST'],
        msg = 'Checking to link with yaml-cpp',
    )
示例#4
0
def check_libs(conf):
    compiler = FLAGS[conf.env.COMPILER_CXX]
    boost_params = dict(dict(mt  = True,
                             abi = 'gd' if conf.variant == 'debug' else ''),
                        **compiler['boost'])
    conf.check_boost(**boost_params)
    conf.check(lib='gtest' if conf.variant == 'release' else 'gtestd',
               uselib_store='GTEST', mandatory=False)
    conf.check(lib='gmock' if conf.variant == 'release' else 'gmockd',
               uselib_store='GMOCK', mandatory=False)
示例#5
0
def check_libs(conf):
    compiler = FLAGS[conf.env.COMPILER_CXX]
    boost_params = dict(
        dict(mt=True, abi='gd' if conf.variant == 'debug' else ''),
        **compiler['boost'])
    conf.check_boost(**boost_params)
    conf.check(lib='gtest' if conf.variant == 'release' else 'gtestd',
               uselib_store='GTEST',
               mandatory=False)
    conf.check(lib='gmock' if conf.variant == 'release' else 'gmockd',
               uselib_store='GMOCK',
               mandatory=False)
示例#6
0
文件: common.py 项目: a-pavlov/kodama
def check_libs(conf):
    check_gtest(conf)
    check_gcov(conf)
    boost_params = dict(dict(mt = True, abi = 'gd' if conf.variant == 'debug' else ''),
                        **FLAGS[conf.env.COMPILER_CXX]['boost'])
    conf.check_boost(**boost_params)