Index: build/gypi_to_gn.py |
diff --git a/build/gypi_to_gn.py b/build/gypi_to_gn.py |
index d52e3a0b3fdcf5b2e8149a8056b5a4751fbf6f40..a107f94fcafd14c9883c57f4438f064fd8ded1e8 100644 |
--- a/build/gypi_to_gn.py |
+++ b/build/gypi_to_gn.py |
@@ -96,6 +96,11 @@ def LoadPythonDictionary(path): |
if 'target_conditions' in file_data: |
del file_data['target_conditions'] |
+ # Strip targets in the toplevel, since some files define these and we can't |
+ # slurp them in. |
+ if 'targets' in file_data: |
+ del file_data['targets'] |
+ |
return file_data |