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

Side by Side Diff: build/config/android/rules.gni

Issue 1647353002: Use gn_helpers to [se]serialize GN lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@python_impl
Patch Set: more Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/android/internal_rules.gni") 6 import("//build/config/android/internal_rules.gni")
7 import("//build/config/dcheck_always_on.gni") 7 import("//build/config/dcheck_always_on.gni")
8 import("//build/toolchain/toolchain.gni") 8 import("//build/toolchain/toolchain.gni")
9 9
10 assert(is_android) 10 assert(is_android)
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 # "org/chromium/foo/FooInterface.java", 1188 # "org/chromium/foo/FooInterface.java",
1189 # "org/chromium/foo/FooService.java", 1189 # "org/chromium/foo/FooService.java",
1190 # ] 1190 # ]
1191 # deps = [ 1191 # deps = [
1192 # ":bar_java" 1192 # ":bar_java"
1193 # ] 1193 # ]
1194 # srcjar_deps = [ 1194 # srcjar_deps = [
1195 # ":foo_generated_enum" 1195 # ":foo_generated_enum"
1196 # ] 1196 # ]
1197 # jar_excluded_patterns = [ 1197 # jar_excluded_patterns = [
1198 # "*/FooService.class", "*/FooService##*.class" 1198 # "*/FooService.class", "*/FooService\$*.class"
1199 # ] 1199 # ]
1200 # } 1200 # }
1201 template("java_library") { 1201 template("java_library") {
1202 set_sources_assignment_filter([]) 1202 set_sources_assignment_filter([])
1203 java_library_impl(target_name) { 1203 java_library_impl(target_name) {
1204 forward_variables_from(invoker, "*") 1204 forward_variables_from(invoker, "*")
1205 } 1205 }
1206 } 1206 }
1207 1207
1208 # Declare a java library target for a prebuilt jar 1208 # Declare a java library target for a prebuilt jar
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 # "android/org/chromium/foo/FooInterface.java", 1285 # "android/org/chromium/foo/FooInterface.java",
1286 # "android/org/chromium/foo/FooService.java", 1286 # "android/org/chromium/foo/FooService.java",
1287 # ] 1287 # ]
1288 # deps = [ 1288 # deps = [
1289 # ":bar_java" 1289 # ":bar_java"
1290 # ] 1290 # ]
1291 # srcjar_deps = [ 1291 # srcjar_deps = [
1292 # ":foo_generated_enum" 1292 # ":foo_generated_enum"
1293 # ] 1293 # ]
1294 # jar_excluded_patterns = [ 1294 # jar_excluded_patterns = [
1295 # "*/FooService.class", "*/FooService##*.class" 1295 # "*/FooService.class", "*/FooService\$*.class"
1296 # ] 1296 # ]
1297 # } 1297 # }
1298 template("android_library") { 1298 template("android_library") {
1299 set_sources_assignment_filter([]) 1299 set_sources_assignment_filter([])
1300 assert(!defined(invoker.jar_path), 1300 assert(!defined(invoker.jar_path),
1301 "android_library does not support a custom jar path") 1301 "android_library does not support a custom jar path")
1302 1302
1303 if (defined(invoker.alternative_android_sdk_ijar)) { 1303 if (defined(invoker.alternative_android_sdk_ijar)) {
1304 assert(defined(invoker.alternative_android_sdk_ijar_dep)) 1304 assert(defined(invoker.alternative_android_sdk_ijar_dep))
1305 } 1305 }
1306 1306
1307 java_library_impl(target_name) { 1307 java_library_impl(target_name) {
1308 forward_variables_from(invoker, "*") 1308 forward_variables_from(invoker, "*")
1309 1309
1310 supports_android = true 1310 supports_android = true
1311 requires_android = true 1311 requires_android = true
1312 1312
1313 if (!defined(jar_excluded_patterns)) { 1313 if (!defined(jar_excluded_patterns)) {
1314 jar_excluded_patterns = [] 1314 jar_excluded_patterns = []
1315 } 1315 }
1316 jar_excluded_patterns += [ 1316 jar_excluded_patterns += [
1317 "*/R.class", 1317 "*/R.class",
1318 "*/R##*.class", 1318 "*/R\$*.class",
1319 "*/Manifest.class", 1319 "*/Manifest.class",
1320 "*/Manifest##*.class", 1320 "*/Manifest\$*.class",
1321 ] 1321 ]
1322 } 1322 }
1323 } 1323 }
1324 1324
1325 # Declare a target that packages a set of Java dependencies into a standalone 1325 # Declare a target that packages a set of Java dependencies into a standalone
1326 # .dex.jar. 1326 # .dex.jar.
1327 # 1327 #
1328 # Variables 1328 # Variables
1329 # deps: specifies the dependencies of this target. Android libraries in deps 1329 # deps: specifies the dependencies of this target. Android libraries in deps
1330 # will be packaged into the resulting .dex.jar file. 1330 # will be packaged into the resulting .dex.jar file.
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2705 supports_android = true 2705 supports_android = true
2706 jar_path = "${_output_path}/$jar" 2706 jar_path = "${_output_path}/$jar"
2707 } 2707 }
2708 } 2708 }
2709 2709
2710 java_group(target_name) { 2710 java_group(target_name) {
2711 deps = _resource_targets + _jar_targets 2711 deps = _resource_targets + _jar_targets
2712 } 2712 }
2713 } 2713 }
2714 } 2714 }
OLDNEW
« no previous file with comments | « build/android/incremental_install/create_install_script.py ('k') | components/cronet/tools/extract_from_jars.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698