| Index: build/android/gyp/write_build_config.py
|
| diff --git a/build/android/gyp/write_build_config.py b/build/android/gyp/write_build_config.py
|
| index 6c29b8957c6fc89a79138c48acae32e04e9e0e96..1a30d6e74f2481eb8da5bf3c94a13efc32d64d73 100755
|
| --- a/build/android/gyp/write_build_config.py
|
| +++ b/build/android/gyp/write_build_config.py
|
| @@ -375,12 +375,6 @@ def main(argv):
|
| # overrides are done correctly.
|
| all_resources_deps.reverse()
|
|
|
| - if options.type == 'android_apk' and options.tested_apk_config:
|
| - tested_apk_deps = Deps([options.tested_apk_config])
|
| - tested_apk_resources_deps = tested_apk_deps.All('android_resources')
|
| - all_resources_deps = [
|
| - d for d in all_resources_deps if not d in tested_apk_resources_deps]
|
| -
|
| # Initialize some common config.
|
| # Any value that needs to be queryable by dependents must go within deps_info.
|
| config = {
|
| @@ -396,6 +390,14 @@ def main(argv):
|
| deps_info = config['deps_info']
|
| gradle = config['gradle']
|
|
|
| + if options.type == 'android_apk' and options.tested_apk_config:
|
| + tested_apk_deps = Deps([options.tested_apk_config])
|
| + tested_apk_name = tested_apk_deps.Direct()[0]['name']
|
| + tested_apk_resources_deps = tested_apk_deps.All('android_resources')
|
| + gradle['apk_under_test'] = tested_apk_name
|
| + all_resources_deps = [
|
| + d for d in all_resources_deps if not d in tested_apk_resources_deps]
|
| +
|
| # Required for generating gradle files.
|
| if options.type == 'java_library':
|
| deps_info['is_prebuilt'] = is_java_prebuilt
|
|
|