| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 |
| 3 # Copyright 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 4 # |
| 3 # libjingle | 5 # Use of this source code is governed by a BSD-style license |
| 4 # Copyright 2015 Google Inc. | 6 # that can be found in the LICENSE file in the root of the source |
| 5 # | 7 # tree. An additional intellectual property rights grant can be found |
| 6 # Redistribution and use in source and binary forms, with or without | 8 # in the file PATENTS. All contributing project authors may |
| 7 # modification, are permitted provided that the following conditions are met: | 9 # be found in the AUTHORS file in the root of the source tree. |
| 8 # | |
| 9 # 1. Redistributions of source code must retain the above copyright notice, | |
| 10 # this list of conditions and the following disclaimer. | |
| 11 # 2. Redistributions in binary form must reproduce the above copyright notice, | |
| 12 # this list of conditions and the following disclaimer in the documentation | |
| 13 # and/or other materials provided with the distribution. | |
| 14 # 3. The name of the author may not be used to endorse or promote products | |
| 15 # derived from this software without specific prior written permission. | |
| 16 # | |
| 17 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED | |
| 18 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
| 19 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | |
| 20 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
| 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | |
| 22 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | |
| 23 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | |
| 24 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | |
| 25 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | |
| 26 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
| 27 | 10 |
| 28 """Script for merging generated iOS libraries.""" | 11 """Script for merging generated iOS libraries.""" |
| 29 | 12 |
| 30 import optparse | 13 import optparse |
| 31 import os | 14 import os |
| 32 import re | 15 import re |
| 33 import subprocess | 16 import subprocess |
| 34 import sys | 17 import sys |
| 35 | 18 |
| 36 | 19 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 def Main(): | 112 def Main(): |
| 130 parser = optparse.OptionParser() | 113 parser = optparse.OptionParser() |
| 131 _, args = parser.parse_args() | 114 _, args = parser.parse_args() |
| 132 if len(args) != 1: | 115 if len(args) != 1: |
| 133 parser.error('Error: Exactly 1 argument required.') | 116 parser.error('Error: Exactly 1 argument required.') |
| 134 lib_base_dir = args[0] | 117 lib_base_dir = args[0] |
| 135 MergeLibs(lib_base_dir) | 118 MergeLibs(lib_base_dir) |
| 136 | 119 |
| 137 if __name__ == '__main__': | 120 if __name__ == '__main__': |
| 138 sys.exit(Main()) | 121 sys.exit(Main()) |
| OLD | NEW |