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 CheckDevkitPPC();
38 void CheckDevkitARM();
39 void CheckMakerom();
40 void CheckDocker();
41 void CheckVisualStudio();
42 void CheckGradle();
43 void CheckDotnet();
44 void CheckVulkanSDK();
45#if PLATFORM_MAC
46 void CheckXcodeTools();
47 void CheckGlslc();
48#endif
49
50 bool mIsOpen = false;
51 std::vector<BuildDependency> mDependencies;
52};
53
54BuildDependencyWindow* GetBuildDependencyWindow();
55
56#endif