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

Unified Diff: build/android/pylib/build_utils.py

Issue 13334003: Push native libraries separately when gyp manages install (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@apkinstall
Patch Set: Created 7 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
« no previous file with comments | « build/android/process_resources.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/build_utils.py
diff --git a/build/android/pylib/build_utils.py b/build/android/pylib/build_utils.py
index ce7ed9e80dd0ab2a3316527bba562e9897310602..8a2c761524538bdd01473232746f8b284252b835 100644
--- a/build/android/pylib/build_utils.py
+++ b/build/android/pylib/build_utils.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import fnmatch
+import json
import os
import pipes
import shlex
@@ -55,6 +56,17 @@ def ParseGypList(gyp_string):
return shlex.split(gyp_string)
+def CheckOptions(options, parser, required=[]):
+ for option_name in required:
+ if not getattr(options, option_name):
+ parser.error('--%s is required' % option_name.replace('_', '-'))
+
+
+def ReadJson(path):
+ with open(path, 'r') as jsonfile:
+ return json.load(jsonfile)
+
+
# This can be used in most cases like subprocess.check_call. The output,
# particularly when the command fails, better highlights the command's failure.
# This call will directly exit on a failure in the subprocess so that no python
« no previous file with comments | « build/android/process_resources.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698