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
63 bool mStaticContent = false;
64
73 bool mContentPak = false;
74
79 std::string mOutputDirectory = "";
80
82 bool mUseDocker = false;
83
85 bool mOpenDirectoryOnFinish = true;
86
91 void LoadFromJson(const rapidjson::Value& value);
92
98 void SaveToJson(rapidjson::Document& doc, rapidjson::Value& value) const;
99};
100
106const char* GetPlatformOutputExtension(Platform platform);
107
113bool PlatformRequiresDockerOnWindows(Platform platform);
114
120bool PlatformSupportsRun(Platform platform);
121
130bool PlatformUsesShaderFiles(Platform platform);
131
137#define POLYPHASE_OPT_HIDE_CONTENT_PAK "polyphase.hideContentPak"
138
147#define POLYPHASE_OPT_DISC_CONTENT "polyphase.discContent"
148
149#endif
Platform
Definition EngineTypes.h:32
Definition JsonHelpers.h:15
Definition JsonHelpers.h:14