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

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

Issue 1118403004: Adds GN rule & script for generating AndroidManifest.xml for APK splits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweaked generate_split_manifest GN template so that action is at top Created 5 years, 7 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/android/gyp/generate_split_manifest.py ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('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)
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 ] 1170 ]
1171 output = invoker.dex_path 1171 output = invoker.dex_path
1172 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files" 1172 dex_arg_key = "${rebased_build_config}:final_dex:dependency_dex_files"
1173 args = [ "--inputs=@FileArg($dex_arg_key)" ] 1173 args = [ "--inputs=@FileArg($dex_arg_key)" ]
1174 if (defined(invoker.excluded_jars)) { 1174 if (defined(invoker.excluded_jars)) {
1175 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir) 1175 excluded_jars = rebase_path(invoker.excluded_jars, root_build_dir)
1176 args += [ "--excluded-paths=${excluded_jars}" ] 1176 args += [ "--excluded-paths=${excluded_jars}" ]
1177 } 1177 }
1178 } 1178 }
1179 } 1179 }
1180
1181 # Creates an AndroidManifest.xml for an APK split.
1182 template("generate_split_manifest") {
1183 assert(defined(invoker.main_manifest))
1184 assert(defined(invoker.out_manifest))
1185 assert(defined(invoker.split_name))
1186
1187 action(target_name) {
1188 depfile = "$target_gen_dir/$target_name.d"
1189 args = [
1190 "--main-manifest",
1191 rebase_path(invoker.main_manifest, root_build_dir),
1192 "--out-manifest",
1193 rebase_path(invoker.out_manifest, root_build_dir),
1194 "--split",
1195 invoker.split_name,
1196 ]
1197 if (defined(invoker.version_code)) {
1198 args += [
1199 "--version-code",
1200 invoker.version_code,
1201 ]
1202 }
1203 if (defined(invoker.version_name)) {
1204 args += [
1205 "--version-name",
1206 invoker.version_name,
1207 ]
1208 }
1209 if (defined(invoker.has_code)) {
1210 args += [
1211 "--has-code",
1212 invoker.has_code,
1213 ]
1214 }
1215 args += [
1216 "--depfile",
1217 rebase_path(depfile, root_build_dir),
1218 ]
1219
1220 script = "//build/android/gyp/generate_split_manifest.py"
1221 outputs = [
1222 depfile,
1223 invoker.out_manifest,
1224 ]
1225 inputs = [
1226 invoker.main_manifest,
1227 ]
1228 }
1229 }
OLDNEW
« no previous file with comments | « build/android/gyp/generate_split_manifest.py ('k') | tools/telemetry/telemetry/TELEMETRY_DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698