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

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

Issue 2699963002: Plumb bootclasspath GN -> Android Studio (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « build/android/gyp/write_build_config.py ('k') | no next file » | 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 # 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_overrides/build.gni") 7 import("//build_overrides/build.gni")
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/dcheck_always_on.gni") 9 import("//build/config/dcheck_always_on.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 if (defined(invoker.gradle_treat_as_prebuilt) && 346 if (defined(invoker.gradle_treat_as_prebuilt) &&
347 invoker.gradle_treat_as_prebuilt) { 347 invoker.gradle_treat_as_prebuilt) {
348 args += [ "--gradle-treat-as-prebuilt" ] 348 args += [ "--gradle-treat-as-prebuilt" ]
349 } 349 }
350 if (defined(invoker.main_class)) { 350 if (defined(invoker.main_class)) {
351 args += [ 351 args += [
352 "--main-class", 352 "--main-class",
353 invoker.main_class, 353 invoker.main_class,
354 ] 354 ]
355 } 355 }
356 if (defined(invoker.alternative_android_sdk_ijar)) {
357 args += [
358 "--bootclasspath",
359 rebase_path(invoker.alternative_android_sdk_ijar, root_build_dir),
360 ]
361 }
356 if (current_toolchain != default_toolchain) { 362 if (current_toolchain != default_toolchain) {
357 # This has to be a built-time error rather than a GN assert because many 363 # This has to be a built-time error rather than a GN assert because many
358 # packages have a mix of java and non-java targets. For example, the 364 # packages have a mix of java and non-java targets. For example, the
359 # following would fail even though nothing depends on :bar(//baz): 365 # following would fail even though nothing depends on :bar(//baz):
360 # 366 #
361 # shared_library("foo") { 367 # shared_library("foo") {
362 # } 368 # }
363 # 369 #
364 # android_library("bar") { 370 # android_library("bar") {
365 # deps = [ ":foo(//baz)" ] 371 # deps = [ ":foo(//baz)" ]
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 # build the _build_config. 2306 # build the _build_config.
2301 if (defined(invoker.override_build_config)) { 2307 if (defined(invoker.override_build_config)) {
2302 _build_config = invoker.override_build_config 2308 _build_config = invoker.override_build_config
2303 } else { 2309 } else {
2304 _build_config = _base_path + ".build_config" 2310 _build_config = _base_path + ".build_config"
2305 build_config_target_name = "${_template_name}__build_config" 2311 build_config_target_name = "${_template_name}__build_config"
2306 2312
2307 write_build_config(build_config_target_name) { 2313 write_build_config(build_config_target_name) {
2308 forward_variables_from(invoker, 2314 forward_variables_from(invoker,
2309 [ 2315 [
2316 "alternative_android_sdk_ijar",
2310 "gradle_treat_as_prebuilt", 2317 "gradle_treat_as_prebuilt",
2311 "input_jars_paths", 2318 "input_jars_paths",
2312 "main_class", 2319 "main_class",
2313 "proguard_configs", 2320 "proguard_configs",
2314 ]) 2321 ])
2315 if (defined(invoker.is_java_binary) && invoker.is_java_binary) { 2322 if (defined(invoker.is_java_binary) && invoker.is_java_binary) {
2316 type = "java_binary" 2323 type = "java_binary"
2317 } else { 2324 } else {
2318 type = "java_library" 2325 type = "java_library"
2319 } 2326 }
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2767 rebase_path(root_build_dir, root_build_dir), 2774 rebase_path(root_build_dir, root_build_dir),
2768 "--packed-libraries-dir", 2775 "--packed-libraries-dir",
2769 rebase_path(_packed_libraries_dir, root_build_dir), 2776 rebase_path(_packed_libraries_dir, root_build_dir),
2770 "--libraries=${invoker.libraries_filearg}", 2777 "--libraries=${invoker.libraries_filearg}",
2771 "--filelistjson", 2778 "--filelistjson",
2772 rebase_path(invoker.file_list_json, root_build_dir), 2779 rebase_path(invoker.file_list_json, root_build_dir),
2773 ] 2780 ]
2774 } 2781 }
2775 } 2782 }
2776 } 2783 }
OLDNEW
« no previous file with comments | « 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