GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
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

 DependencyMetadata ()
 
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 dependency (what will be used to install it) More...
 
DependencyMetadataSetExtraSetting (const gd::String &settingName, const gd::PropertyDescriptor &settingValue)
 Sets a dependency type specific setting.
 
DependencyMetadataOnlyIfSomeExtraSettingsNonEmpty ()
 Mark the dependency to be included in the export only if at least one of the extra settings is set.
 
bool IsOnlyIfSomeExtraSettingsNonEmpty () const
 Check if at least one of the extra settings must be set for the dependency to be included in the export.
 
DependencyMetadataOnlyIfOtherDependencyIsExported (const gd::String &otherDependency)
 Mark the dependency to be included in the export only if one other dependency is included in the export.
 
const gd::StringGetOtherDependencyThatMustBeExported () const
 Get the name of another dependency that must be exported to have this one also 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
 
void CopyFrom (const DependencyMetadata &dependencyMetadata)
 

Detailed Description

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

Examples
/home/circleci/repo/GDevelop/Core/GDCore/Extensions/Metadata/DependencyMetadata.h.

Constructor & Destructor Documentation

◆ DependencyMetadata()

gd::DependencyMetadata::DependencyMetadata ( )
inline

Construct a new dependency metadata, though you probably want to call AddDependency on gd::PlatformExtension.

See also
gd::PlatformExtension

Member Function Documentation

◆ SetDependencyType()

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

Sets the type of dependency (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: