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

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

Issue 2096763007: Roll internal Google Play Services (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 # Write the target's .build_config file. This is a json file that contains a 10 # Write the target's .build_config file. This is a json file that contains a
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 "public_deps", 546 "public_deps",
547 "testonly", 547 "testonly",
548 ]) 548 ])
549 script = "//build/android/gyp/proguard.py" 549 script = "//build/android/gyp/proguard.py"
550 if (defined(invoker.proguard_jar_path)) { 550 if (defined(invoker.proguard_jar_path)) {
551 _proguard_jar_path = invoker.proguard_jar_path 551 _proguard_jar_path = invoker.proguard_jar_path
552 } else { 552 } else {
553 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" 553 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar"
554 } 554 }
555 _output_jar_path = invoker.output_jar_path 555 _output_jar_path = invoker.output_jar_path
556 _input_jars_paths = []
557 if (defined(invoker.input_jars_paths)) {
558 _input_jars_paths += invoker.input_jars_paths
559 }
556 inputs = [ 560 inputs = [
557 _proguard_jar_path, 561 _proguard_jar_path,
558 ] 562 ]
559 if (defined(invoker.alternative_android_sdk_jar)) { 563 if (defined(invoker.alternative_android_sdk_jar)) {
560 inputs += [ invoker.alternative_android_sdk_jar ] 564 inputs += [ invoker.alternative_android_sdk_jar ]
561 _rebased_android_sdk_jar = 565 _rebased_android_sdk_jar =
562 rebase_path(invoker.alternative_android_sdk_jar) 566 rebase_path(invoker.alternative_android_sdk_jar)
563 } else { 567 } else {
564 inputs += [ android_sdk_jar ] 568 inputs += [ android_sdk_jar ]
565 _rebased_android_sdk_jar = rebased_android_sdk_jar 569 _rebased_android_sdk_jar = rebased_android_sdk_jar
(...skipping 13 matching lines...) Expand all
579 args = [ 583 args = [
580 "--depfile", 584 "--depfile",
581 rebase_path(depfile, root_build_dir), 585 rebase_path(depfile, root_build_dir),
582 "--proguard-path", 586 "--proguard-path",
583 rebase_path(_proguard_jar_path, root_build_dir), 587 rebase_path(_proguard_jar_path, root_build_dir),
584 "--output-path", 588 "--output-path",
585 rebase_path(_output_jar_path, root_build_dir), 589 rebase_path(_output_jar_path, root_build_dir),
586 "--classpath", 590 "--classpath",
587 _rebased_android_sdk_jar, 591 _rebased_android_sdk_jar,
588 ] 592 ]
593 foreach(c, _input_jars_paths) {
594 args += [ "--classpath=" + c ]
595 }
589 if (proguard_verbose) { 596 if (proguard_verbose) {
590 args += [ "--verbose" ] 597 args += [ "--verbose" ]
591 } 598 }
592 if (defined(invoker.args)) { 599 if (defined(invoker.args)) {
593 args += invoker.args 600 args += invoker.args
594 } 601 }
595 } 602 }
596 } 603 }
597 604
598 template("findbugs") { 605 template("findbugs") {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 } 809 }
803 810
804 if (defined(invoker.sources)) { 811 if (defined(invoker.sources)) {
805 args += rebase_path(invoker.sources, root_build_dir) 812 args += rebase_path(invoker.sources, root_build_dir)
806 } 813 }
807 } 814 }
808 } 815 }
809 816
810 template("process_java_prebuilt") { 817 template("process_java_prebuilt") {
811 set_sources_assignment_filter([]) 818 set_sources_assignment_filter([])
812 forward_variables_from(invoker, [ "testonly" ]) 819 forward_variables_from(invoker,
820 [
821 "testonly",
822 "input_jars_paths",
823 ])
824 assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Mark as used
813 825
814 assert(invoker.build_config != "") 826 assert(invoker.build_config != "")
815 _build_config = invoker.build_config 827 _build_config = invoker.build_config
816 _rebased_build_config = rebase_path(_build_config, root_build_dir) 828 _rebased_build_config = rebase_path(_build_config, root_build_dir)
817 assert(_rebased_build_config != "" || true) # Mark used. 829 assert(_rebased_build_config != "" || true) # Mark used.
818 830
819 _proguard_preprocess = 831 _proguard_preprocess =
820 defined(invoker.proguard_preprocess) && invoker.proguard_preprocess 832 defined(invoker.proguard_preprocess) && invoker.proguard_preprocess
821 _input_jar_path = invoker.input_jar_path 833 _input_jar_path = invoker.input_jar_path
822 _output_jar_path = invoker.output_jar_path 834 _output_jar_path = invoker.output_jar_path
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1597 if (_supports_android) { 1609 if (_supports_android) {
1598 dex_path = _dex_path 1610 dex_path = _dex_path
1599 } 1611 }
1600 } 1612 }
1601 1613
1602 process_java_prebuilt(_process_jar_target_name) { 1614 process_java_prebuilt(_process_jar_target_name) {
1603 forward_variables_from(invoker, 1615 forward_variables_from(invoker,
1604 [ 1616 [
1605 "jar_excluded_patterns", 1617 "jar_excluded_patterns",
1606 "strip_resource_classes", 1618 "strip_resource_classes",
1619 "input_jars_paths",
1607 ]) 1620 ])
1621 assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Ma rk as used
1622
1608 visibility = [ 1623 visibility = [
1609 ":$_ijar_target_name", 1624 ":$_ijar_target_name",
1610 ":$_template_name", 1625 ":$_template_name",
1611 ] 1626 ]
1612 if (_supports_android) { 1627 if (_supports_android) {
1613 visibility += [ ":$_dex_target_name" ] 1628 visibility += [ ":$_dex_target_name" ]
1614 } 1629 }
1615 1630
1616 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) { 1631 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) {
1617 proguard_preprocess = true 1632 proguard_preprocess = true
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 outputs = [ 2395 outputs = [
2381 depfile, 2396 depfile,
2382 invoker.out_manifest, 2397 invoker.out_manifest,
2383 ] 2398 ]
2384 inputs = [ 2399 inputs = [
2385 invoker.main_manifest, 2400 invoker.main_manifest,
2386 ] 2401 ]
2387 } 2402 }
2388 } 2403 }
2389 } 2404 }
OLDNEW
« no previous file with comments | « build/android/play_services/preprocess.py ('k') | chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698