Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: platform_tools/android/gyp_gen/gypd_parser.py

Issue 198063002: Updates to Android.mk generation. (Closed) Base URL: https://skia.googlesource.com/skia.git@android_mk
Patch Set: Add a comment explaining the motivation of OrderedSet. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 b547c42525c298ccce5f0a1655c058cdb571ebf7..fc4dc68e96a5894c0e167cdab27163343af57a52 100644
--- a/platform_tools/android/gyp_gen/gypd_parser.py
+++ b/platform_tools/android/gyp_gen/gypd_parser.py
@@ -9,8 +9,6 @@
Functions for parsing the gypd output from gyp.
"""
-import vars_dict_lib
-
def parse_dictionary(var_dict, d, current_target_name):
"""
Helper function to get the meaningful entries in a dictionary.
@@ -89,7 +87,7 @@ def parse_dictionary(var_dict, d, current_target_name):
var_dict.LOCAL_EXPORT_C_INCLUDE_DIRS.add(include)
for define in d.get('defines', []):
- var_dict.LOCAL_CFLAGS.add('-D' + define)
+ var_dict.DEFINES.add(define)
def parse_gypd(var_dict, path, desired_targets=None):
« no previous file with comments | « platform_tools/android/gyp_gen/generate_user_config.py ('k') | platform_tools/android/gyp_gen/makefile_writer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698