Android Project
This commit is contained in:
@ -52,12 +52,100 @@ namespace ia::iae
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
// RegisterCommand({.ID = "run", .Shorthand = 'r', .Help = ""});
|
||||
// RegisterCommand({.ID = "debug", .Shorthand = 'd', .Help = ""});
|
||||
// RegisterCommand({.ID = "clean", .Shorthand = 'c', .Help = ""});
|
||||
// RegisterCommand({.ID = "build", .Shorthand = 'b', .Help = ""});
|
||||
// RegisterCommand({.ID = "rebuild", .Shorthand = 'e', .Help = ""});
|
||||
// RegisterCommand({.ID = "package", .Shorthand = 'p', .Help = ""});
|
||||
RegisterCommand({
|
||||
.ID = "run",
|
||||
.Shorthand = 'r',
|
||||
.Help = "Runs the game project",
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
RegisterCommand({
|
||||
.ID = "debug",
|
||||
.Shorthand = 'd',
|
||||
.Help = "Debugs the game project",
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
RegisterCommand({
|
||||
.ID = "clean",
|
||||
.Shorthand = 'c',
|
||||
.Help = "Cleans the game project",
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
RegisterCommand({
|
||||
.ID = "build",
|
||||
.Shorthand = 'b',
|
||||
.Help = "Builds the game project",
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
RegisterCommand({
|
||||
.ID = "rebuild",
|
||||
.Shorthand = 'e',
|
||||
.Help = "Rebuilds the game project",
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
RegisterCommand({
|
||||
.ID = "package",
|
||||
.Shorthand = 'p',
|
||||
.Help = "Packages the game project",
|
||||
.Parameters =
|
||||
{
|
||||
{
|
||||
.ID = "target",
|
||||
.Help = "Target platform. Possible values WIN64, ANDROID.",
|
||||
.IsOptional = false,
|
||||
.Type = ParameterValueType::STRING,
|
||||
},
|
||||
},
|
||||
.Action = [&](IN Map<String, ParameterValue>&& params, IN Map<String, BOOL>&& switches)
|
||||
{
|
||||
try {
|
||||
|
||||
} catch(CONST std::exception& e) {
|
||||
IAE_LOG_ERROR("EXCEPTION: ", e.what());
|
||||
return -4;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
VOID CLI::CreateNewProject(IN CONST String& name)
|
||||
@ -71,6 +159,6 @@ namespace ia::iae
|
||||
REPORT_STATUS("Creating Project ", name, "..");
|
||||
std::filesystem::create_directories(name.c_str());
|
||||
|
||||
|
||||
|
||||
}
|
||||
} // namespace ia::iae
|
||||
Reference in New Issue
Block a user