Index: build/config/linux/pkg_config.gni |
diff --git a/build/config/linux/pkg_config.gni b/build/config/linux/pkg_config.gni |
index 46f7d7590e6dc0af6583d9958e15a0b803fe0e70..292fe95ed26a67558ceaec35d2cf8a16b162995d 100644 |
--- a/build/config/linux/pkg_config.gni |
+++ b/build/config/linux/pkg_config.gni |
@@ -24,6 +24,10 @@ import("//build/config/sysroot.gni") |
# when doing manual dynamic linking), set: |
# ignore_libs = true |
+declare_args() { |
+ pkg_config = "" |
brettw
2014/09/23 20:20:17
Documentation?
Chris Masone
2014/09/23 22:33:59
Done.
|
+} |
+ |
template("pkg_config") { |
assert(defined(invoker.packages), |
"Variable |packages| must be defined to be a list in pkg_config.") |
@@ -31,6 +35,8 @@ template("pkg_config") { |
if (sysroot != "") { |
# Pass the sysroot if we're using one (it requires the CPU arch also). |
args = ["-s", sysroot, "-a", cpu_arch] + invoker.packages |
+ } else if (pkg_config != "") { |
+ args = ["-p", pkg_config] + invoker.packages |
} else { |
args = invoker.packages |
} |