From 2932276444fc56f86c53a57acb5c25587a094787 Mon Sep 17 00:00:00 2001 From: scroggo Date: Fri, 12 Dec 2014 07:51:37 -0800 Subject: [PATCH] Add some debugging information to gyp_to_android. Temporary, to help diagnose skbug.com/3233 TBR=borenet NOTRY=True NOTREECHECKS=True BUG=skia:3233 Review URL: https://codereview.chromium.org/802703002 --- platform_tools/android/gyp_gen/android_framework_gyp.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/platform_tools/android/gyp_gen/android_framework_gyp.py b/platform_tools/android/gyp_gen/android_framework_gyp.py index 31417fe..787a4d9 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')) -- 2.7.4