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

Unified Diff: build/android/gyp/generate_v14_compatible_resources.py

Issue 362543004: Fix generation of v14 resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | build/java_apk.gypi » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/generate_v14_compatible_resources.py
diff --git a/build/android/gyp/generate_v14_compatible_resources.py b/build/android/gyp/generate_v14_compatible_resources.py
index 03874f046c3d9d929ac7584613922ef341571246..1961622b7afb26ffb84af9c1999233d1e77f487a 100755
--- a/build/android/gyp/generate_v14_compatible_resources.py
+++ b/build/android/gyp/generate_v14_compatible_resources.py
@@ -281,9 +281,6 @@ def ParseArgs():
return options
def GenerateV14Resources(res_dir, res_v14_dir, verify_only):
- build_utils.DeleteDirectory(res_v14_dir)
- build_utils.MakeDirectory(res_v14_dir)
-
for name in os.listdir(res_dir):
if not os.path.isdir(os.path.join(res_dir, name)):
continue
@@ -337,8 +334,12 @@ def GenerateV14Resources(res_dir, res_v14_dir, verify_only):
def main():
options = ParseArgs()
- GenerateV14Resources(
- options.res_dir, options.res_v14_compatibility_dir, options.verify_only)
+ res_v14_dir = options.res_v14_compatibility_dir
+
+ build_utils.DeleteDirectory(res_v14_dir)
+ build_utils.MakeDirectory(res_v14_dir)
+
+ GenerateV14Resources(options.res_dir, res_v14_dir, options.verify_only)
if options.stamp:
build_utils.Touch(options.stamp)
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | build/java_apk.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698