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

Side by Side Diff: tools_webrtc/ios/build_ios_libs.py

Issue 2913753003: Reland of Split iOS sdk in to separate targets (Closed)
Patch Set: Created 3 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/BUILD.gn » ('j') | webrtc/test/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 ('true' if libvpx_build_vp9 else 'false')) 113 ('true' if libvpx_build_vp9 else 'false'))
114 114
115 gn_args.append('enable_ios_bitcode=' + 115 gn_args.append('enable_ios_bitcode=' +
116 ('true' if use_bitcode else 'false')) 116 ('true' if use_bitcode else 'false'))
117 gn_args.append('use_goma=' + ('true' if use_goma else 'false')) 117 gn_args.append('use_goma=' + ('true' if use_goma else 'false'))
118 118
119 # Generate static or dynamic. 119 # Generate static or dynamic.
120 if build_type == 'static_only': 120 if build_type == 'static_only':
121 gn_target_name = 'rtc_sdk_objc' 121 gn_target_name = 'rtc_sdk_objc'
122 elif build_type == 'framework': 122 elif build_type == 'framework':
123 gn_target_name = 'rtc_sdk_framework_objc' 123 gn_target_name = 'objc_framework'
124 if not use_bitcode: 124 if not use_bitcode:
125 gn_args.append('enable_dsyms=true') 125 gn_args.append('enable_dsyms=true')
126 gn_args.append('enable_stripping=true') 126 gn_args.append('enable_stripping=true')
127 else: 127 else:
128 raise ValueError('Build type "%s" is not supported.' % build_type) 128 raise ValueError('Build type "%s" is not supported.' % build_type)
129 129
130 args_string = ' '.join(gn_args + extra_gn_args) 130 args_string = ' '.join(gn_args + extra_gn_args)
131 logging.info('Building WebRTC with args: %s', args_string) 131 logging.info('Building WebRTC with args: %s', args_string)
132 132
133 cmd = ['gn', 'gen', output_dir, '--args=' + args_string] 133 cmd = ['gn', 'gen', output_dir, '--args=' + args_string]
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 'Set :CFBundleVersion ' + version_number, infoplist_path] 244 'Set :CFBundleVersion ' + version_number, infoplist_path]
245 _RunCommand(cmd) 245 _RunCommand(cmd)
246 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) 246 _RunCommand(['plutil', '-convert', 'binary1', infoplist_path])
247 247
248 logging.info('Done.') 248 logging.info('Done.')
249 return 0 249 return 0
250 250
251 251
252 if __name__ == '__main__': 252 if __name__ == '__main__':
253 sys.exit(main()) 253 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | webrtc/BUILD.gn » ('j') | webrtc/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698