162 parser = argparse.ArgumentParser()
163
164 parser.add_argument(
165 '--symbol-dirs',
166 required=True,
167 nargs='+',
168 help='Space separated list of directories that contain the debug symbols.'
169 )
170 parser.add_argument(
171 '--out-dir',
172 action='store',
173 dest='out_dir',
174 default=tempfile.mkdtemp(),
175 help=(
176 'Output directory where the executables will be placed defaults to an '
177 'empty temp directory'
178 )
179 )
180 parser.add_argument('--target-arch', type=str, choices=['x64', 'arm64'], required=True)
181 parser.add_argument('--engine-version', required=True, help='Specifies the flutter engine SHA.')
182
183 parser.add_argument('--upload', default=False, action='store_true')
184
185 args = parser.parse_args()
186
188 for symbol_dir in symbol_dirs:
189 assert os.path.exists(symbol_dir) and os.path.isdir(symbol_dir)
190
191 out_dir = args.out_dir
192
193 if os.path.exists(out_dir):
194 print(
'Directory: %s is not empty, deleting it.' % out_dir)
195 shutil.rmtree(out_dir)
196 os.makedirs(out_dir)
197
198 internal_symbol_dirs = []
199 for symbol_dir in symbol_dirs:
201
202
203 internal_symbol_dirs = list(
set(internal_symbol_dirs))
204
205 arch = args.target_arch
207
208
209
210
211 should_upload = args.upload
212 engine_version = args.engine_version
213 if not engine_version:
214 engine_version = 'HEAD'
215 should_upload = False
216
218 return 0
219
220
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
def WriteCIPDDefinition(target_arch, out_dir, symbol_dirs)
def ProcessCIPDPackage(upload, cipd_yaml, engine_version, out_dir, target_arch)