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

Side by Side Diff: base/BUILD.gn

Issue 1590243003: [Android] Rework multidex and enable multidex for unit_tests_apk. (RELAND) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed Created 4 years, 11 months 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 | « no previous file | base/android/java/src/org/chromium/base/BaseChromiumApplication.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # HOW TO WRITE CONDITIONALS IN THIS FILE 5 # HOW TO WRITE CONDITIONALS IN THIS FILE
6 # ====================================== 6 # ======================================
7 # 7 #
8 # In many other places, one would write a conditional that expresses all the 8 # In many other places, one would write a conditional that expresses all the
9 # cases when a source file is used or unused, and then either add or subtract 9 # cases when a source file is used or unused, and then either add or subtract
10 # it from the sources list in that case 10 # it from the sources list in that case
(...skipping 2039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2050 ":base_native_libraries_gen", 2050 ":base_native_libraries_gen",
2051 ] 2051 ]
2052 2052
2053 deps = [ 2053 deps = [
2054 "//third_party/android_tools:android_support_multidex_java", 2054 "//third_party/android_tools:android_support_multidex_java",
2055 "//third_party/jsr-305:jsr_305_javalib", 2055 "//third_party/jsr-305:jsr_305_javalib",
2056 ] 2056 ]
2057 2057
2058 DEPRECATED_java_in_dir = "android/java/src" 2058 DEPRECATED_java_in_dir = "android/java/src"
2059 2059
2060 # A new version of NativeLibraries.java (with the actual correct values) 2060 # New versions of ChromiumMultiDex.java and NativeLibraries.java
2061 # will be created when creating an apk. 2061 # (with the actual correct values) will be created when creating an apk.
2062 jar_excluded_patterns = [ 2062 jar_excluded_patterns = [
2063 "*/ChromiumMultiDex.class",
2063 "*/NativeLibraries.class", 2064 "*/NativeLibraries.class",
2064 "*/NativeLibraries##*.class", 2065 "*/NativeLibraries##*.class",
2065 ] 2066 ]
2066 } 2067 }
2067 2068
2068 # GYP: //base.gyp:base_javatests 2069 # GYP: //base.gyp:base_javatests
2069 android_library("base_javatests") { 2070 android_library("base_javatests") {
2070 deps = [ 2071 deps = [
2071 ":base_java", 2072 ":base_java",
2072 ":base_java_test_support", 2073 ":base_java_test_support",
(...skipping 14 matching lines...) Expand all
2087 # in the multidex shadow library. crbug.com/522043 2088 # in the multidex shadow library. crbug.com/522043
2088 # GYP: //base.gyp:base_junit_test_support 2089 # GYP: //base.gyp:base_junit_test_support
2089 java_library("base_junit_test_support") { 2090 java_library("base_junit_test_support") {
2090 testonly = true 2091 testonly = true
2091 java_files = [ "test/android/junit/src/org/chromium/base/test/shadows/Shadow MultiDex.java" ] 2092 java_files = [ "test/android/junit/src/org/chromium/base/test/shadows/Shadow MultiDex.java" ]
2092 deps = [ 2093 deps = [
2093 "//third_party/android_tools:android_support_multidex_java", 2094 "//third_party/android_tools:android_support_multidex_java",
2094 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", 2095 "//third_party/robolectric:android-all-4.3_r2-robolectric-0",
2095 "//third_party/robolectric:robolectric_java", 2096 "//third_party/robolectric:robolectric_java",
2096 ] 2097 ]
2098 srcjar_deps = [ ":base_multidex_gen" ]
2097 } 2099 }
2098 2100
2099 # GYP: //base.gyp:base_junit_tests 2101 # GYP: //base.gyp:base_junit_tests
2100 junit_binary("base_junit_tests") { 2102 junit_binary("base_junit_tests") {
2101 java_files = [ 2103 java_files = [
2102 "android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java", 2104 "android/junit/src/org/chromium/base/BaseChromiumApplicationTest.java",
2103 "android/junit/src/org/chromium/base/LogTest.java", 2105 "android/junit/src/org/chromium/base/LogTest.java",
2104 "test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java", 2106 "test/android/junit/src/org/chromium/base/test/util/DisableIfTest.java",
2105 ] 2107 ]
2106 deps = [ 2108 deps = [
(...skipping 14 matching lines...) Expand all
2121 "android/library_loader/library_loader_hooks.h", 2123 "android/library_loader/library_loader_hooks.h",
2122 "memory/memory_pressure_listener.h", 2124 "memory/memory_pressure_listener.h",
2123 ] 2125 ]
2124 } 2126 }
2125 2127
2126 # GYP: //base/base.gyp:base_multidex_gen 2128 # GYP: //base/base.gyp:base_multidex_gen
2127 java_cpp_template("base_multidex_gen") { 2129 java_cpp_template("base_multidex_gen") {
2128 sources = [ 2130 sources = [
2129 "android/java/templates/ChromiumMultiDex.template", 2131 "android/java/templates/ChromiumMultiDex.template",
2130 ] 2132 ]
2131 if (is_debug) {
2132 defines = [ "MULTIDEX_CONFIGURATION_Debug" ]
2133 }
2134 package_name = "org/chromium/base/multidex" 2133 package_name = "org/chromium/base/multidex"
2135 } 2134 }
2136 2135
2137 # GYP: //base/base.gyp:base_native_libraries_gen 2136 # GYP: //base/base.gyp:base_native_libraries_gen
2138 java_cpp_template("base_native_libraries_gen") { 2137 java_cpp_template("base_native_libraries_gen") {
2139 sources = [ 2138 sources = [
2140 "android/java/templates/NativeLibraries.template", 2139 "android/java/templates/NativeLibraries.template",
2141 ] 2140 ]
2142 package_name = "org/chromium/base/library_loader" 2141 package_name = "org/chromium/base/library_loader"
2143 } 2142 }
2144 2143
2145 # GYP: //base.gyp:base_java_unittest_support 2144 # GYP: //base.gyp:base_java_unittest_support
2146 android_library("base_java_unittest_support") { 2145 android_library("base_java_unittest_support") {
2147 deps = [ 2146 deps = [
2148 ":base_java", 2147 ":base_java",
2149 ] 2148 ]
2150 java_files = 2149 java_files =
2151 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2150 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2152 } 2151 }
2153 } 2152 }
OLDNEW
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/BaseChromiumApplication.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698