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

Unified Diff: build/toolchain/mac/compile_xcassets.py

Issue 2076853003: [iOS/Mac/GN] Update timestamp when copying a tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « build/toolchain/mac/BUILD.gn ('k') | build/toolchain/mac/copy_bundle_data.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/mac/compile_xcassets.py
diff --git a/build/toolchain/mac/compile_xcassets.py b/build/toolchain/mac/compile_xcassets.py
index b78854416bab5852420995b49ff181cef29f3544..ca51340fbc27b46ef67066b2d2b80f899437c093 100644
--- a/build/toolchain/mac/compile_xcassets.py
+++ b/build/toolchain/mac/compile_xcassets.py
@@ -11,6 +11,11 @@ def Main():
parser = argparse.ArgumentParser(
description='compile assets catalog for a bundle')
parser.add_argument(
+ '--version-for-gn', choices=('1',),
+ help='version need to be increased in this script and in the file '
+ '//build/toolchain/mac/BUILD.gn to force build until issue '
+ 'http://crbug.com/619083 is fixed')
+ parser.add_argument(
'--platform', '-p', required=True,
choices=('macosx', 'iphoneos', 'iphonesimulator'),
help='target platform for the compiled assets catalog')
@@ -30,6 +35,9 @@ def Main():
'output should be path to compiled asset catalog, not '
'to the containing bundle: %s\n' % (args.output,))
+ if os.path.exists(args.output):
+ os.unlink(args.output)
+
command = [
'xcrun', 'actool', '--output-format', 'human-readable-text',
'--compress-pngs', '--notices', '--warnings', '--errors',
« no previous file with comments | « build/toolchain/mac/BUILD.gn ('k') | build/toolchain/mac/copy_bundle_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698