本文整理汇总了Python中waflib.Configure.conf.cxx_load_tools函数的典型用法代码示例。如果您正苦于以下问题:Python cxx_load_tools函数的具体用法?Python cxx_load_tools怎么用?Python cxx_load_tools使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cxx_load_tools函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: configure
def configure(conf):
conf.find_pgi_compiler("CXX", "pgCC")
conf.find_ar()
conf.gxx_common_flags()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例2: mkspec_gxx_configure
def mkspec_gxx_configure(conf, major, minor, prefix=None, minimum=False):
"""
:param major: The major version number of the compiler, e.g. 4
:param minor: The minor version number of the compiler, e.g. 6
:param prefix: Prefix to the compiler name, e.g. 'arm-linux-androideabi'
:param minimum: Only check for a minimum compiler version, if true
"""
# Where to look for the compiler
paths = conf.mkspec_get_toolchain_paths()
# Find g++ first
gxx_names = conf.mkspec_get_gnu_binary_name('g++', major, minor, prefix)
if minimum:
gxx_names = 'g++'
cxx = conf.find_program(gxx_names, path_list=paths)
cxx = conf.cmd_to_list(cxx)
conf.env['CXX'] = cxx
conf.env['CXX_NAME'] = os.path.basename(conf.env.get_flat('CXX'))
if minimum:
conf.mkspec_check_minimum_cc_version(cxx, major, minor)
else:
conf.mkspec_check_cc_version(cxx, major, minor)
# Also find gcc
gcc_names = conf.mkspec_get_gnu_binary_name('gcc', major, minor, prefix)
if minimum:
gcc_names = 'gcc'
cc = conf.find_program(gcc_names, path_list=paths)
cc = conf.cmd_to_list(cc)
conf.env['CC'] = cc
conf.env['CC_NAME'] = os.path.basename(conf.env.get_flat('CC'))
if minimum:
conf.mkspec_check_minimum_cc_version(cc, major, minor)
else:
conf.mkspec_check_cc_version(cc, major, minor)
# Find the archiver
ar = conf.mkspec_get_ar_binary_name(prefix)
conf.find_program(ar, path_list=paths, var='AR')
conf.env.ARFLAGS = 'rcs'
# Set up C++ tools and flags
conf.gxx_common_flags()
conf.gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
# Also set up C tools and flags
conf.gcc_common_flags()
conf.gcc_modifier_platform()
conf.cc_load_tools()
conf.cc_add_flags()
# Add linker flags
conf.link_add_flags()
# Add our own cxx flags
conf.mkspec_set_gxx_cxxflags()
# Add our own cc flags
conf.mkspec_set_gcc_ccflags()
示例3: configure
def configure(conf):
conf.find_xlcxx()
conf.find_ar()
conf.xlcxx_common_flags()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例4: configure
def configure(conf):
conf.find_pgi_compiler('CXX', 'pgCC')
conf.find_ar()
conf.gxx_common_flags()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
开发者ID:NightOwlsEntertainment,项目名称:PetBox_A_Journey_to_Conquer_Elementary_Algebra,代码行数:7,代码来源:pgicxx.py
示例5: configure
def configure(conf):
conf.find_icpc()
conf.find_ar()
conf.gxx_common_flags()
conf.gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例6: configure
def configure(conf):
conf.find_arm_none_eabi_gxx()
conf.load('arm-none-eabi-ar', tooldir=os.path.dirname(os.path.realpath(__file__)))
conf.gcc_common_flags()
conf.gcc_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例7: configure
def configure(conf):
conf.find_emxx()
conf.load('emcc', tooldir="waf-tools")
conf.load('emar', tooldir="waf-tools")
conf.emxx_common_flags()
conf.emxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例8: configure
def configure(conf):
conf.autodetect()
conf.find_msvc()
conf.msvc_common_flags()
conf.cc_load_tools()
conf.cxx_load_tools()
conf.cc_add_flags()
conf.cxx_add_flags()
conf.link_add_flags()
示例9: configure
def configure(conf):
conf.find_clangxx()
conf.find_program(['llvm-ar', 'ar'], var='AR')
conf.find_ar()
conf.gxx_common_flags()
conf.gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例10: configure
def configure(conf):
"""
Configuration for g++
"""
conf.find_gxx()
conf.find_ar()
conf.gxx_common_flags()
conf.gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
开发者ID:NightOwlsEntertainment,项目名称:PetBox_A_Journey_to_Conquer_Elementary_Algebra,代码行数:11,代码来源:gxx.py
示例11: configure
def configure(conf):
"""
Configuration methods to call for detecting msvc
"""
conf.autodetect()
conf.find_msvc()
conf.msvc_common_flags()
conf.cc_load_tools()
conf.cxx_load_tools()
conf.cc_add_flags()
conf.cxx_add_flags()
conf.link_add_flags()
示例12: configure
def configure(conf):
# Check that the NDK path was given on the command-line
conf.msg("NDK path configured with --ndk", conf.options.ndk != None)
if not conf.options.ndk:
raise "no NDK path"
conf.load('android-gcc', tooldir="waf-tools")
conf.find_android_gxx()
conf.load('android-ar', tooldir="waf-tools")
conf.android_gxx_common_flags()
conf.android_gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例13: configure
def configure(conf):
"""
Configuration for g++
"""
try:
conf.find_gxx()
except Exception as e:
print 'ERROR:', e
pass
conf.find_ar()
conf.gxx_common_flags()
conf.gxx_modifier_platform()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
示例14: configure
def configure(conf):
conf.find_emscripten()
conf.find_ar()
conf.gcc_common_flags()
conf.gxx_common_flags()
conf.cc_load_tools()
conf.cc_add_flags()
conf.cxx_load_tools()
conf.cxx_add_flags()
conf.link_add_flags()
conf.env.ARFLAGS = ['rcs']
conf.env.cshlib_PATTERN = '%s.js'
conf.env.cxxshlib_PATTERN = '%s.js'
conf.env.cstlib_PATTERN = '%s.bc'
conf.env.cxxstlib_PATTERN = '%s.bc'
conf.env.cprogram_PATTERN = '%s.html'
conf.env.cxxprogram_PATTERN = '%s.html'
conf.env.append_value('LINKFLAGS',['-Wl,--enable-auto-import'])
示例15: configure
def configure(conf):
conf.find_clang()
conf.clang_common_flags()
conf.cxx_load_tools()
conf.cxx_add_flags()