function _findLibraries (appdir, appbin, disklibs) {
  const exe = path.join(appdir, appbin);

  const o = {
    exe: exe,
    lib: exe,
    libs: disklibs
  };
  const libraries = [];
  const pending = [exe];
  while (pending.length > 0) {
    const target = pending.pop();
    if (libraries.indexOf(target) === -1) {
      libraries.push(target);
    }
    let res = binAbsLibs(target, o);
    const unexplored = res.filter(l => libraries.indexOf(l) === -1);
    pending.push(...unexplored.filter(l => pending.indexOf(l) === -1));
    libraries.push(...unexplored);
  }
  return libraries;
}
function _findLibraries (appdir, appbin, disklibs) {
  const exe = path.join(appdir, appbin);

  const o = {
    exe: exe,
    lib: exe,
    libs: disklibs
  };
  const libraries = [];
  const pending = [exe];
  while (pending.length > 0) {
    const target = pending.pop();
    if (libraries.indexOf(target) === -1) {
      libraries.push(target);
    }
    let res = binAbsLibs(target, o);
    const unexplored = res.filter(l => libraries.indexOf(l) === -1);
    pending.push(...unexplored.filter(l => pending.indexOf(l) === -1));
    libraries.push(...unexplored);
  }
  return libraries;
}
function _findLibraries ( appdir , appbin , disklibs ) { const exe = path . join ( appdir , appbin ) ; const o = { exe : exe , lib : exe , libs : disklibs } ; const libraries = [ ] ; const pending = [ exe ] ; while ( pending . length > 0 ) { const target = pending . pop ( ) ; if ( libraries . indexOf ( target ) === - 1 ) { libraries . push ( target ) ; } let res = binAbsLibs ( target , o ) ; const unexplored = res . filter ( l => libraries . indexOf ( l ) === - 1 ) ; pending . push ( ... unexplored . filter ( l => pending . indexOf ( l ) === - 1 ) ) ; libraries . push ( ... unexplored ) ; } return libraries ; }
get all dependencies from appbin recursively
get all dependencies from appbin recursively