当前位置: 首页>>代码示例>>Python>>正文


Python Library.is_supported方法代码示例

本文整理汇总了Python中workspace_tools.libraries.Library.is_supported方法的典型用法代码示例。如果您正苦于以下问题:Python Library.is_supported方法的具体用法?Python Library.is_supported怎么用?Python Library.is_supported使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在workspace_tools.libraries.Library的用法示例。


在下文中一共展示了Library.is_supported方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: build_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None, notify=None, jobs=1, silent=False, report=None, properties=None, extra_verbose=False):
    """ Wrapper for build_library function.
        Function builds library in proper directory using all dependencies and macros defined by user.
    """
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        # We need to combine macros from parameter list with macros from library definition
        MACROS = lib.macros if lib.macros else []
        if macros:
            MACROS.extend(macros)

        return build_library(lib.source_dir, lib.build_dir, target, toolchain, lib.dependencies, options,
                      verbose=verbose,
                      silent=silent,
                      clean=clean,
                      macros=MACROS,
                      notify=notify,
                      inc_dirs=lib.inc_dirs,
                      inc_dirs_ext=lib.inc_dirs_ext,
                      jobs=jobs,
                      report=report,
                      properties=properties,
                      extra_verbose=extra_verbose)
    else:
        print 'Library "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
        return False
开发者ID:RafalFabich,项目名称:mbed,代码行数:28,代码来源:build_api.py

示例2: build_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None):
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        build_library(lib.source_dir, lib.build_dir, target, toolchain,
                      lib.dependencies, options,
                      verbose=verbose, clean=clean, macros=macros)
    else:
        print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
开发者ID:Illuminux,项目名称:mbed,代码行数:10,代码来源:build_api.py

示例3: static_analysis_scan_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def static_analysis_scan_lib(lib_id, target, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, options=None, verbose=False, clean=False, macros=None, notify=None):
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        static_analysis_scan_library(lib.source_dir, lib.build_dir, target, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT,
                      lib.dependencies, options,
                      verbose=verbose, clean=clean, macros=macros, notify=notify)
    else:
        print 'Library "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
开发者ID:majkelos,项目名称:mbed,代码行数:10,代码来源:build_api.py

示例4: static_analysis_scan_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def static_analysis_scan_lib(lib_id, target, toolchain, cppcheck_cmd, cppcheck_msg_format,
                             options=None, verbose=False, clean=False, macros=None, notify=None, jobs=1):
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        static_analysis_scan_library(lib.source_dir, lib.build_dir, target, toolchain, cppcheck_cmd, cppcheck_msg_format,
                      lib.dependencies, options,
                      verbose=verbose, clean=clean, macros=macros, notify=notify, jobs=jobs)
    else:
        print 'Library "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
开发者ID:haydar9,项目名称:mbed,代码行数:11,代码来源:build_api.py

示例5: build_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def build_lib(lib_id, target, toolchain, options=None, verbose=False, clean=False, macros=None, notify=None):
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        # We need to combine macros from parameter list with macros from library definition
        MACROS = lib.macros if lib.macros else []
        if macros:
            MACROS.extend(macros)

        build_library(lib.source_dir, lib.build_dir, target, toolchain,
                      lib.dependencies, options,
                      verbose=verbose, clean=clean, macros=MACROS, notify=notify, inc_dirs=lib.inc_dirs)
    else:
        print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
开发者ID:unos,项目名称:mbed,代码行数:15,代码来源:build_api.py

示例6: build_lib

# 需要导入模块: from workspace_tools.libraries import Library [as 别名]
# 或者: from workspace_tools.libraries.Library import is_supported [as 别名]
def build_lib(lib_id, target, toolchain, verbose=False):
    lib = Library(lib_id)
    if lib.is_supported(target, toolchain):
        build_library(lib.source_dir, lib.build_dir, target, toolchain, lib.dependencies, lib.name, verbose=verbose)
    else:
        print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target, toolchain)
开发者ID:UNIVERSAL-IT-SYSTEMS,项目名称:mbed,代码行数:8,代码来源:build_api.py


注:本文中的workspace_tools.libraries.Library.is_supported方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。