Chromium Code Reviews| 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 additional_jar_files = [ |
|
jbudorick
2016/08/05 15:38:45
I think what you wanted was https://chromium.googl
mikecase (-- gone --)
2016/08/05 16:15:43
Woohoo! This works. Updated.
| |
| 598 additional_jar_files = [ | 582 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + |
| 599 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + | 583 ":linux-x86_64/libsqlite4java.so", |
| 600 ":linux-x86_64/libsqlite4java.so", | 584 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + |
| 601 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + | 585 ":linux-x86/libsqlite4java.so", |
| 602 ":linux-x86/libsqlite4java.so", | 586 rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + |
| 603 ] | 587 ":mac-x86_64/libsqlite4java.jnilib", |
| 604 } | 588 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + |
| 605 if (is_mac) { | 589 ":windows-x86/sqlite4java.dll", |
| 606 additional_jar_files = | 590 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + |
| 607 [ rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + | 591 ":windows-x86_64/sqlite4java.dll", |
| 608 ":mac-x86_64/libsqlite4java.jnilib" ] | 592 ] |
| 609 } | |
| 610 if (is_win) { | |
| 611 additional_jar_files = [ | |
| 612 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + | |
| 613 ":windows-x86/sqlite4java.dll", | |
| 614 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + | |
| 615 ":windows-x86_64/sqlite4java.dll", | |
| 616 ] | |
| 617 } | |
| 618 java_files = _shadows_core_java_files | 593 java_files = _shadows_core_java_files |
| 619 java_files += _processed_template_files | 594 java_files += _processed_template_files |
| 620 | 595 |
| 621 deps = [ | 596 deps = [ |
| 622 ":$_process_templates_target_name", | 597 ":$_process_templates_target_name", |
| 623 ":robolectric_annotations_java", | 598 ":robolectric_annotations_java", |
| 624 ":robolectric_processor_java", | 599 ":robolectric_processor_java", |
| 625 ":robolectric_resources_java", | 600 ":robolectric_resources_java", |
| 626 ":robolectric_utils_java", | 601 ":robolectric_utils_java", |
| 627 "//build/android:sun_tools_java", | 602 "//build/android:sun_tools_java", |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 658 deps = [ | 633 deps = [ |
| 659 ":android-all-5.0.0_r2-robolectric-1", | 634 ":android-all-5.0.0_r2-robolectric-1", |
| 660 ":robolectric_annotations_java", | 635 ":robolectric_annotations_java", |
| 661 ":robolectric_processor_java", | 636 ":robolectric_processor_java", |
| 662 ":robolectric_utils_java", | 637 ":robolectric_utils_java", |
| 663 "//build/android:sun_tools_java", | 638 "//build/android:sun_tools_java", |
| 664 "//third_party/android_tools:android_support_multidex_java", | 639 "//third_party/android_tools:android_support_multidex_java", |
| 665 "//third_party/guava:guava_java", | 640 "//third_party/guava:guava_java", |
| 666 ] | 641 ] |
| 667 } | 642 } |
| OLD | NEW |