OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
10 } | 10 } |
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 } | 1577 } |
1578 | 1578 |
1579 # GYP: //base.gyp:base_java | 1579 # GYP: //base.gyp:base_java |
1580 android_library("base_java") { | 1580 android_library("base_java") { |
1581 srcjar_deps = [ | 1581 srcjar_deps = [ |
1582 ":base_android_java_enums_srcjar", | 1582 ":base_android_java_enums_srcjar", |
1583 ":base_native_libraries_gen", | 1583 ":base_native_libraries_gen", |
1584 ] | 1584 ] |
1585 | 1585 |
1586 deps = [ | 1586 deps = [ |
| 1587 "//third_party/android_tools:android_support_multidex_java", |
1587 "//third_party/jsr-305:jsr_305_javalib", | 1588 "//third_party/jsr-305:jsr_305_javalib", |
1588 ] | 1589 ] |
1589 | 1590 |
1590 DEPRECATED_java_in_dir = "android/java/src" | 1591 DEPRECATED_java_in_dir = "android/java/src" |
1591 | 1592 |
1592 # A new version of NativeLibraries.java (with the actual correct values) | 1593 # A new version of NativeLibraries.java (with the actual correct values) |
1593 # will be created when creating an apk. | 1594 # will be created when creating an apk. |
1594 jar_excluded_patterns = [ | 1595 jar_excluded_patterns = [ |
1595 "*/NativeLibraries.class", | 1596 "*/NativeLibraries.class", |
1596 "*/NativeLibraries##*.class", | 1597 "*/NativeLibraries##*.class", |
(...skipping 11 matching lines...) Expand all Loading... |
1608 | 1609 |
1609 # GYP: //base.gyp:base_java_test_support | 1610 # GYP: //base.gyp:base_java_test_support |
1610 android_library("base_java_test_support") { | 1611 android_library("base_java_test_support") { |
1611 deps = [ | 1612 deps = [ |
1612 ":base_java", | 1613 ":base_java", |
1613 "//testing/android/reporter:reporter_java", | 1614 "//testing/android/reporter:reporter_java", |
1614 ] | 1615 ] |
1615 DEPRECATED_java_in_dir = "test/android/javatests/src" | 1616 DEPRECATED_java_in_dir = "test/android/javatests/src" |
1616 } | 1617 } |
1617 | 1618 |
| 1619 # TODO(jbudorick): Remove this once we roll to robolectric 3.0 and pull |
| 1620 # in the multidex shadow library. crbug.com/522043 |
| 1621 # GYP: //base.gyp:base_junit_test_support |
| 1622 java_library("base_junit_test_support") { |
| 1623 testonly = true |
| 1624 java_files = [ "test/android/junit/src/org/chromium/base/test/shadows/Shadow
MultiDex.java" ] |
| 1625 deps = [ |
| 1626 "//third_party/android_tools:android_support_multidex_java", |
| 1627 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", |
| 1628 "//third_party/robolectric:robolectric_java", |
| 1629 ] |
| 1630 } |
| 1631 |
1618 # GYP: //base.gyp:base_junit_tests | 1632 # GYP: //base.gyp:base_junit_tests |
1619 junit_binary("base_junit_tests") { | 1633 junit_binary("base_junit_tests") { |
1620 java_files = [ "android/junit/src/org/chromium/base/LogTest.java" ] | 1634 java_files = [ |
| 1635 "android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java", |
| 1636 "android/junit/src/org/chromium/base/LogTest.java", |
| 1637 ] |
1621 deps = [ | 1638 deps = [ |
1622 ":base_java", | 1639 ":base_java", |
1623 ":base_java_test_support", | 1640 ":base_java_test_support", |
| 1641 ":base_junit_test_support", |
1624 ] | 1642 ] |
1625 } | 1643 } |
1626 | 1644 |
1627 # GYP: //base.gyp:base_java_application_state | 1645 # GYP: //base.gyp:base_java_application_state |
1628 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes | 1646 # GYP: //base.gyp:base_java_library_load_from_apk_status_codes |
1629 # GYP: //base.gyp:base_java_library_process_type | 1647 # GYP: //base.gyp:base_java_library_process_type |
1630 # GYP: //base.gyp:base_java_memory_pressure_level | 1648 # GYP: //base.gyp:base_java_memory_pressure_level |
1631 java_cpp_enum("base_android_java_enums_srcjar") { | 1649 java_cpp_enum("base_android_java_enums_srcjar") { |
1632 sources = [ | 1650 sources = [ |
1633 "android/application_status_listener.h", | 1651 "android/application_status_listener.h", |
(...skipping 19 matching lines...) Expand all Loading... |
1653 | 1671 |
1654 # GYP: //base.gyp:base_java_unittest_support | 1672 # GYP: //base.gyp:base_java_unittest_support |
1655 android_library("base_java_unittest_support") { | 1673 android_library("base_java_unittest_support") { |
1656 deps = [ | 1674 deps = [ |
1657 ":base_java", | 1675 ":base_java", |
1658 ] | 1676 ] |
1659 java_files = | 1677 java_files = |
1660 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1678 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1661 } | 1679 } |
1662 } | 1680 } |
OLD | NEW |