OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 3 # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license | 5 # Use of this source code is governed by a BSD-style license |
6 # that can be found in the LICENSE file in the root of the source | 6 # that can be found in the LICENSE file in the root of the source |
7 # tree. An additional intellectual property rights grant can be found | 7 # tree. An additional intellectual property rights grant can be found |
8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
10 | 10 |
11 """WebRTC iOS FAT libraries build script. | 11 """WebRTC iOS FAT libraries build script. |
12 Each architecture is compiled separately before being merged together. | 12 Each architecture is compiled separately before being merged together. |
13 By default, the library is created in out_ios_libs/. (Change with -o.) | 13 By default, the library is created in out_ios_libs/. (Change with -o.) |
14 The headers will be copied to out_ios_libs/include. | |
15 """ | 14 """ |
16 | 15 |
17 import argparse | 16 import argparse |
18 import distutils.dir_util | 17 import distutils.dir_util |
19 import logging | 18 import logging |
20 import os | 19 import os |
21 import shutil | 20 import shutil |
22 import subprocess | 21 import subprocess |
23 import sys | 22 import sys |
24 | 23 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 'Set :CFBundleVersion ' + version_number, infoplist_path] | 215 'Set :CFBundleVersion ' + version_number, infoplist_path] |
217 _RunCommand(cmd) | 216 _RunCommand(cmd) |
218 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) | 217 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) |
219 | 218 |
220 logging.info('Done.') | 219 logging.info('Done.') |
221 return 0 | 220 return 0 |
222 | 221 |
223 | 222 |
224 if __name__ == '__main__': | 223 if __name__ == '__main__': |
225 sys.exit(main()) | 224 sys.exit(main()) |
OLD | NEW |