Index: mojo/tools/mopy/gn.py |
diff --git a/mojo/tools/mopy/gn.py b/mojo/tools/mopy/gn.py |
index 831711b7f210194fb3f04a1cbe9f35bdb3a528a5..45a91d40dd50f2d5a6a7077f02044e1ec45ec99b 100644 |
--- a/mojo/tools/mopy/gn.py |
+++ b/mojo/tools/mopy/gn.py |
@@ -74,6 +74,12 @@ def GNArgsForConfig(config): |
gn_args["target_cpu"] = config.target_cpu |
+ extra_args = config.values.get("extra_args") |
+ if (extra_args): |
qsr
2015/03/10 10:02:38
Parenthesis are not needed.
haltonhuo
2015/03/11 05:58:06
Done.
|
+ for arg in extra_args.split(' '): |
qsr
2015/03/10 10:02:38
split() is enough when splitting with whitespaces.
haltonhuo
2015/03/11 05:58:06
Done.
|
+ (name, val) = arg.split('=') |
+ gn_args[name] = val |
+ |
return gn_args |