docs: def include_library(libname):
      """Check if a dynamic library should be included with application or not."""
      # For configuration phase we need to have exclude / include lists None
      # so these checking is skipped and library gets included.
      if exclude_list:
          if exclude_list.search(libname) and not include_list.search(libname):
              # Library is excluded and is not overriden by include list.
              # It should be then excluded.
              return False
          else:
              # Include library
              return True
      else:
          # By default include library.
          return True