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

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

Issue 2760743002: Add support for robolectric play-services-shadows. (Closed)
Patch Set: "Fix" requires_android build issue 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
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 bypass_platform_checks = true
645
644 testonly = true 646 testonly = true
645 processors_javac = 647 processors_javac =
646 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] 648 [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
647 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.multidex" ] 649 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" ] 650 provider_configurations = [ "robolectric/robolectric-shadows/shadows-multidex/ src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ]
649 java_files = [ 651 java_files = [
650 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/ShadowMultiDex.java", 652 "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", 653 "robolectric/robolectric-shadows/shadows-multidex/src/main/java/org/robolect ric/shadows/multidex/package-info.java",
652 ] 654 ]
653 655
654 deps = [ 656 deps = [
655 ":android-all-7.1.0_r7-robolectric-0_java", 657 ":android-all-7.1.0_r7-robolectric-0_java",
656 ":robolectric_annotations_java", 658 ":robolectric_annotations_java",
657 ":robolectric_processor_java", 659 ":robolectric_processor_java",
658 ":robolectric_utils_java", 660 ":robolectric_utils_java",
659 "//build/android:sun_tools_java", 661 "//build/android:sun_tools_java",
660 "//third_party/android_tools:android_support_multidex_java", 662 "//third_party/android_tools:android_support_multidex_java",
661 "//third_party/guava:guava_java", 663 "//third_party/guava:guava_java",
662 ] 664 ]
663 665
664 # Work-around for gradle generator not yet supporting annotation processors. 666 # Work-around for gradle generator not yet supporting annotation processors.
665 gradle_treat_as_prebuilt = true 667 gradle_treat_as_prebuilt = true
666 } 668 }
669
670 java_library("shadows_play_services_java") {
671 bypass_platform_checks = true
672
673 testonly = true
674 processors_javac =
675 [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
676 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.gms" ]
677 provider_configurations = [ "robolectric/robolectric-shadows/shadows-play-serv ices/src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvide r" ]
678 java_files = [
679 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGoogleAuthUtil.java",
680 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGooglePlayServicesUtil.java",
681 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/common/ShadowGoogleApiAvailability.java",
682 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/package-info.java",
683 ]
684
685 deps = [
686 ":android-all-7.1.0_r7-robolectric-0_java",
687 ":robolectric_annotations_java",
688 ":robolectric_processor_java",
689 ":robolectric_resources_java",
690 ":robolectric_utils_java",
691 "//third_party/android_tools:android_support_v4_java",
692 "//third_party/guava:guava_java",
693 google_play_services_library,
694 ]
695
696 # Work-around for gradle generator not yet supporting annotation processors.
697 gradle_treat_as_prebuilt = true
698 }
OLDNEW
« chrome/android/webapk/test/BUILD.gn ('K') | « testing/android/junit/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698