OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/zip.gni") | 6 import("//build/config/zip.gni") |
7 import("//third_party/ijar/ijar.gni") | 7 import("//third_party/ijar/ijar.gni") |
8 | 8 |
9 assert(is_android) | 9 assert(is_android) |
10 | 10 |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 _rebased_depfile = rebase_path(depfile, root_build_dir) | 1114 _rebased_depfile = rebase_path(depfile, root_build_dir) |
1115 args = [ | 1115 args = [ |
1116 "--depfile=$_rebased_depfile", | 1116 "--depfile=$_rebased_depfile", |
1117 "--use-ijars", | 1117 "--use-ijars", |
1118 "--classpath=@FileArg($_rebased_build_config:javac:classpath)", | 1118 "--classpath=@FileArg($_rebased_build_config:javac:classpath)", |
1119 "--jar-path=$_rebased_jar_path", | 1119 "--jar-path=$_rebased_jar_path", |
1120 "--java-srcjars=$_rebased_java_srcjars", | 1120 "--java-srcjars=$_rebased_java_srcjars", |
1121 "--java-srcjars=@FileArg($_rebased_build_config:javac:srcjars)", | 1121 "--java-srcjars=@FileArg($_rebased_build_config:javac:srcjars)", |
1122 "--jar-excluded-classes=$_jar_excluded_patterns", | 1122 "--jar-excluded-classes=$_jar_excluded_patterns", |
1123 ] | 1123 ] |
| 1124 if (incremental_javac) { |
| 1125 args += [ "--incremental" ] |
| 1126 } |
1124 if (_supports_android) { | 1127 if (_supports_android) { |
1125 deps += [ "//build/android:android_ijar" ] | 1128 deps += [ "//build/android:android_ijar" ] |
1126 _android_sdk_ijar = "$root_out_dir/lib.java/android.interface.jar" | 1129 _android_sdk_ijar = "$root_out_dir/lib.java/android.interface.jar" |
1127 inputs += [ _android_sdk_ijar ] | 1130 inputs += [ _android_sdk_ijar ] |
1128 _rebased_android_sdk_ijar = rebase_path(_android_sdk_ijar, root_build_dir) | 1131 _rebased_android_sdk_ijar = rebase_path(_android_sdk_ijar, root_build_dir) |
1129 args += [ "--bootclasspath=$_rebased_android_sdk_ijar" ] | 1132 args += [ "--bootclasspath=$_rebased_android_sdk_ijar" ] |
1130 } | 1133 } |
1131 foreach(e, _manifest_entries) { | 1134 foreach(e, _manifest_entries) { |
1132 args += [ "--manifest-entry=" + e ] | 1135 args += [ "--manifest-entry=" + e ] |
1133 } | 1136 } |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 ] | 1651 ] |
1649 args = [ | 1652 args = [ |
1650 "--depfile", | 1653 "--depfile", |
1651 rebase_path(depfile, root_build_dir), | 1654 rebase_path(depfile, root_build_dir), |
1652 "--script-output-path", | 1655 "--script-output-path", |
1653 rebase_path(generated_script, root_build_dir), | 1656 rebase_path(generated_script, root_build_dir), |
1654 ] | 1657 ] |
1655 args += test_runner_args | 1658 args += test_runner_args |
1656 } | 1659 } |
1657 } | 1660 } |
OLD | NEW |