mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 14:23:12 +00:00
REXM: Reviewed automatic validation and update -WIP-
This commit is contained in:
parent
afdc7972d6
commit
a65bdd6cca
@ -775,12 +775,12 @@ int main(int argc, char *argv[])
|
|||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
// NOTE: Every UTF-8 star are 3 bytes
|
// NOTE: Every UTF-8 star are 3 bytes
|
||||||
if (i < exInfo->stars) strcpy(starsText + 3*i, "★");
|
if (i < exInfo->stars) strcpy(starsText + 3*i, "⭐️");
|
||||||
else strcpy(starsText + 3*i, "☆");
|
else strcpy(starsText + 3*i, "☆");
|
||||||
}
|
}
|
||||||
|
|
||||||
exListLen += sprintf(exListUpdated + exListLen,
|
exListLen += sprintf(exListUpdated + exListLen,
|
||||||
TextFormat("%s;%s;%s;%.2f;%.2f;\"%s\";@%s\n",
|
TextFormat("%s;%s;%s;%.1f;%.1f;\"%s\";@%s\n",
|
||||||
exInfo->category, exInfo->name, starsText, exInfo->verCreated,
|
exInfo->category, exInfo->name, starsText, exInfo->verCreated,
|
||||||
exInfo->verUpdated, exInfo->author, exInfo->authorGitHub));
|
exInfo->verUpdated, exInfo->author, exInfo->authorGitHub));
|
||||||
|
|
||||||
@ -922,11 +922,18 @@ int main(int argc, char *argv[])
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// NOTE: Some issues can not be automatically fixed, only logged
|
// NOTE: Some issues can not be automatically fixed, only logged
|
||||||
//if (exInfo->status & VALID_MISSING_PNG) LOG("WARNING: [%s] Missing screenshot file\n", exInfo->name);
|
if (exInfo->status & VALID_MISSING_PNG) LOG("WARNING: [%s] Missing screenshot file\n", exInfo->name);
|
||||||
//if (exInfo->status & VALID_INVALID_PNG) LOG("WARNING: [%s] Invalid screenshot file (using template)\n", exInfo->name);
|
if (exInfo->status & VALID_INVALID_PNG) LOG("WARNING: [%s] Invalid screenshot file (using template)\n", exInfo->name);
|
||||||
//if (exInfo->status & VALID_MISSING_RESOURCES) LOG("WARNING: [%s] Missing resources detected\n", exInfo->name);
|
if (exInfo->status & VALID_MISSING_RESOURCES) LOG("WARNING: [%s] Missing resources detected\n", exInfo->name);
|
||||||
//if (exInfo->status & VALID_INCONSISTENT_INFO) LOG("WARNING: [%s] Inconsistent example header info\n", exInfo->name);
|
if (exInfo->status & VALID_INCONSISTENT_INFO) LOG("WARNING: [%s] Inconsistent example header info\n", exInfo->name);
|
||||||
//if (exInfo->status & VALID_INVALID_CATEGORY) LOG("WARNING: [%s] Invalid example category\n", exInfo->name);
|
if (exInfo->status & VALID_INVALID_CATEGORY) LOG("WARNING: [%s] Invalid example category\n", exInfo->name);
|
||||||
|
|
||||||
|
// NOTE: Some examples should be excluded from VS2022 solution because
|
||||||
|
// they have specific platform/linkage requirements:
|
||||||
|
if ((strcmp(exInfo->name, "core_basic_window_web") == 0) ||
|
||||||
|
(strcmp(exInfo->name, "core_input_gestures_web") == 0) ||
|
||||||
|
(strcmp(exInfo->name, "raylib_opengl_interop") == 0) ||
|
||||||
|
(strcmp(exInfo->name, "raymath_vector_angle") == 0)) continue;
|
||||||
|
|
||||||
// Review: Add: raylib/projects/VS2022/examples/<category>_example_name.vcxproj
|
// Review: Add: raylib/projects/VS2022/examples/<category>_example_name.vcxproj
|
||||||
// Review: Add: raylib/projects/VS2022/raylib.sln
|
// Review: Add: raylib/projects/VS2022/raylib.sln
|
||||||
@ -940,7 +947,7 @@ int main(int argc, char *argv[])
|
|||||||
FileTextReplace(TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exInfo->name),
|
FileTextReplace(TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exInfo->name),
|
||||||
"..\\..\\examples\\core", TextFormat("..\\..\\examples\\%s", exInfo->category));
|
"..\\..\\examples\\core", TextFormat("..\\..\\examples\\%s", exInfo->category));
|
||||||
|
|
||||||
exInfo->status |= VALID_MISSING_VCXPROJ;
|
exInfo->status &= ~VALID_MISSING_VCXPROJ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add project (.vcxproj) to raylib solution (.sln)
|
// Add project (.vcxproj) to raylib solution (.sln)
|
||||||
@ -949,7 +956,7 @@ int main(int argc, char *argv[])
|
|||||||
AddVSProjectToSolution(TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exInfo->name),
|
AddVSProjectToSolution(TextFormat("%s/../projects/VS2022/examples/%s.vcxproj", exBasePath, exInfo->name),
|
||||||
exVSProjectSolutionFile, exInfo->category);
|
exVSProjectSolutionFile, exInfo->category);
|
||||||
|
|
||||||
exInfo->status |= VALID_NOT_IN_VCXSOL;
|
exInfo->status &= ~VALID_NOT_IN_VCXSOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.html
|
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.html
|
||||||
@ -957,6 +964,7 @@ int main(int argc, char *argv[])
|
|||||||
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.wasm
|
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.wasm
|
||||||
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.js
|
// Review: Add/Remove: raylib.com/examples/<category>/<category>_example_name.js
|
||||||
// Solves: VALID_MISSING_WEB_OUTPUT
|
// Solves: VALID_MISSING_WEB_OUTPUT
|
||||||
|
/*
|
||||||
if (exInfo->status & VALID_MISSING_WEB_OUTPUT)
|
if (exInfo->status & VALID_MISSING_WEB_OUTPUT)
|
||||||
{
|
{
|
||||||
system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
|
system(TextFormat("%s/build_example_web.bat %s/%s", exBasePath, exInfo->category, exInfo->name));
|
||||||
@ -973,6 +981,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
exInfo->status |= VALID_MISSING_WEB_OUTPUT;
|
exInfo->status |= VALID_MISSING_WEB_OUTPUT;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -981,10 +990,10 @@ int main(int argc, char *argv[])
|
|||||||
UpdateRequiredFiles();
|
UpdateRequiredFiles();
|
||||||
for (int i = 0; i < exCollectionCount; i++)
|
for (int i = 0; i < exCollectionCount; i++)
|
||||||
{
|
{
|
||||||
exCollection[i].status |= VALID_NOT_IN_MAKEFILE;
|
exCollection[i].status &= ~VALID_NOT_IN_MAKEFILE;
|
||||||
exCollection[i].status |= VALID_NOT_IN_MAKEFILE_WEB;
|
exCollection[i].status &= ~VALID_NOT_IN_MAKEFILE_WEB;
|
||||||
exCollection[i].status |= VALID_NOT_IN_README;
|
exCollection[i].status &= ~VALID_NOT_IN_README;
|
||||||
exCollection[i].status |= VALID_NOT_IN_JS;
|
exCollection[i].status &= ~VALID_NOT_IN_JS;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user