diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-26 18:12:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-26 18:12:30 +0000 |
commit | abc283cfd456e3f3726e3ad00aedb55a0c9e2aec (patch) | |
tree | 5de1cdd1045e6137aa1eda46a2cda8cbdfe9370b /build/toolchain | |
parent | ec03d433c706df8dbc20c7fe61315f8cca1f0ca3 (diff) | |
download | chromium_src-abc283cfd456e3f3726e3ad00aedb55a0c9e2aec.zip chromium_src-abc283cfd456e3f3726e3ad00aedb55a0c9e2aec.tar.gz chromium_src-abc283cfd456e3f3726e3ad00aedb55a0c9e2aec.tar.bz2 |
Allow dependencies of toolchains in GN.
A toolchain definition can now specify "deps" which will be resolved before any target in that toolchain is compiled. This is useful for toolchain setup operations.
R=noelallen@chromium.org
Review URL: https://codereview.chromium.org/350743004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280052 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/toolchain')
-rw-r--r-- | build/toolchain/gcc_toolchain.gni | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni index bc52883..9ad47a4 100644 --- a/build/toolchain/gcc_toolchain.gni +++ b/build/toolchain/gcc_toolchain.gni @@ -21,6 +21,8 @@ # The contents of these strings, if specified, will be placed around # the libs section of the linker line. It allows one to inject libraries # at the beginning and end for all targets in a toolchain. +# - deps +# Just fowarded to the toolchain definition. template("gcc_toolchain") { toolchain(target_name) { assert(defined(invoker.cc), "gcc_toolchain() must specify a \"cc\" value") @@ -107,5 +109,9 @@ template("gcc_toolchain") { cpu_arch = invoker.toolchain_cpu_arch os = invoker.toolchain_os } + + if (defined(invoker.deps)) { + deps = invoker.deps + } } } |