• Home
  • Raw
  • Download

Lines Matching refs:options

183   options = parser.parse_args(args)
185 if options.feature_names:
186 if options.output_path:
188 if not options.actual_file and not options.stamp:
190 elif not options.output_path:
193 if bool(options.keep_rules_targets_regex) != bool(
194 options.keep_rules_output_path):
198 if options.output_art_profile and not options.input_art_profile:
200 if options.apply_startup_profile and not options.input_art_profile:
203 if options.force_enable_assertions and options.assertion_handler:
207 options.classpath = action_helpers.parse_gn_list(options.classpath)
208 options.proguard_configs = action_helpers.parse_gn_list(
209 options.proguard_configs)
210 options.input_paths = action_helpers.parse_gn_list(options.input_paths)
211 options.extra_mapping_output_paths = action_helpers.parse_gn_list(
212 options.extra_mapping_output_paths)
214 if options.feature_names:
215 if 'base' not in options.feature_names:
217 if len(options.feature_names) != len(options.feature_jars) or len(
218 options.feature_names) != len(options.dex_dests):
221 options.feature_jars = [
222 action_helpers.parse_gn_list(x) for x in options.feature_jars
226 if options.uses_split:
227 for split_pair in options.uses_split:
230 if name not in options.feature_names:
233 options.uses_split = split_map
235 return options
268 def _OptimizeWithR8(options, config_paths, libraries, dynamic_config_data): argument
285 if options.feature_names:
286 for name, dest_dex, input_jars in zip(options.feature_names,
287 options.dex_dests,
288 options.feature_jars):
289 parent_name = options.uses_split.get(name)
301 options.output_path, [],
314 if options.dump_inputs:
316 if options.dump_unknown_refs:
320 options.r8_path,
326 options.source_file,
333 if options.disable_checks:
340 if options.min_api:
341 cmd += ['--min-api', options.min_api]
343 if options.assertion_handler:
344 cmd += ['--force-assertions-handler:' + options.assertion_handler]
345 elif options.force_enable_assertions:
354 if options.main_dex_rules_path:
355 for main_dex_rule in options.main_dex_rules_path:
358 if options.output_art_profile:
361 options.input_art_profile,
362 options.output_art_profile,
364 if options.apply_startup_profile:
367 options.input_art_profile,
371 extra_jars = set(options.input_paths)
384 if options.verbose or os.environ.get('R8_VERBOSE') == '1':
389 if options.show_desugar_default_interface_warnings:
398 fail_on_output=options.warnings_as_errors)
411 shutil.move(tmp_mapping_path, options.mapping_output)
582 def _CreateDynamicConfig(options): argument
584 if options.enable_obfuscation:
589 if options.apply_mapping:
590 ret.append("-applymapping '%s'" % options.apply_mapping)
618 def _MaybeWriteStampAndDepFile(options, inputs): argument
619 output = options.output_path
620 if options.stamp:
621 build_utils.Touch(options.stamp)
622 output = options.stamp
623 if options.depfile:
624 action_helpers.write_depfile(options.depfile, output, inputs=inputs)
634 def _DoTraceReferencesChecks(options, split_contexts_by_name): argument
651 if _CheckForMissingSymbols(options.r8_path, dex_files, options.classpath,
652 options.warnings_as_errors, options.dump_inputs,
667 if _CheckForMissingSymbols(options.r8_path, dex_files, options.classpath,
668 options.warnings_as_errors, options.dump_inputs,
674 def _Run(options): argument
677 dynamic_config_data = _CreateDynamicConfig(options)
681 libraries = [p for p in options.classpath if p not in options.input_paths]
684 for jar_path in options.input_paths + libraries:
688 merged_configs = _CombineConfigs(options.proguard_configs,
693 depfile_inputs = options.proguard_configs + options.input_paths + libraries
694 if options.expected_file:
695 diff_utils.CheckExpectations(merged_configs, options)
696 if options.only_verify_expectations:
697 action_helpers.write_depfile(options.depfile,
698 options.actual_file,
702 if options.keep_rules_output_path:
703 _OutputKeepRules(options.r8_path, options.input_paths, options.classpath,
704 options.keep_rules_targets_regex,
705 options.keep_rules_output_path)
708 split_contexts_by_name = _OptimizeWithR8(options, options.proguard_configs,
711 if not options.disable_checks:
713 _DoTraceReferencesChecks(options, split_contexts_by_name)
715 for output in options.extra_mapping_output_paths:
716 shutil.copy(options.mapping_output, output)
718 if options.apply_mapping:
719 depfile_inputs.append(options.apply_mapping)
721 _MaybeWriteStampAndDepFile(options, depfile_inputs)
726 options = _ParseOptions()
728 if options.dump_inputs:
730 options.warnings_as_errors = False
742 _Run(options)
744 if options.dump_inputs: