CREATE_PROJECT: Add ability to remove feature from setup

This commit is contained in:
Michał Janiszewski 2020-05-08 13:10:09 -07:00 committed by Eugene Sandulenko
parent 0de86d6fbf
commit a23b1789db
2 changed files with 49 additions and 4 deletions

View file

@ -200,6 +200,14 @@ StringList getFeatureDefines(const FeatureList &features);
*/
StringList getFeatureLibraries(const FeatureList &features);
/**
* Returns a list of all external library files, according to the
* feature passed.
*
* @param features Feature for the build (this may contain features, which are *not* enabled!)
*/
StringList getFeatureLibraries(const Feature& feature);
/**
* Sets the state of a given feature. This can be used to
* either include or exclude an feature.
@ -326,6 +334,15 @@ int getInstalledMSVC();
*/
std::string getCanonicalLibName(std::string lib);
/**
* Removes given feature from setup.
*
* @param setup The setup to be processed.
* @param feature The feature to be removed
* @return A copy of setup less feature.
*/
BuildSetup removeFeatureFromSetup(BuildSetup setup, const std::string &feature);
namespace CreateProjectTool {
/**