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

Unified Diff: platform_tools/android/bin/gyp_to_android.py

Issue 864503002: Add ability to specify gyp dir to gyp_to_android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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
« 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/bin/gyp_to_android.py
diff --git a/platform_tools/android/bin/gyp_to_android.py b/platform_tools/android/bin/gyp_to_android.py
index aacbe98a0a5617af86c9ddd2991ad01397055bf7..e700f2fd846639867266dd031ee84c913fc3745d 100755
--- a/platform_tools/android/bin/gyp_to_android.py
+++ b/platform_tools/android/bin/gyp_to_android.py
@@ -10,6 +10,7 @@ Script for generating the Android framework's version of Skia from gyp
files.
"""
+import argparse
import os
import shutil
import sys
@@ -197,4 +198,9 @@ def main(target_dir=None, require_sk_user_config=False, gyp_source_dir=None):
shutil.rmtree(tmp_folder)
if __name__ == '__main__':
- main()
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--gyp_source_dir', help='Source of gyp program. '
+ 'e.g. <path_to_skia>/third_party/externals/gyp')
+ args = parser.parse_args()
+
+ main(gyp_source_dir=args.gyp_source_dir)
« 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