Polyphase Game Engine
Loading...
Searching...
No Matches
BuildProfile.h
Go to the documentation of this file.
1#pragma once
2
3#if EDITOR
4
5#include <string>
6#include <cstdint>
7#include <unordered_map>
8#include "EngineTypes.h"
9#include "document.h"
10
17struct BuildProfile
18{
20 uint32_t mId = 0;
21
23 std::string mName = "Default";
24
26 Platform mTargetPlatform = Platform::Windows;
27
37 std::string mTargetId = "";
38
49 std::unordered_map<std::string, std::string> mTargetOptions;
50
52 bool mEmbedded = true;
53
58 std::string mOutputDirectory = "";
59
61 bool mUseDocker = false;
62
64 bool mOpenDirectoryOnFinish = true;
65
70 void LoadFromJson(const rapidjson::Value& value);
71
77 void SaveToJson(rapidjson::Document& doc, rapidjson::Value& value) const;
78};
79
85const char* GetPlatformOutputExtension(Platform platform);
86
92bool PlatformRequiresDockerOnWindows(Platform platform);
93
99bool PlatformSupportsRun(Platform platform);
100
101#endif
Platform
Definition EngineTypes.h:31
Definition JsonHelpers.h:15
Definition JsonHelpers.h:14