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

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

Issue 2508553002: generate_gradle.py: Add support for junit and java_binary targets (Closed)
Patch Set: update docs/android_studio.md to no long say junit doesn't work Created 4 years, 1 month 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 | « docs/android_studio.md ('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-5.0.0_r2-robolectric-1_java", 10 ":android-all-5.0.0_r2-robolectric-1_java",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "robolectric/robolectric/src/main/java/org/robolectric/util/ComponentControl ler.java", 106 "robolectric/robolectric/src/main/java/org/robolectric/util/ComponentControl ler.java",
107 "robolectric/robolectric/src/main/java/org/robolectric/util/FragmentControll er.java", 107 "robolectric/robolectric/src/main/java/org/robolectric/util/FragmentControll er.java",
108 "robolectric/robolectric/src/main/java/org/robolectric/util/FragmentTestUtil .java", 108 "robolectric/robolectric/src/main/java/org/robolectric/util/FragmentTestUtil .java",
109 "robolectric/robolectric/src/main/java/org/robolectric/util/ServiceControlle r.java", 109 "robolectric/robolectric/src/main/java/org/robolectric/util/ServiceControlle r.java",
110 ] 110 ]
111 additional_jar_files = [ [ 111 additional_jar_files = [ [
112 rebase_path( 112 rebase_path(
113 "robolectric/robolectric/src/main/resources/robolectric-version.prop erties"), 113 "robolectric/robolectric/src/main/resources/robolectric-version.prop erties"),
114 "robolectric-version.properties", 114 "robolectric-version.properties",
115 ] ] 115 ] ]
116
117 # Work-around for gradle generator not yet supporting additional_jar_files.
118 gradle_treat_as_prebuilt = true
116 } 119 }
117 120
118 java_library("robolectric_annotations_java") { 121 java_library("robolectric_annotations_java") {
119 testonly = true 122 testonly = true
120 deps = [ 123 deps = [
121 ":android-all-5.0.0_r2-robolectric-1_java", 124 ":android-all-5.0.0_r2-robolectric-1_java",
122 "//third_party/intellij:intellij_annotations_java", 125 "//third_party/intellij:intellij_annotations_java",
123 ] 126 ]
124 java_files = [ 127 java_files = [
125 "robolectric/robolectric-annotations/src/main/java/org/robolectric/annotatio n/AccessibilityChecks.java", 128 "robolectric/robolectric-annotations/src/main/java/org/robolectric/annotatio n/AccessibilityChecks.java",
(...skipping 27 matching lines...) Expand all
153 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/generator/package-info.java", 156 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/generator/package-info.java",
154 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/package-info.java", 157 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/package-info.java",
155 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/FoundOnImplementsValidator.java", 158 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/FoundOnImplementsValidator.java",
156 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ImplementationValidator.java", 159 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ImplementationValidator.java",
157 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ImplementsValidator.java", 160 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ImplementsValidator.java",
158 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/RealObjectValidator.java", 161 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/RealObjectValidator.java",
159 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ResetterValidator.java", 162 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/ResetterValidator.java",
160 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/Validator.java", 163 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/Validator.java",
161 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/package-info.java", 164 "robolectric/robolectric-processor/src/main/java/org/robolectric/annotation/ processing/validator/package-info.java",
162 ] 165 ]
166
167 # Work-around for gradle generator not yet supporting annotation processors.
168 gradle_treat_as_prebuilt = true
163 } 169 }
164 170
165 java_library("robolectric_resources_java") { 171 java_library("robolectric_resources_java") {
166 testonly = true 172 testonly = true
167 deps = [ 173 deps = [
168 ":android-all-5.0.0_r2-robolectric-1_java", 174 ":android-all-5.0.0_r2-robolectric-1_java",
169 ":robolectric_annotations_java", 175 ":robolectric_annotations_java",
170 ":robolectric_utils_java", 176 ":robolectric_utils_java",
171 "//third_party/intellij:intellij_annotations_java", 177 "//third_party/intellij:intellij_annotations_java",
172 ] 178 ]
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 ":robolectric_processor_java", 638 ":robolectric_processor_java",
633 ":robolectric_resources_java", 639 ":robolectric_resources_java",
634 ":robolectric_utils_java", 640 ":robolectric_utils_java",
635 "//build/android:sun_tools_java", 641 "//build/android:sun_tools_java",
636 "//third_party/guava:guava_java", 642 "//third_party/guava:guava_java",
637 "//third_party/icu4j:icu4j_java", 643 "//third_party/icu4j:icu4j_java",
638 "//third_party/intellij:intellij_annotations_java", 644 "//third_party/intellij:intellij_annotations_java",
639 "//third_party/sqlite4java:sqlite4java_java", 645 "//third_party/sqlite4java:sqlite4java_java",
640 ] 646 ]
641 deps += invoker.android_sdk_deps 647 deps += invoker.android_sdk_deps
648
649 # Work-around for gradle generator not yet supporting annotation processors.
650 gradle_treat_as_prebuilt = true
642 } 651 }
643 } 652 }
644 653
645 shadows_core("shadows-core-3.0-21_java") { 654 shadows_core("shadows-core-3.0-21_java") {
646 api_level = 21 655 api_level = 21
647 android_sdk_deps = [ ":android-all-5.0.0_r2-robolectric-1_java" ] 656 android_sdk_deps = [ ":android-all-5.0.0_r2-robolectric-1_java" ]
648 } 657 }
649 658
650 shadows_core("shadows-core-3.0-18_java") { 659 shadows_core("shadows-core-3.0-18_java") {
651 api_level = 18 660 api_level = 18
(...skipping 13 matching lines...) Expand all
665 674
666 deps = [ 675 deps = [
667 ":android-all-5.0.0_r2-robolectric-1_java", 676 ":android-all-5.0.0_r2-robolectric-1_java",
668 ":robolectric_annotations_java", 677 ":robolectric_annotations_java",
669 ":robolectric_processor_java", 678 ":robolectric_processor_java",
670 ":robolectric_utils_java", 679 ":robolectric_utils_java",
671 "//build/android:sun_tools_java", 680 "//build/android:sun_tools_java",
672 "//third_party/android_tools:android_support_multidex_java", 681 "//third_party/android_tools:android_support_multidex_java",
673 "//third_party/guava:guava_java", 682 "//third_party/guava:guava_java",
674 ] 683 ]
684
685 # Work-around for gradle generator not yet supporting annotation processors.
686 gradle_treat_as_prebuilt = true
675 } 687 }
OLDNEW
« no previous file with comments | « docs/android_studio.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698