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

Side by Side Diff: build/config/android/internal_rules.gni

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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 unified diff | Download patch
« no previous file with comments | « build/config/android/config.gni ('k') | build/config/android/rules.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6
7 assert(is_android) 7 assert(is_android)
8 8
9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir)
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir)
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 "--classpath", 326 "--classpath",
327 rebased_android_sdk_jar, 327 rebased_android_sdk_jar,
328 "--classpath=@FileArg($_rebased_build_config:javac:classpath)", 328 "--classpath=@FileArg($_rebased_build_config:javac:classpath)",
329 ] 329 ]
330 } 330 }
331 } else { 331 } else {
332 copy("${target_name}__copy_jar") { 332 copy("${target_name}__copy_jar") {
333 sources = [ 333 sources = [
334 _input_jar_path, 334 _input_jar_path,
335 ] 335 ]
336 outputs = [ _output_jar_path ] 336 outputs = [
337 _output_jar_path,
338 ]
337 } 339 }
338 } 340 }
339 341
340 action("${target_name}__jar_toc") { 342 action("${target_name}__jar_toc") {
341 script = "//build/android/gyp/jar_toc.py" 343 script = "//build/android/gyp/jar_toc.py"
342 depfile = "$target_gen_dir/$target_name.d" 344 depfile = "$target_gen_dir/$target_name.d"
343 outputs = [ 345 outputs = [
344 depfile, 346 depfile,
345 _jar_toc_path, 347 _jar_toc_path,
346 _jar_toc_path + ".md5.stamp", 348 _jar_toc_path + ".md5.stamp",
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 sources = [ 896 sources = [
895 _jar_path, 897 _jar_path,
896 ] 898 ]
897 output = _dex_path 899 output = _dex_path
898 } 900 }
899 901
900 if (defined(invoker.standalone_dex_path)) { 902 if (defined(invoker.standalone_dex_path)) {
901 _final_deps += [ ":${_template_name}__standalone_dex" ] 903 _final_deps += [ ":${_template_name}__standalone_dex" ]
902 _rebased_build_config = rebase_path(_build_config, root_build_dir) 904 _rebased_build_config = rebase_path(_build_config, root_build_dir)
903 dex("${_template_name}__standalone_dex") { 905 dex("${_template_name}__standalone_dex") {
904 sources = [_jar_path] 906 sources = [
905 inputs = [_build_config] 907 _jar_path,
908 ]
909 inputs = [
910 _build_config,
911 ]
906 output = invoker.standalone_dex_path 912 output = invoker.standalone_dex_path
907 dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files" 913 dex_arg_key = "${_rebased_build_config}:final_dex:dependency_dex_files"
908 args = [ "--inputs=@FileArg($dex_arg_key)" ] 914 args = [ "--inputs=@FileArg($dex_arg_key)" ]
909 } 915 }
910 } 916 }
911 } 917 }
912 918
913 group(target_name) { 919 group(target_name) {
914 if (defined(invoker.visibility)) { 920 if (defined(invoker.visibility)) {
915 visibility = invoker.visibility 921 visibility = invoker.visibility
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 if (defined(invoker.sources)) { 1032 if (defined(invoker.sources)) {
1027 sources += invoker.sources 1033 sources += invoker.sources
1028 } 1034 }
1029 1035
1030 inputs = [] 1036 inputs = []
1031 if (defined(invoker.inputs)) { 1037 if (defined(invoker.inputs)) {
1032 inputs += invoker.inputs 1038 inputs += invoker.inputs
1033 } 1039 }
1034 1040
1035 depfile = "$target_gen_dir/$target_name.d" 1041 depfile = "$target_gen_dir/$target_name.d"
1036 outputs = [ depfile ] 1042 outputs = [
1043 depfile,
1044 ]
1037 1045
1038 args = [ 1046 args = [
1039 "--depfile", 1047 "--depfile",
1040 rebase_path(depfile, root_build_dir), 1048 rebase_path(depfile, root_build_dir),
1041 "--dest", 1049 "--dest",
1042 rebase_path(invoker.dest, root_build_dir), 1050 rebase_path(invoker.dest, root_build_dir),
1043 ] 1051 ]
1044 rebased_sources = rebase_path(sources, root_build_dir) 1052 rebased_sources = rebase_path(sources, root_build_dir)
1045 args += [ "--files=$rebased_sources" ] 1053 args += [ "--files=$rebased_sources" ]
1046 1054
1047 if (defined(invoker.clear_dir) && invoker.clear_dir) { 1055 if (defined(invoker.clear_dir) && invoker.clear_dir) {
1048 args += [ "--clear" ] 1056 args += [ "--clear" ]
1049 } 1057 }
1050 1058
1051 if (defined(invoker.args)) { 1059 if (defined(invoker.args)) {
1052 args += invoker.args 1060 args += invoker.args
1053 } 1061 }
1054 } 1062 }
1055 } 1063 }
OLDNEW
« no previous file with comments | « build/config/android/config.gni ('k') | build/config/android/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698