diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 16:56:20 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-13 16:56:20 +0000 |
commit | 7380ca759c564e749f8e9b4bab6f38bb3a96a65a (patch) | |
tree | 82d72a0e64e172e0f8649c8d2f93e062dac2c88c /tools/gn/filesystem_utils.h | |
parent | a80b2ed4614413a5c0863b490abf2d817dad2032 (diff) | |
download | chromium_src-7380ca759c564e749f8e9b4bab6f38bb3a96a65a.zip chromium_src-7380ca759c564e749f8e9b4bab6f38bb3a96a65a.tar.gz chromium_src-7380ca759c564e749f8e9b4bab6f38bb3a96a65a.tar.bz2 |
Add GN function get_label_info
This function retrieves information about a label like the name, directory, etc.
R=cjhopman@chromium.org
Review URL: https://codereview.chromium.org/279023002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/gn/filesystem_utils.h')
-rw-r--r-- | tools/gn/filesystem_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h index 09451a5..71e7057 100644 --- a/tools/gn/filesystem_utils.h +++ b/tools/gn/filesystem_utils.h @@ -166,11 +166,21 @@ SourceDir SourceDirForPath(const base::FilePath& source_root, // directory. SourceDir SourceDirForCurrentDirectory(const base::FilePath& source_root); +// Given the label of a toolchain and whether that toolchain is the default +// toolchain, returns the name of the subdirectory for that toolchain's +// output. This will be the empty string to indicate that the toolchain outputs +// go in the root build directory. Otherwise, the result will end in a slash. +std::string GetOutputSubdirName(const Label& toolchain_label, bool is_default); + // ----------------------------------------------------------------------------- // These functions return the various flavors of output and gen directories. SourceDir GetToolchainOutputDir(const Settings* settings); +SourceDir GetToolchainOutputDir(const BuildSettings* build_settings, + const Label& label, bool is_default); SourceDir GetToolchainGenDir(const Settings* settings); +SourceDir GetToolchainGenDir(const BuildSettings* build_settings, + const Label& toolchain_label, bool is_default); SourceDir GetOutputDirForSourceDir(const Settings* settings, const SourceDir& source_dir); SourceDir GetGenDirForSourceDir(const Settings* settings, |