Chromium Code Reviews| 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 # Do not add any imports to non-//build directories here. | 5 # Do not add any imports to non-//build directories here. |
| 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. | 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. |
| 7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
| 8 import("//build/config/android/internal_rules.gni") | 8 import("//build/config/android/internal_rules.gni") |
| 9 import("//build/config/compiler/compiler.gni") | 9 import("//build/config/compiler/compiler.gni") |
| 10 import("//build/config/dcheck_always_on.gni") | 10 import("//build/config/dcheck_always_on.gni") |
| (...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1426 assert(defined(invoker.android_manifest)) | 1426 assert(defined(invoker.android_manifest)) |
| 1427 gen_dir = "$target_gen_dir/$target_name" | 1427 gen_dir = "$target_gen_dir/$target_name" |
| 1428 base_path = "$gen_dir/$target_name" | 1428 base_path = "$gen_dir/$target_name" |
| 1429 _build_config = "$target_gen_dir/$target_name.build_config" | 1429 _build_config = "$target_gen_dir/$target_name.build_config" |
| 1430 resources_zip_path = "$base_path.resources.zip" | 1430 resources_zip_path = "$base_path.resources.zip" |
| 1431 _all_resources_zip_path = "$base_path.resources.all.zip" | 1431 _all_resources_zip_path = "$base_path.resources.all.zip" |
| 1432 _jar_path = "$base_path.jar" | 1432 _jar_path = "$base_path.jar" |
| 1433 _lib_dex_path = "$base_path.dex.jar" | 1433 _lib_dex_path = "$base_path.dex.jar" |
| 1434 _rebased_lib_dex_path = rebase_path(_lib_dex_path, root_build_dir) | 1434 _rebased_lib_dex_path = rebase_path(_lib_dex_path, root_build_dir) |
| 1435 _template_name = target_name | 1435 _template_name = target_name |
| 1436 if (defined(invoker.java_files)) { | |
| 1437 java_sources_file = "$base_path.sources" | |
|
agrieve
2016/12/06 20:25:59
nit: Please make this _java_sources_file and expli
Peter Wen
2016/12/06 22:05:45
Done
| |
| 1438 } | |
| 1436 | 1439 |
| 1437 enable_multidex = | 1440 enable_multidex = |
| 1438 defined(invoker.enable_multidex) && invoker.enable_multidex | 1441 defined(invoker.enable_multidex) && invoker.enable_multidex |
| 1439 if (enable_multidex) { | 1442 if (enable_multidex) { |
| 1440 final_dex_path = "$gen_dir/classes.dex.zip" | 1443 final_dex_path = "$gen_dir/classes.dex.zip" |
| 1441 } else { | 1444 } else { |
| 1442 final_dex_path = "$gen_dir/classes.dex" | 1445 final_dex_path = "$gen_dir/classes.dex" |
| 1443 } | 1446 } |
| 1444 final_dex_target_name = "${_template_name}__final_dex" | 1447 final_dex_target_name = "${_template_name}__final_dex" |
| 1445 | 1448 |
| (...skipping 1326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2772 # because in practice they seem to contain classes required to be in the | 2775 # because in practice they seem to contain classes required to be in the |
| 2773 # classpath. | 2776 # classpath. |
| 2774 deps += _subjar_targets | 2777 deps += _subjar_targets |
| 2775 } | 2778 } |
| 2776 if (defined(_res_target_name)) { | 2779 if (defined(_res_target_name)) { |
| 2777 deps += [ ":$_res_target_name" ] | 2780 deps += [ ":$_res_target_name" ] |
| 2778 } | 2781 } |
| 2779 } | 2782 } |
| 2780 } | 2783 } |
| 2781 } | 2784 } |
| OLD | NEW |