def search_libs(settings)
      # get all libs specified in ADD_LIBS
      search_libs =  settings['ADD_LIBS'].split
      our_lib_deps = []
      search_libs.each do |lib|
        our_lib_deps << lib
        deps_of_lib = @@all_libs_and_deps[lib]
        if deps_of_lib
          our_lib_deps += deps_of_lib
        end
      end
      our_lib_deps.uniq!

      # match libs found by toolchain
      solibs_local = []
      alibs_local = []
      our_lib_deps.each do |lib|
        if PrjFileCache.contain?('LIB', lib)
          alibs_local << lib
        elsif PrjFileCache.contain?('SOLIB', lib)
          solibs_local << lib
        end
      end
      local_libs = (alibs_local + solibs_local) || []

      # return value is a hash
      {
        :local        => local_libs,
        :local_alibs  => alibs_local,
        :local_solibs => solibs_local,
        :all          => our_lib_deps
      }
    end
def search_libs(settings)
      # get all libs specified in ADD_LIBS
      search_libs =  settings['ADD_LIBS'].split
      our_lib_deps = []
      search_libs.each do |lib|
        our_lib_deps << lib
        deps_of_lib = @@all_libs_and_deps[lib]
        if deps_of_lib
          our_lib_deps += deps_of_lib
        end
      end
      our_lib_deps.uniq!

      # match libs found by toolchain
      solibs_local = []
      alibs_local = []
      our_lib_deps.each do |lib|
        if PrjFileCache.contain?('LIB', lib)
          alibs_local << lib
        elsif PrjFileCache.contain?('SOLIB', lib)
          solibs_local << lib
        end
      end
      local_libs = (alibs_local + solibs_local) || []

      # return value is a hash
      {
        :local        => local_libs,
        :local_alibs  => alibs_local,
        :local_solibs => solibs_local,
        :all          => our_lib_deps
      }
    end
Search dependent libraries as specified in ADD_LIBS setting
 of prj.rake file

 @param [String] settings    The project settings definition

 @return [Hash]                        Containing the following components mapped to an array:
 @option return [Array] :local         all local libs found by toolchain
 @option return [Array] :local_alibs   local static libs found by toolchain
 @option return [Array] :local_solibs  local shared libs found by toolchain
 @option return [Array] :all           local + external libs