Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Unified Diff: build/config/linux/pkg_config.gni

Issue 231673006: Add SSL support to the GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes for minimal Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/crypto.gni ('k') | crypto/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/linux/pkg_config.gni
diff --git a/build/config/linux/pkg_config.gni b/build/config/linux/pkg_config.gni
index b91ee6704b3e9801e980d88032fffb62dd8dd041..c6a3099f1eb856da7d0e99f43e0b4f066096929c 100644
--- a/build/config/linux/pkg_config.gni
+++ b/build/config/linux/pkg_config.gni
@@ -17,6 +17,9 @@ import("//build/config/sysroot.gni")
# packages = [ "mything1", "mything2" ]
# defines = [ "ENABLE_AWESOME" ]
# }
+#
+# You can also use "extra args" to filter out results (see pkg-config.py):
+# extra_args = [ "-v, "foo" ]
template("pkg_config") {
assert(defined(invoker.packages),
@@ -28,6 +31,11 @@ template("pkg_config") {
} else {
args = invoker.packages
}
+
+ if (defined(invoker.extra_args)) {
+ args += invoker.extra_args
+ }
+
pkgresult = exec_script("//build/config/linux/pkg-config.py",
args, "value")
include_dirs = pkgresult[0]
« no previous file with comments | « build/config/crypto.gni ('k') | crypto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698