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

Unified Diff: build/java_apk.gypi

Issue 193693002: android: Pass (non-generated) .java files via a gyp filelist to javac.py (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gen Created 6 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/java.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index fc0955f21bcbe56d6aee214ca4a3944440f83acc..a5533197d3d84e1ec900e354a5eee230f71f76ac 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -513,19 +513,19 @@
'action_name': 'javac_<(_target_name)',
'message': 'Compiling java for <(_target_name)',
'variables': {
- 'all_src_dirs': [
- '<(java_in_dir)/src',
+ 'gen_src_dirs': [
'<(intermediate_dir)/gen',
cjhopman 2014/03/11 01:35:57 Ugh, this path is another hidden dependency (it is
- '>@(additional_src_dirs)',
'>@(generated_src_dirs)',
],
+ # If there is a separate find for additional_src_dirs, it will find the
+ # wrong .java files when additional_src_dirs is empty.
+ 'java_source_list': '>|(javasources.<(_target_name).gypcmd >!@(find >(java_in_dir)/src >(additional_src_dirs) -name "*.java"))',
Nico 2014/03/11 01:41:59 I changed the >(java_in_dir) on the lhs to >(java_
+
},
'inputs': [
'<(DEPTH)/build/android/gyp/util/build_utils.py',
'<(DEPTH)/build/android/gyp/javac.py',
- # If there is a separate find for additional_src_dirs, it will find the
- # wrong .java files when additional_src_dirs is empty.
- '>!@(find >(java_in_dir) >(additional_src_dirs) -name "*.java")',
+ '>(java_source_list)',
'>@(input_jars_paths)',
'<(codegen_stamp)',
'>@(compile_input_paths)',
@@ -537,7 +537,8 @@
'python', '<(DEPTH)/build/android/gyp/javac.py',
'--output-dir=<(classes_dir)',
'--classpath=>(input_jars_paths) <(android_sdk_jar)',
- '--src-dirs=>(all_src_dirs)',
+ '--src-filelist=>(java_source_list)',
+ '--src-gendirs=>(gen_src_dirs)',
'--javac-includes=<(javac_includes)',
'--chromium-code=<(chromium_code)',
'--stamp=<(compile_stamp)',
« no previous file with comments | « build/java.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698