Index: build/android/gyp/util/build_utils.py |
diff --git a/build/android/gyp/util/build_utils.py b/build/android/gyp/util/build_utils.py |
index fa8592bd03e92d3043c03334eedb892da95dccc1..fb6f4f12c0082a8a73a150edc7b3fa0984ac370a 100644 |
--- a/build/android/gyp/util/build_utils.py |
+++ b/build/android/gyp/util/build_utils.py |
@@ -85,7 +85,7 @@ def WriteJson(obj, path, only_if_changed=False): |
with open(path, 'r') as oldfile: |
old_dump = oldfile.read() |
- new_dump = json.dumps(obj) |
+ new_dump = json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': ')) |
if not only_if_changed or old_dump != new_dump: |
with open(path, 'w') as outfile: |