• Home
  • Raw
  • Download

Lines Matching refs:options

134   options = parser.parse_args(args)
136 if options.feature_names:
137 if options.output_path:
139 if not options.actual_file and not options.stamp:
141 elif not options.output_path:
144 if bool(options.keep_rules_targets_regex) != bool(
145 options.keep_rules_output_path):
149 if options.force_enable_assertions and options.assertion_handler:
153 options.classpath = action_helpers.parse_gn_list(options.classpath)
154 options.proguard_configs = action_helpers.parse_gn_list(
155 options.proguard_configs)
156 options.input_paths = action_helpers.parse_gn_list(options.input_paths)
157 options.extra_mapping_output_paths = action_helpers.parse_gn_list(
158 options.extra_mapping_output_paths)
160 if options.feature_names:
161 if 'base' not in options.feature_names:
163 if len(options.feature_names) != len(options.feature_jars) or len(
164 options.feature_names) != len(options.dex_dests):
167 options.feature_jars = [
168 action_helpers.parse_gn_list(x) for x in options.feature_jars
172 if options.uses_split:
173 for split_pair in options.uses_split:
176 if name not in options.feature_names:
179 options.uses_split = split_map
181 return options
214 def _OptimizeWithR8(options, argument
235 if options.feature_names:
236 for name, dest_dex, input_jars in zip(options.feature_names,
237 options.dex_dests,
238 options.feature_jars):
239 parent_name = options.uses_split.get(name)
251 options.output_path, [],
264 if options.dump_inputs:
266 if options.dump_unknown_refs:
270 options.r8_path,
276 options.source_file,
283 if options.disable_checks:
290 if options.min_api:
291 cmd += ['--min-api', options.min_api]
293 if options.assertion_handler:
294 cmd += ['--force-assertions-handler:' + options.assertion_handler]
295 elif options.force_enable_assertions:
304 if options.main_dex_rules_path:
305 for main_dex_rule in options.main_dex_rules_path:
309 extra_jars = set(options.input_paths)
324 options.show_desugar_default_interface_warnings)
329 fail_on_output=options.warnings_as_errors)
342 shutil.move(tmp_mapping_path, options.mapping_output)
517 def _CreateDynamicConfig(options): argument
519 if options.enable_obfuscation:
524 if options.apply_mapping:
525 ret.append("-applymapping '%s'" % options.apply_mapping)
558 def _MaybeWriteStampAndDepFile(options, inputs): argument
559 output = options.output_path
560 if options.stamp:
561 build_utils.Touch(options.stamp)
562 output = options.stamp
563 if options.depfile:
564 action_helpers.write_depfile(options.depfile, output, inputs=inputs)
574 def _DoTraceReferencesChecks(options, split_contexts_by_name): argument
591 if _CheckForMissingSymbols(options.r8_path, dex_files, options.classpath,
592 options.warnings_as_errors, options.dump_inputs,
607 if _CheckForMissingSymbols(options.r8_path, dex_files, options.classpath,
608 options.warnings_as_errors, options.dump_inputs,
614 def _Run(options): argument
617 dynamic_config_data = _CreateDynamicConfig(options)
621 libraries = [p for p in options.classpath if p not in options.input_paths]
624 for jar_path in options.input_paths + libraries:
628 merged_configs = _CombineConfigs(options.proguard_configs,
632 print_stdout = _ContainsDebuggingConfig(merged_configs) or options.verbose
634 depfile_inputs = options.proguard_configs + options.input_paths + libraries
635 if options.expected_file:
636 diff_utils.CheckExpectations(merged_configs, options)
637 if options.only_verify_expectations:
638 action_helpers.write_depfile(options.depfile,
639 options.actual_file,
643 if options.keep_rules_output_path:
644 _OutputKeepRules(options.r8_path, options.input_paths, options.classpath,
645 options.keep_rules_targets_regex,
646 options.keep_rules_output_path)
649 split_contexts_by_name = _OptimizeWithR8(options, options.proguard_configs,
653 if not options.disable_checks:
655 _DoTraceReferencesChecks(options, split_contexts_by_name)
657 for output in options.extra_mapping_output_paths:
658 shutil.copy(options.mapping_output, output)
660 if options.apply_mapping:
661 depfile_inputs.append(options.apply_mapping)
663 _MaybeWriteStampAndDepFile(options, depfile_inputs)
668 options = _ParseOptions()
670 if options.dump_inputs:
672 options.warnings_as_errors = False
684 _Run(options)
686 if options.dump_inputs: