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

Side by Side Diff: base/BUILD.gn

Issue 1581563003: [Android] Rework multidex and enable multidex for unit_tests_apk. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after
2048 ":base_native_libraries_gen", 2048 ":base_native_libraries_gen",
2049 ] 2049 ]
2050 2050
2051 deps = [ 2051 deps = [
2052 "//third_party/android_tools:android_support_multidex_java", 2052 "//third_party/android_tools:android_support_multidex_java",
2053 "//third_party/jsr-305:jsr_305_javalib", 2053 "//third_party/jsr-305:jsr_305_javalib",
2054 ] 2054 ]
2055 2055
2056 DEPRECATED_java_in_dir = "android/java/src" 2056 DEPRECATED_java_in_dir = "android/java/src"
2057 2057
2058 # A new version of NativeLibraries.java (with the actual correct values) 2058 # New versions of ChromiumMultiDex.java and NativeLibraries.java
2059 # will be created when creating an apk. 2059 # (with the actual correct values) will be created when creating an apk.
2060 jar_excluded_patterns = [ 2060 jar_excluded_patterns = [
2061 "*/ChromiumMultiDex.class",
2061 "*/NativeLibraries.class", 2062 "*/NativeLibraries.class",
2062 "*/NativeLibraries##*.class", 2063 "*/NativeLibraries##*.class",
2063 ] 2064 ]
2064 } 2065 }
2065 2066
2066 # GYP: //base.gyp:base_javatests 2067 # GYP: //base.gyp:base_javatests
2067 android_library("base_javatests") { 2068 android_library("base_javatests") {
2068 deps = [ 2069 deps = [
2069 ":base_java", 2070 ":base_java",
2070 ":base_java_test_support", 2071 ":base_java_test_support",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 "android/library_loader/library_loader_hooks.h", 2120 "android/library_loader/library_loader_hooks.h",
2120 "memory/memory_pressure_listener.h", 2121 "memory/memory_pressure_listener.h",
2121 ] 2122 ]
2122 } 2123 }
2123 2124
2124 # GYP: //base/base.gyp:base_multidex_gen 2125 # GYP: //base/base.gyp:base_multidex_gen
2125 java_cpp_template("base_multidex_gen") { 2126 java_cpp_template("base_multidex_gen") {
2126 sources = [ 2127 sources = [
2127 "android/java/templates/ChromiumMultiDex.template", 2128 "android/java/templates/ChromiumMultiDex.template",
2128 ] 2129 ]
2129 if (is_debug) {
2130 defines = [ "MULTIDEX_CONFIGURATION_Debug" ]
2131 }
2132 package_name = "org/chromium/base/multidex" 2130 package_name = "org/chromium/base/multidex"
2133 } 2131 }
2134 2132
2135 # GYP: //base/base.gyp:base_native_libraries_gen 2133 # GYP: //base/base.gyp:base_native_libraries_gen
2136 java_cpp_template("base_native_libraries_gen") { 2134 java_cpp_template("base_native_libraries_gen") {
2137 sources = [ 2135 sources = [
2138 "android/java/templates/NativeLibraries.template", 2136 "android/java/templates/NativeLibraries.template",
2139 ] 2137 ]
2140 package_name = "org/chromium/base/library_loader" 2138 package_name = "org/chromium/base/library_loader"
2141 } 2139 }
2142 2140
2143 # GYP: //base.gyp:base_java_unittest_support 2141 # GYP: //base.gyp:base_java_unittest_support
2144 android_library("base_java_unittest_support") { 2142 android_library("base_java_unittest_support") {
2145 deps = [ 2143 deps = [
2146 ":base_java", 2144 ":base_java",
2147 ] 2145 ]
2148 java_files = 2146 java_files =
2149 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] 2147 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ]
2150 } 2148 }
2151 } 2149 }
OLDNEW
« no previous file with comments | « no previous file | base/android/java/src/org/chromium/base/BaseChromiumApplication.java » ('j') | base/base.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698