| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """ | 6 """ |
| 7 package_ios.py - Build and Package Release and Rebug fat libraries for iOS. | 7 package_ios.py - Build and Package Release and Rebug fat libraries for iOS. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import argparse | 10 import argparse |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 parser.add_argument('-r', '--release', action='store_true', | 61 parser.add_argument('-r', '--release', action='store_true', |
| 62 help='use release configuration') | 62 help='use release configuration') |
| 63 | 63 |
| 64 options, extra_options_list = parser.parse_known_args() | 64 options, extra_options_list = parser.parse_known_args() |
| 65 print options | 65 print options |
| 66 print extra_options_list | 66 print extra_options_list |
| 67 | 67 |
| 68 gyp_defines = 'GYP_DEFINES="OS=ios enable_websockets=0 '+ \ | 68 gyp_defines = 'GYP_DEFINES="OS=ios enable_websockets=0 '+ \ |
| 69 'disable_file_support=1 disable_ftp_support=1 '+ \ | 69 'disable_file_support=1 disable_ftp_support=1 '+ \ |
| 70 'enable_errorprone=1 use_platform_icu_alternatives=1 ' + \ | 70 'enable_errorprone=1 use_platform_icu_alternatives=1 ' + \ |
| 71 'disable_brotli_filter=1 use_openssl=1 ' + \ | 71 'disable_brotli_filter=1 target_subarch=both"' |
| 72 'target_subarch=both"' | |
| 73 if not options.skip_gyp: | 72 if not options.skip_gyp: |
| 74 run (gyp_defines + ' gclient runhooks') | 73 run (gyp_defines + ' gclient runhooks') |
| 75 | 74 |
| 76 return package_ios(options.out_dir[0], "out/Release", "opt") or \ | 75 return package_ios(options.out_dir[0], "out/Release", "opt") or \ |
| 77 package_ios(options.out_dir[0], "out/Debug", "dbg") | 76 package_ios(options.out_dir[0], "out/Debug", "dbg") |
| 78 | 77 |
| 79 | 78 |
| 80 if __name__ == '__main__': | 79 if __name__ == '__main__': |
| 81 sys.exit(main()) | 80 sys.exit(main()) |
| OLD | NEW |