Index: platform_tools/android/gyp_gen/gypd_parser.py |
diff --git a/platform_tools/android/gyp_gen/gypd_parser.py b/platform_tools/android/gyp_gen/gypd_parser.py |
index b0e1417046c872720823361be876932aec6ba9c3..e992637637948a3c8d5cb4ab31c4c339882b6675 100644 |
--- a/platform_tools/android/gyp_gen/gypd_parser.py |
+++ b/platform_tools/android/gyp_gen/gypd_parser.py |
@@ -97,6 +97,9 @@ def parse_dictionary(var_dict, d, current_target_name, dest_dir): |
# wants relative to dest_dir. |
rel_include = os.path.relpath(include, os.pardir) |
rel_include = os.path.relpath(rel_include, dest_dir) |
+ # No need to include the base directory. |
+ if rel_include is os.curdir: |
+ continue |
rel_include = os.path.join('$(LOCAL_PATH)', rel_include) |
# Remove a trailing slash, if present. |