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

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

Issue 1162943008: Make aapt and aidl paths flexible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN builds Created 5 years, 6 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 | « build/common.gypi ('k') | build/java.gypi » ('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 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 6
7 assert(is_android) 7 assert(is_android)
8 8
9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir) 9 rebased_android_sdk = rebase_path(android_sdk, root_build_dir)
10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir) 10 rebased_android_sdk_root = rebase_path(android_sdk_root, root_build_dir)
11 rebased_android_sdk_build_tools = 11 rebased_android_sdk_build_tools =
12 rebase_path(android_sdk_build_tools, root_build_dir) 12 rebase_path(android_sdk_build_tools, root_build_dir)
13 13
14 android_sdk_jar = "$android_sdk/android.jar" 14 android_sdk_jar = "$android_sdk/android.jar"
15 rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir) 15 rebased_android_sdk_jar = rebase_path(android_sdk_jar, root_build_dir)
16 android_aapt_path = "$rebased_android_sdk_build_tools/aapt"
16 17
17 template("android_lint") { 18 template("android_lint") {
18 set_sources_assignment_filter([]) 19 set_sources_assignment_filter([])
19 if (defined(invoker.testonly)) { 20 if (defined(invoker.testonly)) {
20 testonly = invoker.testonly 21 testonly = invoker.testonly
21 } 22 }
22 23
23 jar_path = invoker.jar_path 24 jar_path = invoker.jar_path
24 android_manifest = invoker.android_manifest 25 android_manifest = invoker.android_manifest
25 java_files = invoker.java_files 26 java_files = invoker.java_files
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 outputs = [ 629 outputs = [
629 depfile, 630 depfile,
630 _resource_packaged_apk_path, 631 _resource_packaged_apk_path,
631 ] 632 ]
632 633
633 args = [ 634 args = [
634 "--depfile", 635 "--depfile",
635 rebase_path(depfile, root_build_dir), 636 rebase_path(depfile, root_build_dir),
636 "--android-sdk", 637 "--android-sdk",
637 rebased_android_sdk, 638 rebased_android_sdk,
638 "--android-sdk-tools", 639 "--aapt-path",
639 rebased_android_sdk_build_tools, 640 android_aapt_path,
640 "--configuration-name=$_configuration_name", 641 "--configuration-name=$_configuration_name",
641 "--android-manifest", 642 "--android-manifest",
642 rebase_path(_android_manifest, root_build_dir), 643 rebase_path(_android_manifest, root_build_dir),
643 "--version-code", 644 "--version-code",
644 _version_code, 645 _version_code,
645 "--version-name", 646 "--version-name",
646 _version_name, 647 _version_name,
647 "--apk-path", 648 "--apk-path",
648 rebase_path(_resource_packaged_apk_path, root_build_dir), 649 rebase_path(_resource_packaged_apk_path, root_build_dir),
649 ] 650 ]
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 android_manifest, 1258 android_manifest,
1258 ] 1259 ]
1259 1260
1260 rebase_resource_dirs = rebase_path(resource_dirs, root_build_dir) 1261 rebase_resource_dirs = rebase_path(resource_dirs, root_build_dir)
1261 rebase_build_config = rebase_path(build_config, root_build_dir) 1262 rebase_build_config = rebase_path(build_config, root_build_dir)
1262 args = [ 1263 args = [
1263 "--depfile", 1264 "--depfile",
1264 rebase_path(depfile, root_build_dir), 1265 rebase_path(depfile, root_build_dir),
1265 "--android-sdk", 1266 "--android-sdk",
1266 rebase_path(android_sdk, root_build_dir), 1267 rebase_path(android_sdk, root_build_dir),
1267 "--android-sdk-tools", 1268 "--aapt-path",
1268 rebase_path(android_sdk_build_tools, root_build_dir), 1269 android_aapt_path,
1269 "--android-manifest", 1270 "--android-manifest",
1270 rebase_path(android_manifest, root_build_dir), 1271 rebase_path(android_manifest, root_build_dir),
1271 "--resource-dirs=$rebase_resource_dirs", 1272 "--resource-dirs=$rebase_resource_dirs",
1272 "--srcjar-out", 1273 "--srcjar-out",
1273 rebase_path(srcjar_path, root_build_dir), 1274 rebase_path(srcjar_path, root_build_dir),
1274 "--resource-zip-out", 1275 "--resource-zip-out",
1275 rebase_path(zip_path, root_build_dir), 1276 rebase_path(zip_path, root_build_dir),
1276 "--r-text-out", 1277 "--r-text-out",
1277 rebase_path(r_text_path, root_build_dir), 1278 rebase_path(r_text_path, root_build_dir),
1278 "--dependencies-res-zips=@FileArg($rebase_build_config:resources:dependenc y_zips)", 1279 "--dependencies-res-zips=@FileArg($rebase_build_config:resources:dependenc y_zips)",
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 ] 1502 ]
1502 args = [ 1503 args = [
1503 "--depfile", 1504 "--depfile",
1504 rebase_path(depfile, root_build_dir), 1505 rebase_path(depfile, root_build_dir),
1505 "--script-output-path", 1506 "--script-output-path",
1506 rebase_path(generated_script, root_build_dir), 1507 rebase_path(generated_script, root_build_dir),
1507 ] 1508 ]
1508 args += test_runner_args 1509 args += test_runner_args
1509 } 1510 }
1510 } 1511 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/java.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698