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 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 # Ignoring x86 except for static libraries for now because of a GN build issue | 156 # Ignoring x86 except for static libraries for now because of a GN build issue |
157 # where the generated dynamic framework has the wrong architectures. | 157 # where the generated dynamic framework has the wrong architectures. |
158 if 'x86' in architectures and args.build_type != 'static_only': | 158 if 'x86' in architectures and args.build_type != 'static_only': |
159 architectures.remove('x86') | 159 architectures.remove('x86') |
160 | 160 |
161 # Generate static or dynamic. | 161 # Generate static or dynamic. |
162 if args.build_type == 'static_only': | 162 if args.build_type == 'static_only': |
163 gn_target_name = 'rtc_sdk_objc' | 163 gn_target_name = 'rtc_sdk_objc' |
164 elif args.build_type == 'framework': | 164 elif args.build_type == 'framework': |
165 gn_target_name = 'objc_framework' | 165 gn_target_name = 'framework_objc' |
166 if not args.bitcode: | 166 if not args.bitcode: |
167 gn_args.append('enable_dsyms=true') | 167 gn_args.append('enable_dsyms=true') |
168 gn_args.append('enable_stripping=true') | 168 gn_args.append('enable_stripping=true') |
169 else: | 169 else: |
170 raise ValueError('Build type "%s" is not supported.' % args.build_type) | 170 raise ValueError('Build type "%s" is not supported.' % args.build_type) |
171 | 171 |
172 | 172 |
173 # Build all architectures. | 173 # Build all architectures. |
174 for arch in architectures: | 174 for arch in architectures: |
175 BuildWebRTC(args.output_dir, arch, args.build_config, gn_target_name, | 175 BuildWebRTC(args.output_dir, arch, args.build_config, gn_target_name, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 'Set :CFBundleVersion ' + version_number, infoplist_path] | 246 'Set :CFBundleVersion ' + version_number, infoplist_path] |
247 _RunCommand(cmd) | 247 _RunCommand(cmd) |
248 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) | 248 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) |
249 | 249 |
250 logging.info('Done.') | 250 logging.info('Done.') |
251 return 0 | 251 return 0 |
252 | 252 |
253 | 253 |
254 if __name__ == '__main__': | 254 if __name__ == '__main__': |
255 sys.exit(main()) | 255 sys.exit(main()) |
OLD | NEW |