Dylibs get deps.m: Difference between revisions

Jump to navigation Jump to search
no edit summary
(initial edit)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
An m-file function used in support of [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|creating a MacOS X App bundle]].
An m-file function used in support of [[Create_a_MacOS_X_App_Bundle_Using_MacPorts|creating a MacOS X App bundle]].


  <nowiki>## Copyright (C) 2012 Ben Abbott
  <source lang="octave">## Copyright (C) 2012 Ben Abbott
##  
##  
## This program is free software; you can redistribute it and/or modify
## This program is free software; you can redistribute it and/or modify
Line 22: Line 22:
##
##
## Extracts the dependent libary names from the named binary, @var{name}.
## Extracts the dependent libary names from the named binary, @var{name}.
## If @var{root} is specified, the only libraries returned have a path
## If @var{root} is specified, the only libraries returned will have paths
## which begins with that specified by @var{root}.
## which begin with one of the cell-strings contained by @var{root}.
##
## The defaults for @var{root} are @code{@{"/opt/local/", "/sw/", "/usr/local/",
## "@@executable_path"@}}.  These root paths are intended to match all the
## relocatable libraries which should be included in an App bundle.  The first
## and second entries correspond to the MacPorts and Fink installation
## directories, respectively.
##
##
## @seealso {dylibs_find, dylibs_fix}
## @seealso {dylibs_find, dylibs_fix}
Line 31: Line 37:
## Created: 2012-06-27
## Created: 2012-06-27


function [deps, full_deps] = dylibs_get_deps (names, root_dir = {"/opt/local/", "@executable_path"})
function [deps, full_deps] = dylibs_get_deps (names, root_dir = {"/opt/local/", "/sw/", "/usr/local", "@executable_path"})
   if (ischar (root_dir))
   if (ischar (root_dir))
     root_dir = {root_dir};
     root_dir = {root_dir};
Line 68: Line 74:
     full_deps = full_deps{1};
     full_deps = full_deps{1};
   endif
   endif
endfunction</nowiki>
endfunction</source>
364

edits

Navigation menu