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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 580 | 564 |
| 581 java_library(target_name) { | 565 java_library(target_name) { |
| 582 testonly = true | 566 testonly = true |
| 583 processors_javac = | 567 processors_javac = |
| 584 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] | 568 [ "org.robolectric.annotation.processing.RobolectricProcessor" ] |
| 585 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag e=org.robolectric" ] | 569 processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackag e=org.robolectric" ] |
| 586 provider_configurations = [ | 570 provider_configurations = [ |
| 587 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr ic.internal.ShadowProvider", | 571 "robolectric/robolectric-shadows/resources/META-INF/services/org.robolectr ic.internal.ShadowProvider", |
| 588 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/ services/org.robolectric.ShadowsAdapter", | 572 "robolectric/robolectric-shadows/shadows-core/src/main/resources/META-INF/ services/org.robolectric.ShadowsAdapter", |
| 589 ] | 573 ] |
| 590 if (is_linux) { | 574 additional_jar_files = [ |
|
mikecase (-- gone --)
2016/08/02 06:12:26
This didnt end up working how I wanted. I assumed
| |
| 591 additional_jar_files = [ | 575 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + |
| 592 rebase_path("../sqlite4java/lib/linux-x86_64/libsqlite4java.so") + | 576 ":linux-x86_64/libsqlite4java.so", |
| 593 ":linux-x86_64/libsqlite4java.so", | 577 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + |
| 594 rebase_path("../sqlite4java/lib/linux-x86/libsqlite4java.so") + | 578 ":linux-x86/libsqlite4java.so", |
| 595 ":linux-x86/libsqlite4java.so", | 579 rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + |
| 596 ] | 580 ":mac-x86_64/libsqlite4java.jnilib", |
| 597 } | 581 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + |
| 598 if (is_mac) { | 582 ":windows-x86/sqlite4java.dll", |
| 599 additional_jar_files = | 583 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + |
| 600 [ rebase_path("../sqlite4java/lib/mac-x86_64/libsqlite4java.jnilib") + | 584 ":windows-x86_64/sqlite4java.dll", |
| 601 ":mac-x86_64/libsqlite4java.jnilib" ] | 585 ] |
| 602 } | |
| 603 if (is_win) { | |
| 604 additional_jar_files = [ | |
| 605 rebase_path("../sqlite4java/lib/windows-x86/sqlite4java.dll") + | |
| 606 ":windows-x86/sqlite4java.dll", | |
| 607 rebase_path("../sqlite4java/lib/windows-x86_64/sqlite4java.dll") + | |
| 608 ":windows-x86_64/sqlite4java.dll", | |
| 609 ] | |
| 610 } | |
| 611 java_files = _shadows_core_java_files | 586 java_files = _shadows_core_java_files |
| 612 java_files += _processed_template_files | 587 java_files += _processed_template_files |
| 613 | 588 |
| 614 deps = [ | 589 deps = [ |
| 615 ":$_process_templates_target_name", | 590 ":$_process_templates_target_name", |
| 616 ":robolectric_annotations_java", | 591 ":robolectric_annotations_java", |
| 617 ":robolectric_processor_java", | 592 ":robolectric_processor_java", |
| 618 ":robolectric_resources_java", | 593 ":robolectric_resources_java", |
| 619 ":robolectric_utils_java", | 594 ":robolectric_utils_java", |
| 620 "//build/android:sun_tools_java", | 595 "//build/android:sun_tools_java", |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 651 deps = [ | 626 deps = [ |
| 652 ":android-all-5.0.0_r2-robolectric-1", | 627 ":android-all-5.0.0_r2-robolectric-1", |
| 653 ":robolectric_annotations_java", | 628 ":robolectric_annotations_java", |
| 654 ":robolectric_processor_java", | 629 ":robolectric_processor_java", |
| 655 ":robolectric_utils_java", | 630 ":robolectric_utils_java", |
| 656 "//build/android:sun_tools_java", | 631 "//build/android:sun_tools_java", |
| 657 "//third_party/android_tools:android_support_multidex_java", | 632 "//third_party/android_tools:android_support_multidex_java", |
| 658 "//third_party/guava:guava_java", | 633 "//third_party/guava:guava_java", |
| 659 ] | 634 ] |
| 660 } | 635 } |
| OLD | NEW |