Lines Matching refs:options

152 static bool LoadInputFilesFromDir(IAaptContext* context, const CompileOptions& options,
154 const std::string& root_dir = options.res_dir.value();
208 static bool CompileTable(IAaptContext* context, const CompileOptions& options,
224 parser_options.error_on_positional_arguments = !options.legacy_mode;
236 if (options.pseudolocalize) {
283 if (options.generate_text_symbols_path) {
284 io::FileOutputStream fout_text(options.generate_text_symbols_path.value());
289 << options.generate_text_symbols_path.value()
403 static bool CompileXml(IAaptContext* context, const CompileOptions& options,
476 if (options.generate_text_symbols_path) {
477 io::FileOutputStream fout_text(options.generate_text_symbols_path.value());
482 << options.generate_text_symbols_path.value()
503 static bool CompilePng(IAaptContext* context, const CompileOptions& options,
615 static bool CompileFile(IAaptContext* context, const CompileOptions& options,
700 CompileOptions options;
705 .RequiredFlag("-o", "Output path", &options.output_path)
706 .OptionalFlag("--dir", "Directory to scan for resources", &options.res_dir)
710 &options.generate_text_symbols_path)
714 &options.pseudolocalize)
715 .OptionalSwitch("--no-crunch", "Disables PNG processing", &options.no_png_crunch)
717 &options.legacy_mode)
728 if (options.res_dir) {
736 if (!LoadInputFilesFromDir(&context, options, &input_data)) {
740 archive_writer = CreateZipFileArchiveWriter(context.GetDiagnostics(), options.output_path);
756 archive_writer = CreateDirectoryArchiveWriter(context.GetDiagnostics(), options.output_path);
765 if (options.verbose) {
786 } else if ((!options.no_png_crunch && path_data.extension == "png")
800 if (compile_func != &CompileFile && !options.legacy_mode
811 error |= !compile_func(&context, options, path_data, archive_writer.get(), out_path);