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

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

Issue 2760743002: Add support for robolectric play-services-shadows. (Closed)
Patch Set: 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 ":shadows_multidex_java",
45 ":shadows_play_services_java",
44 "//third_party/bouncycastle:bouncycastle_java", 46 "//third_party/bouncycastle:bouncycastle_java",
45 "//third_party/guava:guava_java", 47 "//third_party/guava:guava_java",
46 "//third_party/icu4j:icu4j_java", 48 "//third_party/icu4j:icu4j_java",
47 "//third_party/intellij:intellij_annotations_java", 49 "//third_party/intellij:intellij_annotations_java",
48 "//third_party/junit:junit", 50 "//third_party/junit:junit",
49 "//third_party/ow2_asm:asm_analysis_java", 51 "//third_party/ow2_asm:asm_analysis_java",
50 "//third_party/ow2_asm:asm_commons_java", 52 "//third_party/ow2_asm:asm_commons_java",
51 "//third_party/ow2_asm:asm_java", 53 "//third_party/ow2_asm:asm_java",
52 "//third_party/ow2_asm:asm_tree_java", 54 "//third_party/ow2_asm:asm_tree_java",
53 "//third_party/ow2_asm:asm_util_java", 55 "//third_party/ow2_asm:asm_util_java",
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 testonly = true
672 processors_javac =
673 [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
674 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage= org.robolectric.shadows.gms" ]
675 provider_configurations = [ "robolectric/robolectric-shadows/shadows-play-serv ices/src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvide r" ]
676 java_files = [
677 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGoogleAuthUtil.java",
678 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/ShadowGooglePlayServicesUtil.java",
679 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/common/ShadowGoogleApiAvailability.java",
680 "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/rob olectric/shadows/gms/package-info.java",
681 ]
682
683 deps = [
684 ":android-all-7.1.0_r7-robolectric-0_java",
685 ":robolectric_annotations_java",
686 ":robolectric_processor_java",
687 ":robolectric_resources_java",
688 ":robolectric_utils_java",
689 "//third_party/android_tools:android_support_v4_java",
690 "//third_party/guava:guava_java",
691 google_play_services_library,
692 ]
693
694 # Work-around for gradle generator not yet supporting annotation processors.
695 gradle_treat_as_prebuilt = true
696 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698