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

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

Issue 2130933002: 🎧 Initial version of Android Studio project generation (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 unified diff | Download patch
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 import("//build/config/sanitizers/sanitizers.gni") 6 import("//build/config/sanitizers/sanitizers.gni")
7 7
8 assert(is_android) 8 assert(is_android)
9 9
10 # These identify targets that have .build_config files (except for android_apk, 10 # These identify targets that have .build_config files (except for android_apk,
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 "--java-sources-file", 320 "--java-sources-file",
321 rebase_path(invoker.java_sources_file, root_build_dir), 321 rebase_path(invoker.java_sources_file, root_build_dir),
322 ] 322 ]
323 } 323 }
324 if (defined(invoker.srcjar)) { 324 if (defined(invoker.srcjar)) {
325 args += [ 325 args += [
326 "--srcjar", 326 "--srcjar",
327 rebase_path(invoker.srcjar, root_build_dir), 327 rebase_path(invoker.srcjar, root_build_dir),
328 ] 328 ]
329 } 329 }
330 if (defined(invoker.bundled_srcjars)) {
331 _rebased_bundled_srcjars =
332 rebase_path(invoker.bundled_srcjars, root_build_dir)
jbudorick 2016/07/07 22:32:30 Does this work with a list of paths?
agrieve 2016/07/08 19:07:28 yes
333 args += [ "--bundled-srcjars=$_rebased_bundled_srcjars" ]
334 }
330 } 335 }
331 } 336 }
332 337
333 template("copy_ex") { 338 template("copy_ex") {
334 set_sources_assignment_filter([]) 339 set_sources_assignment_filter([])
335 action(target_name) { 340 action(target_name) {
336 forward_variables_from(invoker, 341 forward_variables_from(invoker,
337 [ 342 [
338 "data", 343 "data",
339 "deps", 344 "deps",
(...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2150 invoker.bypass_platform_checks 2155 invoker.bypass_platform_checks
2151 2156
2152 build_config = _build_config 2157 build_config = _build_config
2153 jar_path = _jar_path 2158 jar_path = _jar_path
2154 if (_supports_android) { 2159 if (_supports_android) {
2155 dex_path = _dex_path 2160 dex_path = _dex_path
2156 } 2161 }
2157 if (_java_files != []) { 2162 if (_java_files != []) {
2158 java_sources_file = _java_sources_file 2163 java_sources_file = _java_sources_file
2159 } 2164 }
2165
2166 if (defined(invoker.srcjar_deps)) {
2167 bundled_srcjars = []
2168 foreach(d, invoker.srcjar_deps) {
2169 _dep_gen_dir = get_label_info(d, "target_gen_dir")
2170 _dep_name = get_label_info(d, "name")
jbudorick 2016/07/07 22:32:30 Is this used?
agrieve 2016/07/08 19:07:28 On the next line :P
2171 bundled_srcjars += [ "$_dep_gen_dir/$_dep_name.srcjar" ]
2172 }
2173 }
2160 } 2174 }
2161 _accumulated_deps += [ ":$build_config_target_name" ] 2175 _accumulated_deps += [ ":$build_config_target_name" ]
2162 } 2176 }
2163 2177
2164 _srcjar_deps = [] 2178 _srcjar_deps = []
2165 if (defined(invoker.srcjar_deps)) { 2179 if (defined(invoker.srcjar_deps)) {
2166 _srcjar_deps = invoker.srcjar_deps 2180 _srcjar_deps = invoker.srcjar_deps
2167 } 2181 }
2168 2182
2169 _srcjars = [] 2183 _srcjars = []
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
2521 outputs = [ 2535 outputs = [
2522 depfile, 2536 depfile,
2523 invoker.out_manifest, 2537 invoker.out_manifest,
2524 ] 2538 ]
2525 inputs = [ 2539 inputs = [
2526 invoker.main_manifest, 2540 invoker.main_manifest,
2527 ] 2541 ]
2528 } 2542 }
2529 } 2543 }
2530 } 2544 }
OLDNEW
« build/android/generate_gradle.py ('K') | « build/android/gyp/write_build_config.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698