6 #ifndef DEPENDENCYMETADATA_H
7 #define DEPENDENCYMETADATA_H
11 #include "GDCore/Project/PropertyDescriptor.h"
12 #include "GDCore/String.h"
13 #include "GDCore/Tools/Log.h"
51 exportName = exportName_;
70 dependencyType = dependencyType_;
71 if (dependencyType !=
"npm" && dependencyType !=
"cordova") {
83 extraData[settingName] = settingValue;
92 onlyIfSomeExtraSettingsNonEmpty =
true;
101 return onlyIfSomeExtraSettingsNonEmpty;
110 onlyIfOtherDependencyIsExported = otherDependency;
119 return onlyIfOtherDependencyIsExported;
122 const gd::String& GetName()
const {
return name; };
123 const gd::String& GetExportName()
const {
return exportName; };
124 const gd::String& GetVersion()
const {
return version; };
126 if (dependencyType ==
"")
128 return dependencyType;
131 const std::map<gd::String, gd::PropertyDescriptor>& GetAllExtraSettings()
136 void CopyFrom(
const DependencyMetadata& dependencyMetadata) {
137 *
this = dependencyMetadata;
146 std::map<gd::String, gd::PropertyDescriptor>
149 bool onlyIfSomeExtraSettingsNonEmpty;
Used to describe a property shown in a property grid.
Definition: PropertyDescriptor.h:25
String represents an UTF8 encoded string.
Definition: String.h:33
Definition: CommonTools.h:24
void GD_CORE_API LogWarning(const gd::String &msg)
Standard function that should be used when emitting a warning to be displayed to the user.
Definition: Log.cpp:11