• Home
  • Raw
  • Download

Lines Matching refs:options

144   options = parser.parse_args(args)
146 if options.main_dex_rules_path and not options.multi_dex:
149 if options.force_enable_assertions and options.assertion_handler:
153 options.class_inputs = action_helpers.parse_gn_list(options.class_inputs)
154 options.class_inputs_filearg = action_helpers.parse_gn_list(
155 options.class_inputs_filearg)
156 options.bootclasspath = action_helpers.parse_gn_list(options.bootclasspath)
157 options.classpath = action_helpers.parse_gn_list(options.classpath)
158 options.dex_inputs = action_helpers.parse_gn_list(options.dex_inputs)
159 options.dex_inputs_filearg = action_helpers.parse_gn_list(
160 options.dex_inputs_filearg)
162 return options
242 def _CreateFinalDex(d8_inputs, output, tmp_dir, dex_cmd, options=None): argument
245 needs_dexmerge = output.endswith('.dex') or not (options and options.library)
247 if options and options.main_dex_rules_path:
248 for main_dex_rule in options.main_dex_rules_path:
255 (not options or options.warnings_as_errors),
256 (options and options.show_desugar_default_interface_warnings))
367 def _CreateIntermediateDexFiles(changes, options, tmp_dir, dex_cmd): argument
373 allowed_changed = set(options.class_inputs)
374 allowed_changed.update(options.dex_inputs)
375 allowed_changed.update(options.classpath)
389 changes, options.desugar_dependencies, options.class_inputs,
390 options.classpath)
394 options.class_inputs,
402 if options.desugar_dependencies and not options.skip_custom_d8:
405 if changes is None and os.path.exists(options.desugar_dependencies):
409 os.unlink(options.desugar_dependencies)
410 _RunD8(dex_cmd, class_files, options.incremental_dir,
411 options.warnings_as_errors,
412 options.show_desugar_default_interface_warnings)
416 def _OnStaleMd5(changes, options, final_dex_inputs, dex_cmd): argument
419 if options.incremental_dir:
421 if not os.path.exists(options.incremental_dir):
422 os.makedirs(options.incremental_dir)
424 _DeleteStaleIncrementalDexFiles(options.incremental_dir, final_dex_inputs)
426 _CreateIntermediateDexFiles(changes, options, tmp_dir, dex_cmd)
429 final_dex_inputs, options.output, tmp_dir, dex_cmd, options=options)
447 options = _ParseArgs(args)
449 options.class_inputs += options.class_inputs_filearg
450 options.dex_inputs += options.dex_inputs_filearg
452 input_paths = options.class_inputs + options.dex_inputs
453 input_paths.append(options.r8_jar_path)
454 input_paths.append(options.custom_d8_jar_path)
455 if options.main_dex_rules_path:
456 input_paths.extend(options.main_dex_rules_path)
458 depfile_deps = options.class_inputs_filearg + options.dex_inputs_filearg
460 output_paths = [options.output]
463 if options.incremental_dir:
465 options.class_inputs, options.incremental_dir)
467 track_subpaths_allowlist += options.class_inputs
469 final_dex_inputs = list(options.class_inputs)
470 final_dex_inputs += options.dex_inputs
474 if options.dump_inputs:
477 if not options.skip_custom_d8:
480 '{}:{}'.format(options.r8_jar_path, options.custom_d8_jar_path),
486 options.r8_jar_path,
490 if options.release:
492 if options.min_api:
493 dex_cmd += ['--min-api', options.min_api]
495 if not options.desugar:
497 elif options.classpath:
499 if options.desugar_dependencies and not options.skip_custom_d8:
500 dex_cmd += ['--desugar-dependencies', options.desugar_dependencies]
502 track_subpaths_allowlist += options.classpath
503 depfile_deps += options.classpath
504 input_paths += options.classpath
507 for path in options.classpath:
510 if options.classpath or options.main_dex_rules_path:
513 for path in options.bootclasspath:
515 depfile_deps += options.bootclasspath
516 input_paths += options.bootclasspath
519 if options.assertion_handler:
520 dex_cmd += ['--force-assertions-handler:' + options.assertion_handler]
521 if options.force_enable_assertions:
527 lambda changes: _OnStaleMd5(changes, options, final_dex_inputs, dex_cmd),
528 options,
530 input_strings=dex_cmd + [str(bool(options.incremental_dir))],