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

Unified Diff: build/android/gyp/javac.py

Issue 2124663002: 🎣 Make Android .build_configs aware of prebuilts and java sources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/gyp/emma_instr.py ('k') | build/android/gyp/write_build_config.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/javac.py
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index 6c91424710039d58c70f0f821670b0c9e01cfcfc..c5a480328457bef66d8c65fdcebd40a5c4ab77b1 100755
--- a/build/android/gyp/javac.py
+++ b/build/android/gyp/javac.py
@@ -324,7 +324,17 @@ def _ParseOptions(argv):
options.javac_includes = build_utils.ParseGypList(options.javac_includes)
options.jar_excluded_classes = (
build_utils.ParseGypList(options.jar_excluded_classes))
- return options, args
+
+
+ java_files = []
+ for arg in args:
+ if arg.startswith('@'):
Peter Wen 2016/07/05 17:46:47 Mind adding some comments for this somewhere?
agrieve 2016/07/05 18:36:43 Done.
+ with open(arg[1:]) as f:
+ java_files.extend(l.strip() for l in f)
+ else:
+ java_files.append(arg)
+
+ return options, java_files
def main(argv):
« no previous file with comments | « build/android/gyp/emma_instr.py ('k') | build/android/gyp/write_build_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698