Chromium Code Reviews| Index: gclient.py |
| diff --git a/gclient.py b/gclient.py |
| index a91c61b32bf45253a9bedf9a8f39b909ec317bdb..f5861a593654cef45d2121597aa859ba9017e86f 100644 |
| --- a/gclient.py |
| +++ b/gclient.py |
| @@ -55,6 +55,13 @@ Specifying a target OS |
| Example: |
| target_os = [ "android" ] |
| + |
| + If the "target_os_only" key is also present and true, then *only* the |
| + operating systems listed in target_os will be used. |
| + |
| + Example: |
| + target_os = [ "ios" ] |
| + target_os_only = True |
| """ |
| __version__ = "0.6.4" |
| @@ -886,7 +893,10 @@ solutions = [ |
| # Append any target OS that is not already being enforced to the tuple. |
| target_os = config_dict.get('target_os', []) |
| - self._enforced_os = tuple(set(self._enforced_os).union(target_os)) |
| + if config_dict.get('target_os_only', False): |
|
M-A Ruel
2012/11/01 18:35:49
Should it work if 'target_os' is not present?
stuartmorgan
2012/11/02 05:50:02
I figured that would fall under "just don't do tha
|
| + self._enforced_os = tuple(set(target_os)) |
| + else: |
| + self._enforced_os = tuple(set(self._enforced_os).union(target_os)) |
| deps_to_add = [] |
| for s in config_dict.get('solutions', []): |