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

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

Issue 2095473002: Revert of 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 "public_deps", 545 "public_deps",
546 "testonly", 546 "testonly",
547 ]) 547 ])
548 script = "//build/android/gyp/proguard.py" 548 script = "//build/android/gyp/proguard.py"
549 if (defined(invoker.proguard_jar_path)) { 549 if (defined(invoker.proguard_jar_path)) {
550 _proguard_jar_path = invoker.proguard_jar_path 550 _proguard_jar_path = invoker.proguard_jar_path
551 } else { 551 } else {
552 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar" 552 _proguard_jar_path = "//third_party/proguard/lib/proguard.jar"
553 } 553 }
554 _output_jar_path = invoker.output_jar_path 554 _output_jar_path = invoker.output_jar_path
555 _input_jars_paths = []
556 if (defined(invoker.input_jars_paths)) {
557 _input_jars_paths += invoker.input_jars_paths
558 }
559 inputs = [ 555 inputs = [
560 _proguard_jar_path, 556 _proguard_jar_path,
561 ] 557 ]
562 if (defined(invoker.alternative_android_sdk_jar)) { 558 if (defined(invoker.alternative_android_sdk_jar)) {
563 inputs += [ invoker.alternative_android_sdk_jar ] 559 inputs += [ invoker.alternative_android_sdk_jar ]
564 _rebased_android_sdk_jar = 560 _rebased_android_sdk_jar =
565 rebase_path(invoker.alternative_android_sdk_jar) 561 rebase_path(invoker.alternative_android_sdk_jar)
566 } else { 562 } else {
567 inputs += [ android_sdk_jar ] 563 inputs += [ android_sdk_jar ]
568 _rebased_android_sdk_jar = rebased_android_sdk_jar 564 _rebased_android_sdk_jar = rebased_android_sdk_jar
(...skipping 13 matching lines...) Expand all
582 args = [ 578 args = [
583 "--depfile", 579 "--depfile",
584 rebase_path(depfile, root_build_dir), 580 rebase_path(depfile, root_build_dir),
585 "--proguard-path", 581 "--proguard-path",
586 rebase_path(_proguard_jar_path, root_build_dir), 582 rebase_path(_proguard_jar_path, root_build_dir),
587 "--output-path", 583 "--output-path",
588 rebase_path(_output_jar_path, root_build_dir), 584 rebase_path(_output_jar_path, root_build_dir),
589 "--classpath", 585 "--classpath",
590 _rebased_android_sdk_jar, 586 _rebased_android_sdk_jar,
591 ] 587 ]
592 foreach(c, _input_jars_paths) {
593 args += [ "--classpath=" + c ]
594 }
595 if (proguard_verbose) { 588 if (proguard_verbose) {
596 args += [ "--verbose" ] 589 args += [ "--verbose" ]
597 } 590 }
598 if (defined(invoker.args)) { 591 if (defined(invoker.args)) {
599 args += invoker.args 592 args += invoker.args
600 } 593 }
601 } 594 }
602 } 595 }
603 596
604 template("findbugs") { 597 template("findbugs") {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 } 801 }
809 802
810 if (defined(invoker.sources)) { 803 if (defined(invoker.sources)) {
811 args += rebase_path(invoker.sources, root_build_dir) 804 args += rebase_path(invoker.sources, root_build_dir)
812 } 805 }
813 } 806 }
814 } 807 }
815 808
816 template("process_java_prebuilt") { 809 template("process_java_prebuilt") {
817 set_sources_assignment_filter([]) 810 set_sources_assignment_filter([])
818 forward_variables_from(invoker, 811 forward_variables_from(invoker, [ "testonly" ])
819 [
820 "testonly",
821 "input_jars_paths",
822 ])
823 assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Mark as used
824 812
825 assert(invoker.build_config != "") 813 assert(invoker.build_config != "")
826 _build_config = invoker.build_config 814 _build_config = invoker.build_config
827 _rebased_build_config = rebase_path(_build_config, root_build_dir) 815 _rebased_build_config = rebase_path(_build_config, root_build_dir)
828 assert(_rebased_build_config != "" || true) # Mark used. 816 assert(_rebased_build_config != "" || true) # Mark used.
829 817
830 _proguard_preprocess = 818 _proguard_preprocess =
831 defined(invoker.proguard_preprocess) && invoker.proguard_preprocess 819 defined(invoker.proguard_preprocess) && invoker.proguard_preprocess
832 _input_jar_path = invoker.input_jar_path 820 _input_jar_path = invoker.input_jar_path
833 _output_jar_path = invoker.output_jar_path 821 _output_jar_path = invoker.output_jar_path
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 if (_supports_android) { 1596 if (_supports_android) {
1609 dex_path = _dex_path 1597 dex_path = _dex_path
1610 } 1598 }
1611 } 1599 }
1612 1600
1613 process_java_prebuilt(_process_jar_target_name) { 1601 process_java_prebuilt(_process_jar_target_name) {
1614 forward_variables_from(invoker, 1602 forward_variables_from(invoker,
1615 [ 1603 [
1616 "jar_excluded_patterns", 1604 "jar_excluded_patterns",
1617 "strip_resource_classes", 1605 "strip_resource_classes",
1618 "input_jars_paths",
1619 ]) 1606 ])
1620 assert(!defined(input_jars_paths) || input_jars_paths != [] || true) # Ma rk as used
1621
1622 visibility = [ 1607 visibility = [
1623 ":$_ijar_target_name", 1608 ":$_ijar_target_name",
1624 ":$_template_name", 1609 ":$_template_name",
1625 ] 1610 ]
1626 if (_supports_android) { 1611 if (_supports_android) {
1627 visibility += [ ":$_dex_target_name" ] 1612 visibility += [ ":$_dex_target_name" ]
1628 } 1613 }
1629 1614
1630 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) { 1615 if (defined(invoker.proguard_preprocess) && invoker.proguard_preprocess) {
1631 proguard_preprocess = true 1616 proguard_preprocess = true
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 outputs = [ 2379 outputs = [
2395 depfile, 2380 depfile,
2396 invoker.out_manifest, 2381 invoker.out_manifest,
2397 ] 2382 ]
2398 inputs = [ 2383 inputs = [
2399 invoker.main_manifest, 2384 invoker.main_manifest,
2400 ] 2385 ]
2401 } 2386 }
2402 } 2387 }
2403 } 2388 }
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