| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/rules.gni") | 5 import("//build/config/android/rules.gni") |
| 6 | 6 |
| 7 java_group("robolectric_all_java") { | 7 java_group("robolectric_all_java") { |
| 8 testonly = true | 8 testonly = true |
| 9 deps = [ | 9 deps = [ |
| 10 ":android-all-5.0.0_r2-robolectric-1_java", | 10 ":android-all-5.0.0_r2-robolectric-1_java", |
| (...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 | 581 |
| 582 inputs = _template_files | 582 inputs = _template_files |
| 583 outputs = _processed_template_files | 583 outputs = _processed_template_files |
| 584 | 584 |
| 585 deps = [ | 585 deps = [ |
| 586 ":robolectric_template_processor", | 586 ":robolectric_template_processor", |
| 587 ] | 587 ] |
| 588 } | 588 } |
| 589 | 589 |
| 590 java_library(target_name) { | 590 java_library(target_name) { |
| 591 forward_variables_from(invoker, [ "output_name" ]) |
| 592 |
| 591 # TODO(mikecase): Remove this once crbug.com/638875 is fixed. | 593 # TODO(mikecase): Remove this once crbug.com/638875 is fixed. |
| 592 enable_incremental_javac_override = false | 594 enable_incremental_javac_override = false |
| 593 | 595 |
| 594 testonly = true | 596 testonly = true |
| 595 processors_javac = | 597 processors_javac = |
| 596 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] | 598 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] |
| 597 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag
e=org.robolectric" ] | 599 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag
e=org.robolectric" ] |
| 598 provider_configurations = [ | 600 provider_configurations = [ |
| 599 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr
ic.internal.ShadowProvider", | 601 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr
ic.internal.ShadowProvider", |
| 600 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/
services/org.robolectric.ShadowsAdapter", | 602 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/
services/org.robolectric.ShadowsAdapter", |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 deps += invoker.android_sdk_deps | 649 deps += invoker.android_sdk_deps |
| 648 | 650 |
| 649 # Work-around for gradle generator not yet supporting annotation processors. | 651 # Work-around for gradle generator not yet supporting annotation processors. |
| 650 gradle_treat_as_prebuilt = true | 652 gradle_treat_as_prebuilt = true |
| 651 } | 653 } |
| 652 } | 654 } |
| 653 | 655 |
| 654 shadows_core("shadows-core-3.0-21_java") { | 656 shadows_core("shadows-core-3.0-21_java") { |
| 655 api_level = 21 | 657 api_level = 21 |
| 656 android_sdk_deps = [ ":android-all-5.0.0_r2-robolectric-1_java" ] | 658 android_sdk_deps = [ ":android-all-5.0.0_r2-robolectric-1_java" ] |
| 659 output_name = "shadows-core-3.0-21" |
| 657 } | 660 } |
| 658 | 661 |
| 659 shadows_core("shadows-core-3.0-18_java") { | 662 shadows_core("shadows-core-3.0-18_java") { |
| 660 api_level = 18 | 663 api_level = 18 |
| 661 android_sdk_deps = [ ":android-all-4.3_r2-robolectric-0_java" ] | 664 android_sdk_deps = [ ":android-all-4.3_r2-robolectric-0_java" ] |
| 665 output_name = "shadows-core-3.0-18" |
| 662 } | 666 } |
| 663 | 667 |
| 664 java_library("shadows-multidex-3.0_java") { | 668 java_library("shadows-multidex-3.0_java") { |
| 665 testonly = true | 669 testonly = true |
| 666 processors_javac = | 670 processors_javac = |
| 667 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] | 671 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] |
| 668 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage=
org.robolectric.shadows.multidex" ] | 672 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage=
org.robolectric.shadows.multidex" ] |
| 669 provider_configurations = [ "robolectric/robolectric-shadows/shadows-multidex/
src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ] | 673 provider_configurations = [ "robolectric/robolectric-shadows/shadows-multidex/
src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ] |
| 670 java_files = [ | 674 java_files = [ |
| 671 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect
ric/shadows/multidex/ShadowMultiDex.java", | 675 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect
ric/shadows/multidex/ShadowMultiDex.java", |
| 672 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect
ric/shadows/multidex/package-info.java", | 676 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect
ric/shadows/multidex/package-info.java", |
| 673 ] | 677 ] |
| 674 | 678 |
| 675 deps = [ | 679 deps = [ |
| 676 ":android-all-5.0.0_r2-robolectric-1_java", | 680 ":android-all-5.0.0_r2-robolectric-1_java", |
| 677 ":robolectric_annotations_java", | 681 ":robolectric_annotations_java", |
| 678 ":robolectric_processor_java", | 682 ":robolectric_processor_java", |
| 679 ":robolectric_utils_java", | 683 ":robolectric_utils_java", |
| 680 "//build/android:sun_tools_java", | 684 "//build/android:sun_tools_java", |
| 681 "//third_party/android_tools:android_support_multidex_java", | 685 "//third_party/android_tools:android_support_multidex_java", |
| 682 "//third_party/guava:guava_java", | 686 "//third_party/guava:guava_java", |
| 683 ] | 687 ] |
| 684 | 688 |
| 685 # Work-around for gradle generator not yet supporting annotation processors. | 689 # Work-around for gradle generator not yet supporting annotation processors. |
| 686 gradle_treat_as_prebuilt = true | 690 gradle_treat_as_prebuilt = true |
| 687 } | 691 } |
| OLD | NEW |