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

Unified Diff: build/config/mac/compile_xib.py

Issue 2564023002: Handle storyboards in GN. (Closed)
Patch Set: nib is the output_extension Created 4 years 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/config/mac/compile_ib_files.py ('k') | build/config/mac/rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/compile_xib.py
diff --git a/build/config/mac/compile_xib.py b/build/config/mac/compile_xib.py
deleted file mode 100644
index 4923d82984cefadb4d2c4e1c579b73a8175c416f..0000000000000000000000000000000000000000
--- a/build/config/mac/compile_xib.py
+++ /dev/null
@@ -1,57 +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 logging
-import os
-import re
-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('--developer_dir', required=False,
- help='Path to Xcode.')
- args, unknown_args = parser.parse_known_args()
-
- if args.developer_dir:
- os.environ['DEVELOPER_DIR'] = args.developer_dir
-
- ibtool_args = [
- 'xcrun', 'ibtool',
- '--errors', '--warnings', '--notices',
- '--output-format', 'human-readable-text'
- ]
- ibtool_args += unknown_args
- ibtool_args += [
- '--compile',
- os.path.abspath(args.output),
- os.path.abspath(args.input)
- ]
-
- ibtool_section_re = re.compile(r'/\*.*\*/')
- ibtool_re = re.compile(r'.*note:.*is clipping its content')
- ibtoolout = subprocess.Popen(ibtool_args, stdout=subprocess.PIPE)
- current_section_header = None
- for line in ibtoolout.stdout:
- if ibtool_section_re.match(line):
- current_section_header = line
- elif not ibtool_re.match(line):
- if current_section_header:
- sys.stdout.write(current_section_header)
- current_section_header = None
- sys.stdout.write(line)
- return ibtoolout.returncode
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « build/config/mac/compile_ib_files.py ('k') | build/config/mac/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698