Fixing the enable_gem.py and disable_gem.py commands (#1207)
* Fixing the enable_gem.py and disable_gem.py commands The project path wasn't taking into account when querying for gems, templates and restricted directories registered with the project Fixing the cmake.py add_gem_dependency and remove_gem_dependency methods to properly detect a gem within a `set(ENABLED_GEM ...)` cmake variable Also updated the add_gem_dependency to add the gem right before the end marker of ')' Updated the remove_gem_dependency to remove each instance of a gem with a content that is in between in the `set(ENABLED_GEM ...)` cmake variable * Correct Typo in manifest.get_registered doc string
This commit is contained in:
committed by
GitHub
parent
b26b472bba
commit
217eddc8bd
@@ -57,7 +57,7 @@ namespace O3DE::ProjectManager
|
||||
* @param path the absolute path to the Gem
|
||||
* @return an outcome with GemInfo on success
|
||||
*/
|
||||
virtual AZ::Outcome<GemInfo> GetGemInfo(const QString& path) = 0;
|
||||
virtual AZ::Outcome<GemInfo> GetGemInfo(const QString& path, const QString& projectPath = {}) = 0;
|
||||
|
||||
/**
|
||||
* Get all available gem infos. This concatenates gems registered by the engine and the project.
|
||||
@@ -147,7 +147,7 @@ namespace O3DE::ProjectManager
|
||||
* Get info about all known project templates
|
||||
* @return an outcome with ProjectTemplateInfos on success
|
||||
*/
|
||||
virtual AZ::Outcome<QVector<ProjectTemplateInfo>> GetProjectTemplates() = 0;
|
||||
virtual AZ::Outcome<QVector<ProjectTemplateInfo>> GetProjectTemplates(const QString& projectPath = {}) = 0;
|
||||
};
|
||||
|
||||
using PythonBindingsInterface = AZ::Interface<IPythonBindings>;
|
||||
|
||||
Reference in New Issue
Block a user