• brettw@chromium.org's avatar
    Add directory extraction to GN path handling. · e9bf4fcb
    brettw@chromium.org authored
    Some of the mojo templates want to put generated files in the directory
    corresponding to the source file, rather than the directory containing the
    BUILD file. Previously, this required putting the BUILD files in the same
    directory.
    
    This patch adds the ability to specify the generated file directory
    corresponding to the input file in the action_foreach file templates so this
    can be expressed naturally.
    
    For parity, it also adds qquerying for this information via get_path_info.
    
    BUG=
    R=cjhopman@chromium.org
    
    Review URL: https://codereview.chromium.org/334333005
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278402 0039d316-1c4b-4281-b951-d872f2087c98
    e9bf4fcb
function_get_path_info.cc 8.59 KB