NoJobEngine 2.0.7
Loading...
Searching...
No Matches
ProjectScriptBuildSystem.h
Go to the documentation of this file.
1
6#pragma once
7#include <filesystem>
8#include <functional>
9#include <string>
10
11namespace NoJob
12{
15 {
16 public:
17 using LogFunction = std::function<void(std::string)>;
18
19 static void SetLogger(LogFunction logger);
22 static bool Start(const std::filesystem::path& projectRoot);
23 static bool IsRunning();
25 static bool ConsumeReloadPending();
26 static void Shutdown();
27 };
28}
Manages asynchronous compilation and reload signaling for project scripts.
std::function< void(std::string)> LogFunction
static void SetLogger(LogFunction logger)
static bool Start(const std::filesystem::path &projectRoot)
Starts compilation for the specified project root.
static bool ConsumeReloadPending()
Consumes the pending reload notification after compilation.