8#include "flutter/fml/command_line.h"
18 std::cerr <<
"Output path not specified." << std::endl;
24 std::cerr <<
"Could not add shader at path: " << input << std::endl;
31 std::cerr <<
"Could not create shader archive." << std::endl;
35 auto current_directory =
39 std::filesystem::absolute(std::filesystem::current_path() / output);
42 std::cerr <<
"Could not write shader archive to path " << output
52int main(
int argc,
char const* argv[]) {
std::vector< std::string_view > GetOptionValues(std::string_view name) const
bool GetOptionValue(std::string_view name, std::string *value) const
bool AddShaderAtPath(const std::string &path)
std::shared_ptr< fml::Mapping > CreateMapping() const
bool WriteAtomically(const fml::UniqueFD &base_directory, const char *file_name, const Mapping &mapping)
fml::UniqueFD OpenDirectory(const char *path, bool create_if_necessary, FilePermission permission)
CommandLine CommandLineFromPlatformOrArgcArgv(int argc, const char *const *argv)
bool Main(const fml::CommandLine &command_line)