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

Unified Diff: build/config/ios/ios_compile_xib.py

Issue 1897853003: [Mac/iOS/GN] Re-purpose the ios_compile_xib.py file to also handle Mac XIBs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/config/ios/rules.gni » ('j') | build/config/mac/rules.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/ios/ios_compile_xib.py
diff --git a/build/config/ios/ios_compile_xib.py b/build/config/ios/ios_compile_xib.py
deleted file mode 100644
index ebca3abdcae6b420e4a26434614539e87cfb1a36..0000000000000000000000000000000000000000
--- a/build/config/ios/ios_compile_xib.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-import argparse
-import os
-import subprocess
-import sys
-
-
-def main():
- parser = argparse.ArgumentParser(
- description='A script to compile xib and storyboard.',
- fromfile_prefix_chars='@')
- parser.add_argument('-o', '--output', required=True,
- help='Path to output bundle.')
- parser.add_argument('-i', '--input', required=True,
- help='Path to input xib or storyboard.')
- parser.add_argument('-m', '--minimum-deployment-target', required=True,
- help='Minimum deployment target.')
- args = parser.parse_args()
-
- subprocess.check_call([
- 'xcrun', 'ibtool', '--errors', '--warnings', '--notices',
- '--auto-activate-custom-fonts', '--target-device', 'iphone',
- '--target-device', 'ipad', '--output-format', 'human-readable-text',
- '--minimum-deployment-target', args.minimum_deployment_target,
- '--compile', os.path.abspath(args.output), os.path.abspath(args.input),
- ])
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « no previous file | build/config/ios/rules.gni » ('j') | build/config/mac/rules.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698