Fix missing ninja dependency between .apk and component shared libs

BUG=623054

Review-Url: https://codereview.chromium.org/2091303002
Cr-Original-Commit-Position: refs/heads/master@{#401870}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f762d1c3e6b31608f4c5017dbceacd0e54115e0b
This commit is contained in:
agrieve 2016-06-24 09:16:38 -07:00 коммит произвёл Commit bot
Родитель b43dfcc6f4
Коммит e4a2c17e02
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -182,11 +182,15 @@ def main(args):
native_libs = sorted(options.native_libs)
input_paths = [options.resource_apk, __file__] + native_libs
# Include native libs in the depfile_deps since GN doesn't know about the
# dependencies when is_component_build=true.
depfile_deps = list(native_libs)
secondary_native_libs = []
if options.secondary_native_libs:
secondary_native_libs = sorted(options.secondary_native_libs)
input_paths += secondary_native_libs
depfile_deps += secondary_native_libs
if options.dex_file:
input_paths.append(options.dex_file)
@ -299,7 +303,8 @@ def main(args):
options,
input_paths=input_paths,
input_strings=input_strings,
output_paths=[options.output_apk])
output_paths=[options.output_apk],
depfile_deps=depfile_deps)
if __name__ == '__main__':