MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / configure

Function configure

Tools/SC-build.cpp:799–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797 workspace.projects.push_back(move(project));
798 }
799 return Result(true);
800}
801
802Result configureSingleFileLibs(Definition& definition, const Parameters& parameters)
803{
804 Workspace workspace = {"SCSingleFileLibs"};
805
806 FileSystemIterator::FolderState entries[1];
807 FileSystemIterator fsi;
808
809 String path;
810 SC_TRY(Path::join(path, {parameters.directories.projectDirectory.view(), "_Build", "_SingleFileLibrariesTest"}));
811
812 SC_TRY_MSG(fsi.init(path.view(), entries), "Cannot access _Build/_SingleFileLibrariesTest");
813
814 while (fsi.enumerateNext())
815 {
816 StringView name, extension;
817 SC_TRY(Path::parseNameExtension(fsi.get().name, name, extension));
818 if (extension != "cpp" or not name.startsWith("Test_"))
819 continue;

Callers

nothing calls this directly

Calls 13

configureTestsFunction · 0.85
configureSCBuildTestFunction · 0.85
configureSCAwaitTestFunction · 0.85
configureSCSharedLibraryFunction · 0.85
configureTestSTLInteropFunction · 0.85
configureExamplesConsoleFunction · 0.85
configureExamplesGUIFunction · 0.85
configureZLibFilCFunction · 0.85
configureSingleFileLibsFunction · 0.85
ResultClass · 0.50

Tested by

no test coverage detected