Polyphase Game Engine
Loading...
Searching...
No Matches
BuildDependencyWindow.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <string>
6#include <vector>
7
8enum class DependencyStatus
9{
10 Found,
11 NotFound,
12 Skipped
13};
14
15struct BuildDependency
16{
17 std::string mName;
18 std::string mDescription;
19 DependencyStatus mStatus = DependencyStatus::NotFound;
20 std::string mVersion;
21 std::string mInstallHint;
22 std::string mInstallUrl;
23};
24
25class BuildDependencyWindow
26{
27public:
28 void RunChecks();
29 bool HasMissing() const;
30 void Open();
31 void Draw();
32 bool IsOpen() const;
33
34private:
35 void CheckMake();
36 void CheckDevkitPro();
37 void CheckDocker();
38 void CheckVisualStudio();
39 void CheckGradle();
40
41 bool mIsOpen = false;
42 std::vector<BuildDependency> mDependencies;
43};
44
45BuildDependencyWindow* GetBuildDependencyWindow();
46
47#endif