• Home
  • Raw
  • Download

Lines Matching refs:options

117   options = parser.parse_args(args)
119 if options.main_dex_rules_path and not options.multi_dex:
122 if options.force_enable_assertions and options.assertion_handler:
126 options.class_inputs = action_helpers.parse_gn_list(options.class_inputs)
127 options.class_inputs_filearg = action_helpers.parse_gn_list(
128 options.class_inputs_filearg)
129 options.bootclasspath = action_helpers.parse_gn_list(options.bootclasspath)
130 options.classpath = action_helpers.parse_gn_list(options.classpath)
131 options.dex_inputs = action_helpers.parse_gn_list(options.dex_inputs)
132 options.dex_inputs_filearg = action_helpers.parse_gn_list(
133 options.dex_inputs_filearg)
135 return options
218 def _CreateFinalDex(d8_inputs, output, tmp_dir, dex_cmd, options=None): argument
221 needs_dexmerge = output.endswith('.dex') or not (options and options.library)
223 if options and options.main_dex_rules_path:
224 for main_dex_rule in options.main_dex_rules_path:
231 (not options or options.warnings_as_errors),
232 (options and options.show_desugar_default_interface_warnings))
343 def _CreateIntermediateDexFiles(changes, options, tmp_dir, dex_cmd): argument
349 allowed_changed = set(options.class_inputs)
350 allowed_changed.update(options.dex_inputs)
351 allowed_changed.update(options.classpath)
365 changes, options.desugar_dependencies, options.class_inputs,
366 options.classpath)
370 options.class_inputs,
378 if options.desugar_dependencies and not options.skip_custom_d8:
381 if changes is None and os.path.exists(options.desugar_dependencies):
385 os.unlink(options.desugar_dependencies)
386 _RunD8(dex_cmd, class_files, options.incremental_dir,
387 options.warnings_as_errors,
388 options.show_desugar_default_interface_warnings)
392 def _OnStaleMd5(changes, options, final_dex_inputs, dex_cmd): argument
395 if options.incremental_dir:
397 if not os.path.exists(options.incremental_dir):
398 os.makedirs(options.incremental_dir)
400 _DeleteStaleIncrementalDexFiles(options.incremental_dir, final_dex_inputs)
402 _CreateIntermediateDexFiles(changes, options, tmp_dir, dex_cmd)
405 final_dex_inputs, options.output, tmp_dir, dex_cmd, options=options)
423 options = _ParseArgs(args)
425 options.class_inputs += options.class_inputs_filearg
426 options.dex_inputs += options.dex_inputs_filearg
429 build_utils.JAVA_PATH_FOR_INPUTS, options.r8_jar_path,
430 options.custom_d8_jar_path
431 ] + options.class_inputs + options.dex_inputs)
432 if options.main_dex_rules_path:
433 input_paths.extend(options.main_dex_rules_path)
435 depfile_deps = options.class_inputs_filearg + options.dex_inputs_filearg
437 output_paths = [options.output]
440 if options.incremental_dir:
442 options.class_inputs, options.incremental_dir)
444 track_subpaths_allowlist += options.class_inputs
446 final_dex_inputs = list(options.class_inputs)
447 final_dex_inputs += options.dex_inputs
451 if options.dump_inputs:
454 if not options.skip_custom_d8:
457 '{}:{}'.format(options.r8_jar_path, options.custom_d8_jar_path),
463 options.r8_jar_path,
467 if options.release:
469 if options.min_api:
470 dex_cmd += ['--min-api', options.min_api]
472 if not options.desugar:
474 elif options.classpath:
476 if options.desugar_dependencies and not options.skip_custom_d8:
477 dex_cmd += ['--desugar-dependencies', options.desugar_dependencies]
479 track_subpaths_allowlist += options.classpath
480 depfile_deps += options.classpath
481 input_paths += options.classpath
484 for path in options.classpath:
487 if options.classpath or options.main_dex_rules_path:
490 for path in options.bootclasspath:
492 depfile_deps += options.bootclasspath
493 input_paths += options.bootclasspath
496 if options.assertion_handler:
497 dex_cmd += ['--force-assertions-handler:' + options.assertion_handler]
498 if options.force_enable_assertions:
504 lambda changes: _OnStaleMd5(changes, options, final_dex_inputs, dex_cmd),
505 options,
507 input_strings=dex_cmd + [str(bool(options.incremental_dir))],