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 bf887e37bba2c262cd6eb30f7699424d3ba92bbc..5fc8955b226801258a5e4f8ac64beb7f133bf66c 100755 |
--- a/build/android/gyp/write_build_config.py |
+++ b/build/android/gyp/write_build_config.py |
@@ -139,6 +139,9 @@ def main(argv): |
direct_resources_deps = DepsOfType('android_resources', direct_deps_configs) |
all_resources_deps = DepsOfType('android_resources', all_deps_configs) |
+ # Resources should be ordered with the highest-level dependency first so that |
+ # overrides are done correctly. |
+ all_resources_deps.reverse() |
# Initialize some common config. |
config = { |