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

Side by Side Diff: third_party/robolectric/BUILD.gn

Issue 2760743002: Add support for robolectric play-services-shadows. (Closed)
Patch Set: Updated robolectric DEPS to pull in hard-coded file Created 3 years, 9 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 | « testing/android/junit/BUILD.gn ('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 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-7.1.0_r7-robolectric-0_java", 10 ":android-all-7.1.0_r7-robolectric-0_java",
11 ":robolectric_annotations_java", 11 ":robolectric_annotations_java",
12 ":robolectric_java", 12 ":robolectric_java",
13 ":robolectric_resources_java", 13 ":robolectric_resources_java",
14 ":robolectric_utils_java", 14 ":robolectric_utils_java",
15 ":shadows_core_java", 15 ":shadows_core_java",
16 ":shadows_multidex_java", 16 ":shadows_multidex_java",
17 ":shadows_play_services_java",
17 ] 18 ]
18 } 19 }
19 20
20 java_prebuilt("android-all-4.3_r2-robolectric-0_java") { 21 java_prebuilt("android-all-4.3_r2-robolectric-0_java") {
21 testonly = true 22 testonly = true
22 jar_path = "lib/android-all-4.3_r2-robolectric-0.jar" 23 jar_path = "lib/android-all-4.3_r2-robolectric-0.jar"
23 } 24 }
24 25
25 java_prebuilt("android-all-5.0.0_r2-robolectric-1_java") { 26 java_prebuilt("android-all-5.0.0_r2-robolectric-1_java") {
26 testonly = true 27 testonly = true
27 jar_path = "lib/android-all-5.0.0_r2-robolectric-1.jar" 28 jar_path = "lib/android-all-5.0.0_r2-robolectric-1.jar"
28 } 29 }
29 30
30 java_prebuilt("android-all-7.1.0_r7-robolectric-0_java") { 31 java_prebuilt("android-all-7.1.0_r7-robolectric-0_java") {
31 testonly = true 32 testonly = true
32 jar_path = "lib/android-all-7.1.0_r7-robolectric-0.jar" 33 jar_path = "lib/android-all-7.1.0_r7-robolectric-0.jar"
33 } 34 }
34 35
35 java_library("robolectric_java") { 36 java_library("robolectric_java") {
36 testonly = true 37 testonly = true
37 deps = [ 38 deps = [
38 ":android-all-7.1.0_r7-robolectric-0_java", 39 ":android-all-7.1.0_r7-robolectric-0_java",
39 ":robolectric_annotations_java", 40 ":robolectric_annotations_java",
40 ":robolectric_resources_java", 41 ":robolectric_resources_java",
41 ":robolectric_utils_java", 42 ":robolectric_utils_java",
42 ":shadows_core_java", 43 ":shadows_core_java",
43 ":shadows_multidex_java",
44 "//third_party/bouncycastle:bouncycastle_java", 44 "//third_party/bouncycastle:bouncycastle_java",
45 "//third_party/guava:guava_java", 45 "//third_party/guava:guava_java",
46 "//third_party/icu4j:icu4j_java", 46 "//third_party/icu4j:icu4j_java",
47 "//third_party/intellij:intellij_annotations_java", 47 "//third_party/intellij:intellij_annotations_java",
48 "//third_party/junit:junit", 48 "//third_party/junit:junit",
49 "//third_party/ow2_asm:asm_analysis_java", 49 "//third_party/ow2_asm:asm_analysis_java",
50 "//third_party/ow2_asm:asm_commons_java", 50 "//third_party/ow2_asm:asm_commons_java",
51 "//third_party/ow2_asm:asm_java", 51 "//third_party/ow2_asm:asm_java",
52 "//third_party/ow2_asm:asm_tree_java", 52 "//third_party/ow2_asm:asm_tree_java",
53 "//third_party/ow2_asm:asm_util_java", 53 "//third_party/ow2_asm:asm_util_java",
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 "//third_party/icu4j:icu4j_java", 634 "//third_party/icu4j:icu4j_java",
635 "//third_party/intellij:intellij_annotations_java", 635 "//third_party/intellij:intellij_annotations_java",
636 "//third_party/sqlite4java:sqlite4java_java", 636 "//third_party/sqlite4java:sqlite4java_java",
637 ] 637 ]
638 638
639 # Work-around for gradle generator not yet supporting annotation processors. 639 # Work-around for gradle generator not yet supporting annotation processors.
640 gradle_treat_as_prebuilt = true 640 gradle_treat_as_prebuilt = true
641 } 641 }
642 642
643 java_library("shadows_multidex_java") { 643 java_library("shadows_multidex_java") {
644 # Skip platform checks since we must depend on android_support_multidex_java
645 # here which requires_android.
646 bypass_platform_checks = true
647
644 testonly = true 648 testonly = true
645 processors_javac = 649 processors_javac =
646 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] 650 [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
647 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.multidex" ] 651 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.multidex" ]
648 provider_configurations = [ "robolectric/robolectric-shadows/shadows-multidex/ src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ] 652 provider_configurations = [ "robolectric/robolectric-shadows/shadows-multidex/ src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ]
649 java_files = [ 653 java_files = [
650 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/ShadowMultiDex.java", 654 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/ShadowMultiDex.java",
651 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/package-info.java", 655 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/package-info.java",
652 ] 656 ]
653 657
654 deps = [ 658 deps = [
655 ":android-all-7.1.0_r7-robolectric-0_java", 659 ":android-all-7.1.0_r7-robolectric-0_java",
656 ":robolectric_annotations_java", 660 ":robolectric_annotations_java",
657 ":robolectric_processor_java", 661 ":robolectric_processor_java",
658 ":robolectric_utils_java", 662 ":robolectric_utils_java",
659 "//build/android:sun_tools_java", 663 "//build/android:sun_tools_java",
660 "//third_party/android_tools:android_support_multidex_java", 664 "//third_party/android_tools:android_support_multidex_java",
661 "//third_party/guava:guava_java", 665 "//third_party/guava:guava_java",
662 ] 666 ]
663 667
664 # Work-around for gradle generator not yet supporting annotation processors. 668 # Work-around for gradle generator not yet supporting annotation processors.
665 gradle_treat_as_prebuilt = true 669 gradle_treat_as_prebuilt = true
666 } 670 }
671
672 java_library("shadows_play_services_java") {
673 # Skip platform checks since we must depend on android_support_v4_java
674 # and google_play_services_library here which both requires_android.
675 bypass_platform_checks = true
676
677 testonly = true
678 processors_javac =
679 [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
680 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.gms" ]
681 provider_configurations = [ "robolectric/robolectric-shadows/shadows-play-serv ices/src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvide r" ]
682 java_files = [
683 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGoogleAuthUtil.java",
684 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGooglePlayServicesUtil.java",
685 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/common/ShadowGoogleApiAvailability.java",
686 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/package-info.java",
687 ]
688
689 deps = [
690 ":android-all-7.1.0_r7-robolectric-0_java",
691 ":robolectric_annotations_java",
692 ":robolectric_processor_java",
693 ":robolectric_resources_java",
694 ":robolectric_utils_java",
695 "//third_party/android_tools:android_support_v4_java",
696 "//third_party/guava:guava_java",
697 google_play_services_library,
698 ]
699
700 # Work-around for gradle generator not yet supporting annotation processors.
701 gradle_treat_as_prebuilt = true
702 }
OLDNEW
« no previous file with comments | « testing/android/junit/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698