| 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_prebuilt("tagsoup-1.2") { | 7 java_prebuilt("tagsoup-1.2") { |
| 8 testonly = true | 8 testonly = true |
| 9 jar_path = "lib/tagsoup-1.2.jar" | 9 jar_path = "lib/tagsoup-1.2.jar" |
| 10 } | 10 } |
| 11 | 11 |
| 12 java_prebuilt("json-20080701") { | 12 java_prebuilt("json-20080701") { |
| 13 testonly = true | 13 testonly = true |
| 14 jar_path = "lib/json-20080701.jar" | 14 jar_path = "lib/json-20080701.jar" |
| 15 } | 15 } |
| 16 | 16 |
| 17 java_prebuilt("android-all-4.3_r2-robolectric-0") { | 17 java_prebuilt("android-all-4.3_r2-robolectric-0") { |
| 18 testonly = true | 18 testonly = true |
| 19 jar_path = "lib/android-all-4.3_r2-robolectric-0.jar" | 19 jar_path = "lib/android-all-4.3_r2-robolectric-0.jar" |
| 20 } | 20 } |
| 21 | 21 |
| 22 java_prebuilt("android-all-5.0.0_r2-robolectric-1") { | 22 java_prebuilt("android-all-5.0.0_r2-robolectric-1") { |
| 23 testonly = true | 23 testonly = true |
| 24 jar_path = "lib/android-all-5.0.0_r2-robolectric-1.jar" | 24 jar_path = "lib/android-all-5.0.0_r2-robolectric-1.jar" |
| 25 } | 25 } |
| 26 | 26 |
| 27 # TODO(mikecase): Remove this target once all tests have been converted to | 27 java_library("robolectric_java") { |
| 28 # Robolectric 3.0. | |
| 29 # GYP: //third_party/robolectric/robolectric.gyp:robolectric_jar | |
| 30 java_prebuilt("robolectric_java") { | |
| 31 testonly = true | |
| 32 jar_path = "lib/robolectric-2.4-jar-with-dependencies.jar" | |
| 33 deps = [ | |
| 34 ":android-all-4.3_r2-robolectric-0", | |
| 35 ":json-20080701", | |
| 36 ":tagsoup-1.2", | |
| 37 ] | |
| 38 } | |
| 39 | |
| 40 # TODO(mikecase): Rename target to robolectric_java once all tests have been | |
| 41 # converted to Robolectric 3.0 and the old robolectric_java target has been | |
| 42 # removed. | |
| 43 java_library("robolectric_3_java") { | |
| 44 testonly = true | 28 testonly = true |
| 45 deps = [ | 29 deps = [ |
| 46 ":android-all-5.0.0_r2-robolectric-1", | 30 ":android-all-5.0.0_r2-robolectric-1", |
| 47 ":json-20080701", | 31 ":json-20080701", |
| 48 ":robolectric_annotations_java", | 32 ":robolectric_annotations_java", |
| 49 ":robolectric_resources_java", | 33 ":robolectric_resources_java", |
| 50 ":robolectric_utils_java", | 34 ":robolectric_utils_java", |
| 51 ":shadows-core-3.0-18", | 35 ":shadows-core-3.0-18", |
| 52 ":shadows-core-3.0-21", | 36 ":shadows-core-3.0-21", |
| 53 ":shadows-multidex-3.0", | 37 ":shadows-multidex-3.0", |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 571 |
| 588 java_library(target_name) { | 572 java_library(target_name) { |
| 589 testonly = true | 573 testonly = true |
| 590 processors_javac = | 574 processors_javac = |
| 591 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] | 575 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] |
| 592 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag
e=org.robolectric" ] | 576 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag
e=org.robolectric" ] |
| 593 provider_configurations = [ | 577 provider_configurations = [ |
| 594 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr
ic.internal.ShadowProvider", | 578 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr
ic.internal.ShadowProvider", |
| 595 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/
services/org.robolectric.ShadowsAdapter", | 579 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/
services/org.robolectric.ShadowsAdapter", |
| 596 ] | 580 ] |
| 597 if (is_linux) { | 581 if (host_os == "linux") { |
| 598 additional_jar_files = [ | 582 additional_jar_files = [ |
| 599 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + | 583 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + |
| 600 ":linux-x86_64/libsqlite4java.so", | 584 ":linux-x86_64/libsqlite4java.so", |
| 601 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + | 585 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + |
| 602 ":linux-x86/libsqlite4java.so", | 586 ":linux-x86/libsqlite4java.so", |
| 603 ] | 587 ] |
| 604 } | 588 } |
| 605 if (is_mac) { | 589 if (host_os == "mac") { |
| 606 additional_jar_files = | 590 additional_jar_files = |
| 607 [ rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + | 591 [ rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + |
| 608 ":mac-x86_64/libsqlite4java.jnilib" ] | 592 ":mac-x86_64/libsqlite4java.jnilib" ] |
| 609 } | 593 } |
| 610 if (is_win) { | 594 if (host_os == "win") { |
| 611 additional_jar_files = [ | 595 additional_jar_files = [ |
| 612 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + | 596 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + |
| 613 ":windows-x86/sqlite4java.dll", | 597 ":windows-x86/sqlite4java.dll", |
| 614 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + | 598 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + |
| 615 ":windows-x86_64/sqlite4java.dll", | 599 ":windows-x86_64/sqlite4java.dll", |
| 616 ] | 600 ] |
| 617 } | 601 } |
| 618 java_files = _shadows_core_java_files | 602 java_files = _shadows_core_java_files |
| 619 java_files += _processed_template_files | 603 java_files += _processed_template_files |
| 620 | 604 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 deps = [ | 642 deps = [ |
| 659 ":android-all-5.0.0_r2-robolectric-1", | 643 ":android-all-5.0.0_r2-robolectric-1", |
| 660 ":robolectric_annotations_java", | 644 ":robolectric_annotations_java", |
| 661 ":robolectric_processor_java", | 645 ":robolectric_processor_java", |
| 662 ":robolectric_utils_java", | 646 ":robolectric_utils_java", |
| 663 "//build/android:sun_tools_java", | 647 "//build/android:sun_tools_java", |
| 664 "//third_party/android_tools:android_support_multidex_java", | 648 "//third_party/android_tools:android_support_multidex_java", |
| 665 "//third_party/guava:guava_java", | 649 "//third_party/guava:guava_java", |
| 666 ] | 650 ] |
| 667 } | 651 } |
| OLD | NEW |