diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 09:55:45 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-23 09:55:45 +0000 |
commit | 36d09341524ced548512d5d567ac3bbbcc6efdec (patch) | |
tree | d6f6b53469def0bc001c51b8a4da6e5acad6d28d /build/gyp_chromium | |
parent | 775580b2d52f2f22cc033575e4f65753ce981700 (diff) | |
download | chromium_src-36d09341524ced548512d5d567ac3bbbcc6efdec.zip chromium_src-36d09341524ced548512d5d567ac3bbbcc6efdec.tar.gz chromium_src-36d09341524ced548512d5d567ac3bbbcc6efdec.tar.bz2 |
Support joined -D flags for gn.
BUG=326230
TBR=brettw@chromium.org
Review URL: https://codereview.chromium.org/145073004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246558 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-x | build/gyp_chromium | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium index feaa8ae..d05204b 100755 --- a/build/gyp_chromium +++ b/build/gyp_chromium @@ -121,8 +121,11 @@ def GetGypVarsForGN(supplemental_files): # to ignore all arguments other than "-D". cmdline_input_items = [] for i in range(len(sys.argv))[1:]: - if sys.argv[i] == '-D' and i + 1 < len(sys.argv): - cmdline_input_items += [sys.argv[i + 1]] + if sys.argv[i].startswith('-D'): + if sys.argv[i] == '-D' and i + 1 < len(sys.argv): + cmdline_input_items += [sys.argv[i + 1]] + elif len(sys.argv[i]) > 2: + cmdline_input_items += [sys.argv[i][2:]] cmdline_items = ProcessGypDefinesItems(cmdline_input_items) return dict(supp_items + env_items + cmdline_items) |