GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
gd::DependencyMetadata Class Reference

Contains information about a dependency (library, npm/cordova package, or other according to the export) of an extension. More...

#include <DependencyMetadata.h>

Public Member Functions

DependencyMetadataSetName (const gd::String &name_)
 Sets the name shown to users.
 
DependencyMetadataSetExportName (const gd::String &exportName_)
 
DependencyMetadataSetVersion (const gd::String &version_)
 Set the version of the dependency to install. Use an empty string to use the latest version.
 
DependencyMetadataSetDependencyType (const gd::String &dependencyType_)
 Sets the type of dependecy (what will be used to install it) More...
 
DependencyMetadataSetExtraSetting (const gd::String &settingName, const gd::PropertyDescriptor &settingValue)
 Sets a dependency type specific setting.
 
DependencyMetadataOnlyIfExtraSettingIsNonEmpty (const gd::String &settingName)
 Mark the dependency to be included in the export only if the specified setting is not empty. More...
 
const std::set< gd::String > & GetRequiredExtraSettingsForExport () const
 Get the list of extra settings that must be fulfilled for the dependency to be exported.
 
const gd::StringGetName () const
 
const gd::StringGetExportName () const
 
const gd::StringGetVersion () const
 
const gd::StringGetDependencyType () const
 
const std::map< gd::String,
gd::PropertyDescriptor > & 
GetAllExtraSettings () const
 

Detailed Description

Contains information about a dependency (library, npm/cordova package, or other according to the export) of an extension.

Examples:
/root/repo/GDevelop/Core/GDCore/Extensions/Metadata/DependencyMetadata.h.

Member Function Documentation

DependencyMetadata& gd::DependencyMetadata::OnlyIfExtraSettingIsNonEmpty ( const gd::String settingName)
inline

Mark the dependency to be included in the export only if the specified setting is not empty.

If this is called for multiple settings, all settings must be fulfilled for the dependency to be exported.

DependencyMetadata& gd::DependencyMetadata::SetDependencyType ( const gd::String dependencyType_)
inline

Sets the type of dependecy (what will be used to install it)

This can either be "npm" or "cordova" for now.


The documentation for this class was generated from the following file: