Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
def build_lib(lib_id,
              target,
              toolchain,
              options=None,
              verbose=False,
              clean=False,
              macros=None,
              notify=None,
              jobs=1):
    """ 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)

        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,
                      inc_dirs_ext=lib.inc_dirs_ext,
                      jobs=jobs)
    else:
        print 'Library "%s" is not yet supported on target %s with toolchain %s' % (
            lib_id, target.name, toolchain)
Exemple #4
0
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)
Exemple #5
0
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):
        build_library(lib.source_dir, lib.build_dir, target, toolchain,
                      lib.dependencies, options,
                      verbose=verbose, clean=clean, macros=macros, notify=notify)
    else:
        print '\n\nLibrary "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)
Exemple #6
0
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.name, toolchain)