|
|
| EZ_ADD_DYNAMIC_REFLECTION (ezCppProject, ezPreferences) |
| |
|
Domain | GetDomain () const |
| | Whether the preferences are app, project or document specific.
|
| |
|
ezString | GetName () const |
| | Within the same domain and visibility the name must be unique, but across those it can be reused.
|
| |
|
const ezDocument * | GetDocumentAssociation () const |
| | If these preferences are per document, the pointer is valid, otherwise nullptr.
|
| |
|
void | TriggerPreferencesChangedEvent () |
| | Call this to broadcast that this preference object was modified.
|
| |
|
virtual const ezRTTI * | GetDynamicRTTI () const |
| |
|
bool | IsInstanceOf (const ezRTTI *pType) const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
| |
|
template<typename T > |
| EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| | Returns whether the type of this instance is of the given type or derived from it.
|
| |
|
| static ezString | GetTargetSourceDir (ezStringView sProjectDirectory={}) |
| |
|
static ezString | GetGeneratorFolderName (const ezCppSettings &cfg) |
| | Returns the CMake generator-specific folder name (e.g., "vs2022x64").
|
| |
|
static ezString | GetCMakeGeneratorName (const ezCppSettings &cfg) |
| | Returns the CMake generator name string for the -G parameter.
|
| |
| static ezString | GetPluginSourceDir (const ezCppSettings &cfg, ezStringView sProjectDirectory={}) |
| |
|
static ezString | GetBuildDir (const ezCppSettings &cfg) |
| | Returns the CMake build directory path.
|
| |
|
static ezString | GetSolutionPath (const ezCppSettings &cfg) |
| | Returns the full path to the generated solution file.
|
| |
|
static ezStatus | OpenSolution (const ezCppSettings &cfg) |
| | Opens the solution file in the configured IDE.
|
| |
|
static ezStatus | OpenInCodeEditor (const ezStringView &sFileName, ezInt32 iLineNumber) |
| | Attempts to launch the configured code editor with the specified file and line number.
|
| |
|
static ezStringView | CompilerToString (ezCompiler::Enum compiler) |
| |
| static ezCompiler::Enum | GetSdkCompiler () |
| |
|
static ezString | GetSdkCompilerMajorVersion () |
| | Returns the major version number of the compiler used to build the SDK.
|
| |
|
static ezStatus | TestCompiler () |
| | Tests if the currently configured compiler can be invoked successfully.
|
| |
|
static const char * | GetCMakePath () |
| | Returns the path to the CMake executable bundled with the engine.
|
| |
| static ezResult | CheckCMakeCache (const ezCppSettings &cfg) |
| |
| static ModifyResult | CheckCMakeUserPresets (const ezCppSettings &cfg, bool bWriteResult) |
| |
|
static bool | ExistsSolution (const ezCppSettings &cfg) |
| |
|
static bool | ExistsProjectCMakeListsTxt () |
| |
|
static bool | ShouldOverwriteExisting (ezStringView sSrc, ezStringView sDst) |
| | Returns true if sDst doesn't exist yet, or for some file types (e.g. CMakeLists.txt), when they got an update.
|
| |
|
static ezResult | PopulateWithDefaultSources (const ezCppSettings &cfg, ezUInt32 *pNumFilesCopied=nullptr) |
| | Copies default C++ plugin template files to the project's source directory.
|
| |
|
static ezResult | CleanBuildDir (const ezCppSettings &cfg) |
| |
|
static ezResult | RunCMake (const ezCppSettings &cfg) |
| | Runs CMake to generate the build system files.
|
| |
| static ezResult | RunCMakeIfNecessary (const ezCppSettings &cfg) |
| |
|
static ezResult | CompileSolution (const ezCppSettings &cfg) |
| | Compiles the C++ plugin solution using the configured compiler.
|
| |
| static ezResult | BuildCodeIfNecessary (const ezCppSettings &cfg) |
| |
|
static ezVariantDictionary | CreateEmptyCMakeUserPresetsJson (const ezCppSettings &cfg) |
| | Creates a minimal CMakeUserPresets.json structure for the given configuration.
|
| |
| static ModifyResult | ModifyCMakeUserPresetsJson (const ezCppSettings &cfg, ezVariantDictionary &inout_json) |
| |
|
static void | UpdatePluginConfig (const ezCppSettings &cfg) |
| | Writes the plugin configuration header files based on current settings.
|
| |
|
static ezResult | UpdateEnginePluginDependencies () |
| | Writes CMakeEngineExtensions.txt with the selected engine plugins for linking.
|
| |
| static ezResult | EnsureCppPluginReady () |
| |
| static bool | IsBuildRequired () |
| |
|
static void | LoadPreferences () |
| |
|
static ezArrayPtr< const MachineSpecificCompilerPaths > | GetMachineSpecificCompilers () |
| |
| static ezResult | ForceSdkCompatibleCompiler () |
| |
|
template<typename TYPE > |
| static TYPE * | QueryPreferences (const ezDocument *pDocument=nullptr) |
| | Static function to query a preferences object of the given type. If the instance does not exist yet, it is created and the data is restored from file.
|
| |
|
static ezPreferences * | QueryPreferences (const ezRTTI *pRtti, const ezDocument *pDocument=nullptr) |
| | Static function to query a preferences object of the given type. If the instance does not exist yet, it is created and the data is restored from file.
|
| |
|
static void | SaveDocumentPreferences (const ezDocument *pDocument) |
| | Saves all preferences that are tied to the given document.
|
| |
|
static void | ClearDocumentPreferences (const ezDocument *pDocument) |
| | Removes all preferences for the given document. Does not save them. Afterwards the preferences will not appear in the UI any further.
|
| |
|
static void | SaveProjectPreferences () |
| | Saves all project specific preferences.
|
| |
|
static void | ClearProjectPreferences () |
| | Removes all project specific preferences. Does not save them. Afterwards the preferences will not appear in the UI any further.
|
| |
|
static void | SaveApplicationPreferences () |
| | Saves all application specific preferences.
|
| |
|
static void | ClearApplicationPreferences () |
| | Removes all application specific preferences. Does not save them. Afterwards the preferences will not appear in the UI any further.
|
| |
|
static void | GatherAllPreferences (ezDynamicArray< ezPreferences * > &out_allPreferences) |
| |
|
static const ezRTTI * | GetStaticRTTI () |
| |
Manages C++ plugin project generation, compilation, and IDE integration.
Provides functionality to generate CMake projects for C++ game plugins, configure compilers, build solutions, and open code in external editors.