analyzer.h 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. 
  2. #ifndef DSR_BUILDER_ANALYZER_MODULE
  3. #define DSR_BUILDER_ANALYZER_MODULE
  4. #include "../../../DFPSR/api/fileAPI.h"
  5. #include "builderTypes.h"
  6. using namespace dsr;
  7. // Analyze using calls from the machine
  8. void analyzeFromFile(ProjectContext &context, ReadableString entryPath);
  9. // Call from main when done analyzing source files
  10. void resolveDependencies(ProjectContext &context);
  11. // Visualize
  12. void printDependencies(ProjectContext &context);
  13. // Build anything in projectPath.
  14. void buildFromFolder(SessionContext &output, ReadableString projectPath, Machine &sharedSettings);
  15. // Create a project from crawling a single source file and build it.
  16. void buildFromFile(SessionContext &output, ReadableString mainPath, Machine &sharedSettings);
  17. // Build the project in projectFilePath.
  18. // Settings must be taken by value to prevent side-effects from spilling over between different scripts.
  19. void buildProject(SessionContext &output, ReadableString projectFilePath, Machine &sharedSettings);
  20. // Build all projects in projectFolderPath.
  21. void buildProjects(SessionContext &output, ReadableString projectFolderPath, Machine &sharedSettings);
  22. void gatherBuildInstructions(SessionContext &output, ProjectContext &context, Machine &settings, ReadableString programPath);
  23. #endif