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

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: Rebase 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..51c400e8b2b0177074b960041f9c7265c842ef4b 100644
--- a/platform_tools/android/gyp_gen/gypd_parser.py
+++ b/platform_tools/android/gyp_gen/gypd_parser.py
@@ -89,7 +89,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):

Powered by Google App Engine
This is Rietveld 408576698