2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-07 05:23:02 +00:00

chore: add build log for zcg

This commit is contained in:
Jan Laupetin
2026-03-05 20:20:00 +00:00
parent 027d47d549
commit f8b3361bbe
6 changed files with 41 additions and 3 deletions

View File

@@ -85,6 +85,13 @@ const CommandLineOption* const OPTION_GENERATE =
.WithParameter("preset")
.Reusable()
.Build();
const CommandLineOption* const OPTION_BUILD_LOG =
CommandLineOption::Builder::Create()
.WithLongName("build-log")
.WithDescription("Specify a file to write a build log to.")
.WithParameter("logFilePath")
.Build();
// clang-format on
const CommandLineOption* const COMMAND_LINE_OPTIONS[]{
@@ -97,6 +104,7 @@ const CommandLineOption* const COMMAND_LINE_OPTIONS[]{
OPTION_OUTPUT_FOLDER,
OPTION_PRINT,
OPTION_GENERATE,
OPTION_BUILD_LOG,
};
namespace
@@ -170,6 +178,10 @@ bool ZoneCodeGeneratorArguments::ParseArgs(const int argc, const char** argv, bo
else
m_output_directory = ".";
// --build-log
if (m_argument_parser.IsOptionSpecified(OPTION_BUILD_LOG))
m_build_log_file = m_argument_parser.GetValueForOption(OPTION_BUILD_LOG);
// -h; --header
if (m_argument_parser.IsOptionSpecified(OPTION_HEADER))
{