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

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

Issue 802703002: Add some debugging information to gyp_to_android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: platform_tools/android/gyp_gen/android_framework_gyp.py
diff --git a/platform_tools/android/gyp_gen/android_framework_gyp.py b/platform_tools/android/gyp_gen/android_framework_gyp.py
index 31417fe567ee1d79bc5dfca9150e6c2cba189f83..787a4d91a8cceaf1b7705ab62d3ce898614c7444 100644
--- a/platform_tools/android/gyp_gen/android_framework_gyp.py
+++ b/platform_tools/android/gyp_gen/android_framework_gyp.py
@@ -22,6 +22,8 @@ SKIA_DIR = os.path.normpath(os.path.join(SCRIPT_DIR, os.pardir, os.pardir,
DIR_CONTENTS = os.listdir(SKIA_DIR)
assert 'gyp' in DIR_CONTENTS
+DEBUG_FAILURE = True
+
def main(target_dir, target_file, skia_arch_type, have_neon,
gyp_source_dir=None):
"""Create gypd files based on target_file.
@@ -42,7 +44,15 @@ def main(target_dir, target_file, skia_arch_type, have_neon,
# Ensure we import our current gyp source's module, not any version
# pre-installed in your PYTHONPATH.
if not gyp_source_dir:
+ if DEBUG_FAILURE:
+ print 'gyp_source_dir not provided. using the default!'
gyp_source_dir = os.path.join(SKIA_DIR, 'third_party', 'externals', 'gyp')
+
+ if DEBUG_FAILURE:
+ print 'gyp_source_dir is "%s"' % gyp_source_dir
+ if not os.path.exists(gyp_source_dir):
+ print 'and it does not exist!'
+
assert os.path.exists(gyp_source_dir)
sys.path.insert(0, os.path.join(gyp_source_dir, 'pylib'))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698