本文整理汇总了Python中waflib.Configure.conf.link_add_flags函数的典型用法代码示例。如果您正苦于以下问题:Python link_add_flags函数的具体用法?Python link_add_flags怎么用?Python link_add_flags使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了link_add_flags函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: 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()
示例2: 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()
示例3: configure
def configure(conf):
conf.find_sxc()
conf.find_program('sxar',VAR='AR')
conf.sxc_common_flags()
conf.cc_load_tools()
conf.cc_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_scc()
conf.find_ar()
conf.scc_common_flags()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例6: 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()
示例7: configure
def configure(conf):
conf.find_pgi_compiler('CC', 'pgcc')
conf.find_ar()
conf.gcc_common_flags()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例8: configure
def configure(conf):
v = conf.env
v.TI_CGT_DIR = getattr(Options.options, "ti-cgt-dir", "")
v.TI_DSPLINK_DIR = getattr(Options.options, "ti-dsplink-dir", "")
v.TI_BIOSUTILS_DIR = getattr(Options.options, "ti-biosutils-dir", "")
v.TI_DSPBIOS_DIR = getattr(Options.options, "ti-dspbios-dir", "")
v.TI_XDCTOOLS_DIR = getattr(Options.options, "ti-xdctools-dir", "")
conf.find_ticc()
conf.find_tiar()
conf.find_tild()
conf.ticc_common_flags()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
conf.find_program(["tconf"], var="TCONF", path_list=v.TI_XDCTOOLS_DIR)
conf.env.TCONF_INCLUDES += [opj(conf.env.TI_DSPBIOS_DIR, "packages")]
conf.env.INCLUDES += [opj(conf.env.TI_CGT_DIR, "include")]
conf.env.LIBPATH += [opj(conf.env.TI_CGT_DIR, "lib")]
conf.env.INCLUDES_DSPBIOS += [opj(conf.env.TI_DSPBIOS_DIR, "packages", "ti", "bios", "include")]
conf.env.LIBPATH_DSPBIOS += [opj(conf.env.TI_DSPBIOS_DIR, "packages", "ti", "bios", "lib")]
conf.env.INCLUDES_DSPLINK += [opj(conf.env.TI_DSPLINK_DIR, "dsplink", "dsp", "inc")]
示例9: 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()
示例10: 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()
示例11: configure
def configure(conf):
conf.find_emcc()
conf.load('emar', tooldir="waf-tools")
conf.emcc_common_flags()
conf.emcc_modifier_platform()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例12: configure
def configure(conf):
conf.find_irixcc()
conf.find_cpp()
conf.find_ar()
conf.irixcc_common_flags()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例13: configure
def configure(conf):
conf.find_gcc()
conf.find_ar()
conf.gcc_common_flags()
conf.gcc_modifier_platform()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例14: configure
def configure(conf):
conf.find_android_gcc()
conf.load('android-ar', tooldir="waf-tools")
conf.gcc_common_flags()
conf.android_gcc_modifier_platform()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()
示例15: configure
def configure(conf):
conf.find_clang()
conf.find_program(['ar'], var='AR')
conf.find_ar()
conf.gcc_common_flags()
conf.gcc_modifier_platform()
conf.cc_load_tools()
conf.cc_add_flags()
conf.link_add_flags()