oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | |
| 3 | # Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 4 | # |
| 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 |
| 7 | # tree. An additional intellectual property rights grant can be found |
| 8 | # in the file PATENTS. All contributing project authors may |
| 9 | # be found in the AUTHORS file in the root of the source tree. |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 10 | """WebRTC iOS XCFramework build script. |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 11 | Each architecture is compiled separately before being merged together. |
| 12 | By default, the library is created in out_ios_libs/. (Change with -o.) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 13 | """ |
| 14 | |
| 15 | import argparse |
| 16 | import distutils.dir_util |
| 17 | import logging |
| 18 | import os |
| 19 | import shutil |
| 20 | import subprocess |
| 21 | import sys |
| 22 | |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 23 | os.environ['PATH'] = '/usr/libexec' + os.pathsep + os.environ['PATH'] |
| 24 | |
| 25 | SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) |
Henrik Kjellander | ec57e05 | 2017-10-17 21:36:01 +0200 | [diff] [blame] | 26 | SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..')) |
| 27 | sys.path.append(os.path.join(SRC_DIR, 'build')) |
| 28 | import find_depot_tools |
| 29 | |
| 30 | SDK_OUTPUT_DIR = os.path.join(SRC_DIR, 'out_ios_libs') |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 31 | SDK_FRAMEWORK_NAME = 'WebRTC.framework' |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 32 | SDK_DSYM_NAME = 'WebRTC.dSYM' |
| 33 | SDK_XCFRAMEWORK_NAME = 'WebRTC.xcframework' |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 34 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 35 | ENABLED_ARCHS = [ |
| 36 | 'device:arm64', 'simulator:arm64', 'simulator:x64', |
| 37 | 'arm64', 'x64' |
| 38 | ] |
| 39 | DEFAULT_ARCHS = [ |
| 40 | 'device:arm64', 'simulator:arm64', 'simulator:x64' |
| 41 | ] |
Björn Terelius | 02768ae | 2021-07-02 16:19:32 +0200 | [diff] [blame] | 42 | IOS_DEPLOYMENT_TARGET = '12.0' |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 43 | LIBVPX_BUILD_VP9 = False |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 44 | |
sakal | 67e414c | 2017-09-05 00:16:15 -0700 | [diff] [blame] | 45 | sys.path.append(os.path.join(SCRIPT_DIR, '..', 'libs')) |
| 46 | from generate_licenses import LicenseBuilder |
| 47 | |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 48 | |
| 49 | def _ParseArgs(): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 50 | parser = argparse.ArgumentParser(description=__doc__) |
| 51 | parser.add_argument('--build_config', |
| 52 | default='release', |
| 53 | choices=['debug', 'release'], |
| 54 | help='The build config. Can be "debug" or "release". ' |
| 55 | 'Defaults to "release".') |
| 56 | parser.add_argument( |
| 57 | '--arch', |
| 58 | nargs='+', |
| 59 | default=DEFAULT_ARCHS, |
| 60 | choices=ENABLED_ARCHS, |
| 61 | help='Architectures to build. Defaults to %(default)s.') |
| 62 | parser.add_argument( |
| 63 | '-c', |
| 64 | '--clean', |
| 65 | action='store_true', |
| 66 | default=False, |
| 67 | help='Removes the previously generated build output, if any.') |
| 68 | parser.add_argument( |
| 69 | '-p', |
| 70 | '--purify', |
| 71 | action='store_true', |
| 72 | default=False, |
| 73 | help='Purifies the previously generated build output by ' |
| 74 | 'removing the temporary results used when (re)building.') |
| 75 | parser.add_argument( |
| 76 | '-o', |
| 77 | '--output-dir', |
Yura Yaroshevich | 686ad4f | 2021-02-10 22:32:20 +0300 | [diff] [blame] | 78 | type=os.path.abspath, |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 79 | default=SDK_OUTPUT_DIR, |
| 80 | help='Specifies a directory to output the build artifacts to. ' |
| 81 | 'If specified together with -c, deletes the dir.') |
| 82 | parser.add_argument( |
| 83 | '-r', |
| 84 | '--revision', |
| 85 | type=int, |
| 86 | default=0, |
| 87 | help='Specifies a revision number to embed if building the framework.') |
| 88 | parser.add_argument('-e', |
| 89 | '--bitcode', |
| 90 | action='store_true', |
| 91 | default=False, |
| 92 | help='Compile with bitcode.') |
| 93 | parser.add_argument('--verbose', |
| 94 | action='store_true', |
| 95 | default=False, |
| 96 | help='Debug logging.') |
| 97 | parser.add_argument('--use-goma', |
| 98 | action='store_true', |
| 99 | default=False, |
| 100 | help='Use goma to build.') |
| 101 | parser.add_argument( |
| 102 | '--extra-gn-args', |
| 103 | default=[], |
| 104 | nargs='*', |
| 105 | help='Additional GN args to be used during Ninja generation.') |
mbonadei | 585209b | 2017-02-13 04:59:27 -0800 | [diff] [blame] | 106 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 107 | return parser.parse_args() |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 108 | |
| 109 | |
| 110 | def _RunCommand(cmd): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 111 | logging.debug('Running: %r', cmd) |
| 112 | subprocess.check_call(cmd, cwd=SRC_DIR) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 113 | |
| 114 | |
| 115 | def _CleanArtifacts(output_dir): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 116 | if os.path.isdir(output_dir): |
| 117 | logging.info('Deleting %s', output_dir) |
| 118 | shutil.rmtree(output_dir) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 119 | |
| 120 | |
VladimirTechMan | 7b188e8 | 2017-03-14 03:12:35 -0700 | [diff] [blame] | 121 | def _CleanTemporary(output_dir, architectures): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 122 | if os.path.isdir(output_dir): |
| 123 | logging.info('Removing temporary build files.') |
| 124 | for arch in architectures: |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 125 | arch_lib_path = os.path.join(output_dir, arch) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 126 | if os.path.isdir(arch_lib_path): |
| 127 | shutil.rmtree(arch_lib_path) |
VladimirTechMan | 7b188e8 | 2017-03-14 03:12:35 -0700 | [diff] [blame] | 128 | |
| 129 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 130 | def _ParseArchitecture(architectures): |
| 131 | result = dict() |
| 132 | for arch in architectures: |
| 133 | if ":" in arch: |
| 134 | target_environment, target_cpu = arch.split(":") |
| 135 | else: |
| 136 | logging.warning('The environment for build is not specified.') |
| 137 | logging.warning('It is assumed based on cpu type.') |
| 138 | logging.warning('See crbug.com/1138425 for more details.') |
| 139 | if arch == "x64": |
| 140 | target_environment = "simulator" |
| 141 | else: |
| 142 | target_environment = "device" |
| 143 | target_cpu = arch |
| 144 | archs = result.get(target_environment) |
| 145 | if archs is None: |
| 146 | result[target_environment] = {target_cpu} |
| 147 | else: |
| 148 | archs.add(target_cpu) |
| 149 | |
| 150 | return result |
| 151 | |
| 152 | |
| 153 | def BuildWebRTC(output_dir, target_environment, target_arch, flavor, |
| 154 | gn_target_name, ios_deployment_target, libvpx_build_vp9, |
| 155 | use_bitcode, use_goma, extra_gn_args): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 156 | gn_args = [ |
| 157 | 'target_os="ios"', 'ios_enable_code_signing=false', |
Mirko Bonadei | 58678a0 | 2020-12-01 10:54:40 +0100 | [diff] [blame] | 158 | 'use_xcode_clang=true', 'is_component_build=false', |
| 159 | 'rtc_include_tests=false', |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 160 | ] |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 161 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 162 | # Add flavor option. |
| 163 | if flavor == 'debug': |
| 164 | gn_args.append('is_debug=true') |
| 165 | elif flavor == 'release': |
| 166 | gn_args.append('is_debug=false') |
| 167 | else: |
| 168 | raise ValueError('Unexpected flavor type: %s' % flavor) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 169 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 170 | gn_args.append('target_environment="%s"' % target_environment) |
| 171 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 172 | gn_args.append('target_cpu="%s"' % target_arch) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 173 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 174 | gn_args.append('ios_deployment_target="%s"' % ios_deployment_target) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 175 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 176 | gn_args.append('rtc_libvpx_build_vp9=' + |
| 177 | ('true' if libvpx_build_vp9 else 'false')) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 178 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 179 | gn_args.append('enable_ios_bitcode=' + |
| 180 | ('true' if use_bitcode else 'false')) |
| 181 | gn_args.append('use_goma=' + ('true' if use_goma else 'false')) |
Mirko Bonadei | c1254e8 | 2020-12-17 15:56:13 +0100 | [diff] [blame] | 182 | gn_args.append('rtc_enable_symbol_export=true') |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 183 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 184 | args_string = ' '.join(gn_args + extra_gn_args) |
| 185 | logging.info('Building WebRTC with args: %s', args_string) |
mbonadei | 8714b8f | 2017-02-15 13:18:57 -0800 | [diff] [blame] | 186 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 187 | cmd = [ |
| 188 | sys.executable, |
| 189 | os.path.join(find_depot_tools.DEPOT_TOOLS_PATH, 'gn.py'), |
| 190 | 'gen', |
| 191 | output_dir, |
| 192 | '--args=' + args_string, |
| 193 | ] |
| 194 | _RunCommand(cmd) |
| 195 | logging.info('Building target: %s', gn_target_name) |
mbonadei | 8714b8f | 2017-02-15 13:18:57 -0800 | [diff] [blame] | 196 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 197 | cmd = [ |
| 198 | os.path.join(find_depot_tools.DEPOT_TOOLS_PATH, 'ninja'), |
| 199 | '-C', |
| 200 | output_dir, |
| 201 | gn_target_name, |
| 202 | ] |
| 203 | if use_goma: |
| 204 | cmd.extend(['-j', '200']) |
| 205 | _RunCommand(cmd) |
| 206 | |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 207 | |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 208 | def main(): |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 209 | args = _ParseArgs() |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 210 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 211 | logging.basicConfig(level=logging.DEBUG if args.verbose else logging.INFO) |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 212 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 213 | if args.clean: |
| 214 | _CleanArtifacts(args.output_dir) |
| 215 | return 0 |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 216 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 217 | # architectures is typed as Dict[str, Set[str]], |
| 218 | # where key is for the environment (device or simulator) |
| 219 | # and value is for the cpu type. |
| 220 | architectures = _ParseArchitecture(args.arch) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 221 | gn_args = args.extra_gn_args |
VladimirTechMan | 7b188e8 | 2017-03-14 03:12:35 -0700 | [diff] [blame] | 222 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 223 | if args.purify: |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 224 | _CleanTemporary(args.output_dir, architectures.keys()) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 225 | return 0 |
VladimirTechMan | 7b188e8 | 2017-03-14 03:12:35 -0700 | [diff] [blame] | 226 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 227 | gn_target_name = 'framework_objc' |
| 228 | if not args.bitcode: |
| 229 | gn_args.append('enable_dsyms=true') |
| 230 | gn_args.append('enable_stripping=true') |
Kári Tristan Helgason | 1edbda0 | 2017-06-13 10:45:42 +0200 | [diff] [blame] | 231 | |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 232 | # Build all architectures. |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 233 | framework_paths = [] |
| 234 | all_lib_paths = [] |
| 235 | for (environment, archs) in architectures.items(): |
| 236 | framework_path = os.path.join(args.output_dir, environment) |
| 237 | framework_paths.append(framework_path) |
| 238 | lib_paths = [] |
| 239 | for arch in archs: |
| 240 | lib_path = os.path.join(framework_path, arch + '_libs') |
| 241 | lib_paths.append(lib_path) |
| 242 | BuildWebRTC(lib_path, environment, arch, args.build_config, |
| 243 | gn_target_name, IOS_DEPLOYMENT_TARGET, |
| 244 | LIBVPX_BUILD_VP9, args.bitcode, args.use_goma, gn_args) |
| 245 | all_lib_paths.extend(lib_paths) |
Kári Tristan Helgason | 1edbda0 | 2017-06-13 10:45:42 +0200 | [diff] [blame] | 246 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 247 | # Combine the slices. |
| 248 | dylib_path = os.path.join(SDK_FRAMEWORK_NAME, 'WebRTC') |
| 249 | # Dylibs will be combined, all other files are the same across archs. |
| 250 | # Use distutils instead of shutil to support merging folders. |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 251 | distutils.dir_util.copy_tree( |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 252 | os.path.join(lib_paths[0], SDK_FRAMEWORK_NAME), |
| 253 | os.path.join(framework_path, SDK_FRAMEWORK_NAME)) |
| 254 | logging.info('Merging framework slices for %s.', environment) |
| 255 | dylib_paths = [os.path.join(path, dylib_path) for path in lib_paths] |
| 256 | out_dylib_path = os.path.join(framework_path, dylib_path) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 257 | try: |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 258 | os.remove(out_dylib_path) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 259 | except OSError: |
| 260 | pass |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 261 | cmd = ['lipo'] + dylib_paths + ['-create', '-output', out_dylib_path] |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 262 | _RunCommand(cmd) |
| 263 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 264 | # Merge the dSYM slices. |
| 265 | lib_dsym_dir_path = os.path.join(lib_paths[0], SDK_DSYM_NAME) |
| 266 | if os.path.isdir(lib_dsym_dir_path): |
| 267 | distutils.dir_util.copy_tree( |
| 268 | lib_dsym_dir_path, os.path.join(framework_path, SDK_DSYM_NAME)) |
| 269 | logging.info('Merging dSYM slices.') |
| 270 | dsym_path = os.path.join(SDK_DSYM_NAME, 'Contents', 'Resources', |
| 271 | 'DWARF', 'WebRTC') |
| 272 | lib_dsym_paths = [ |
| 273 | os.path.join(path, dsym_path) for path in lib_paths |
| 274 | ] |
| 275 | out_dsym_path = os.path.join(framework_path, dsym_path) |
| 276 | try: |
| 277 | os.remove(out_dsym_path) |
| 278 | except OSError: |
| 279 | pass |
| 280 | cmd = ['lipo' |
| 281 | ] + lib_dsym_paths + ['-create', '-output', out_dsym_path] |
| 282 | _RunCommand(cmd) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 283 | |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 284 | # Modify the version number. |
| 285 | # Format should be <Branch cut MXX>.<Hotfix #>.<Rev #>. |
| 286 | # e.g. 55.0.14986 means |
| 287 | # branch cut 55, no hotfixes, and revision 14986. |
| 288 | infoplist_path = os.path.join(framework_path, SDK_FRAMEWORK_NAME, |
| 289 | 'Info.plist') |
| 290 | cmd = [ |
| 291 | 'PlistBuddy', '-c', 'Print :CFBundleShortVersionString', |
| 292 | infoplist_path |
| 293 | ] |
| 294 | major_minor = subprocess.check_output(cmd).strip() |
| 295 | version_number = '%s.%s' % (major_minor, args.revision) |
| 296 | logging.info('Substituting revision number: %s', version_number) |
| 297 | cmd = [ |
| 298 | 'PlistBuddy', '-c', 'Set :CFBundleVersion ' + version_number, |
| 299 | infoplist_path |
| 300 | ] |
| 301 | _RunCommand(cmd) |
| 302 | _RunCommand(['plutil', '-convert', 'binary1', infoplist_path]) |
| 303 | |
| 304 | xcframework_dir = os.path.join(args.output_dir, SDK_XCFRAMEWORK_NAME) |
| 305 | if os.path.isdir(xcframework_dir): |
| 306 | shutil.rmtree(xcframework_dir) |
| 307 | |
| 308 | logging.info('Creating xcframework.') |
| 309 | cmd = ['xcodebuild', '-create-xcframework', '-output', xcframework_dir] |
| 310 | |
| 311 | # Apparently, xcodebuild needs absolute paths for input arguments |
| 312 | for framework_path in framework_paths: |
| 313 | cmd += [ |
| 314 | '-framework', |
| 315 | os.path.abspath(os.path.join(framework_path, SDK_FRAMEWORK_NAME)), |
| 316 | '-debug-symbols', |
| 317 | os.path.abspath(os.path.join(framework_path, SDK_DSYM_NAME)) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 318 | ] |
Byoungchan Lee | c41093b | 2021-07-06 18:52:21 +0900 | [diff] [blame^] | 319 | |
| 320 | _RunCommand(cmd) |
| 321 | |
| 322 | # Generate the license file. |
| 323 | logging.info('Generate license file.') |
| 324 | gn_target_full_name = '//sdk:' + gn_target_name |
| 325 | builder = LicenseBuilder(all_lib_paths, [gn_target_full_name]) |
| 326 | builder.GenerateLicenseText( |
| 327 | os.path.join(args.output_dir, SDK_XCFRAMEWORK_NAME)) |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 328 | |
| 329 | logging.info('Done.') |
| 330 | return 0 |
oprypin | 7a2d8ca | 2017-02-06 07:53:41 -0800 | [diff] [blame] | 331 | |
| 332 | |
| 333 | if __name__ == '__main__': |
Mirko Bonadei | 8cc6695 | 2020-10-30 10:13:45 +0100 | [diff] [blame] | 334 | sys.exit(main()) |