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

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

Issue 1358243006: Port custom_tabs_client from GYP to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/zip.gni") 6 import("//build/config/zip.gni")
7 import("//third_party/ijar/ijar.gni") 7 import("//third_party/ijar/ijar.gni")
8 8
9 assert(is_android) 9 assert(is_android)
10 10
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 _final_datadeps = [] 1178 _final_datadeps = []
1179 if (defined(invoker.datadeps)) { 1179 if (defined(invoker.datadeps)) {
1180 _final_datadeps = invoker.datadeps 1180 _final_datadeps = invoker.datadeps
1181 } 1181 }
1182 1182
1183 _supports_android = 1183 _supports_android =
1184 defined(invoker.supports_android) && invoker.supports_android 1184 defined(invoker.supports_android) && invoker.supports_android
1185 _requires_android = 1185 _requires_android =
1186 defined(invoker.requires_android) && invoker.requires_android 1186 defined(invoker.requires_android) && invoker.requires_android
1187 assert(_requires_android || true) # Mark as used. 1187 assert(_requires_android || true) # Mark as used.
1188 _android_manifest = "//build/android/AndroidManifest.xml"
1189 if (defined(invoker.android_manifest)) {
1190 _android_manifest = invoker.android_manifest
1191 }
1192 assert(_android_manifest != "") # Mark as used.
1188 _run_findbugs = false 1193 _run_findbugs = false
1189 if (defined(invoker.run_findbugs)) { 1194 if (defined(invoker.run_findbugs)) {
1190 _run_findbugs = invoker.run_findbugs 1195 _run_findbugs = invoker.run_findbugs
1191 } 1196 }
1192 assert(_run_findbugs || true) # Mark as used. 1197 assert(_run_findbugs || true) # Mark as used.
1193 1198
1194 if (_supports_android) { 1199 if (_supports_android) {
1195 _dex_path = _base_path + ".dex.jar" 1200 _dex_path = _base_path + ".dex.jar"
1196 if (defined(invoker.dex_path)) { 1201 if (defined(invoker.dex_path)) {
1197 _dex_path = invoker.dex_path 1202 _dex_path = invoker.dex_path
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 ]) 1309 ])
1305 build_config = _build_config 1310 build_config = _build_config
1306 jar_path = _jar_path 1311 jar_path = _jar_path
1307 script_name = _template_name 1312 script_name = _template_name
1308 deps = build_config_deps 1313 deps = build_config_deps
1309 } 1314 }
1310 } 1315 }
1311 1316
1312 if (_supports_android) { 1317 if (_supports_android) {
1313 if (defined(invoker.chromium_code) && invoker.chromium_code) { 1318 if (defined(invoker.chromium_code) && invoker.chromium_code) {
1314 _android_manifest = "//build/android/AndroidManifest.xml"
1315 if (defined(invoker.android_manifest)) {
1316 _android_manifest = invoker.android_manifest
1317 }
1318
1319 _final_datadeps += [ ":${_template_name}__lint" ] 1319 _final_datadeps += [ ":${_template_name}__lint" ]
1320 android_lint("${_template_name}__lint") { 1320 android_lint("${_template_name}__lint") {
1321 android_manifest = _android_manifest 1321 android_manifest = _android_manifest
1322 jar_path = _jar_path 1322 jar_path = _jar_path
1323 java_files = _java_files 1323 java_files = _java_files
1324 deps = [ 1324 deps = [
1325 ":$_compile_java_target", 1325 ":$_compile_java_target",
1326 ] 1326 ]
1327 if (defined(invoker.deps)) { 1327 if (defined(invoker.deps)) {
1328 deps += invoker.deps 1328 deps += invoker.deps
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 ] 1639 ]
1640 args = [ 1640 args = [
1641 "--depfile", 1641 "--depfile",
1642 rebase_path(depfile, root_build_dir), 1642 rebase_path(depfile, root_build_dir),
1643 "--script-output-path", 1643 "--script-output-path",
1644 rebase_path(generated_script, root_build_dir), 1644 rebase_path(generated_script, root_build_dir),
1645 ] 1645 ]
1646 args += test_runner_args 1646 args += test_runner_args
1647 } 1647 }
1648 } 1648 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | build/config/android/rules.gni » ('j') | tools/android/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698