Add support for specifying target for dependencies
- Use <dependency target="target"> to specify which target the dependency should be compiled for. - Fix binary not being removed when doing makegen clean
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "ConfigUtils.h"
|
||||
#include "Dependency.h"
|
||||
#include "FlagData.h"
|
||||
#include "xml/XMLObject.h"
|
||||
|
||||
@@ -23,6 +24,8 @@ private:
|
||||
std::string configPath;
|
||||
std::vector<ConfigFile> dependencyConfigs;
|
||||
|
||||
std::vector<Dependency> dependencies;
|
||||
|
||||
bool hasInitError = false;
|
||||
|
||||
public:
|
||||
@@ -37,6 +40,7 @@ public:
|
||||
bool GetSettingBool(ConfigSetting setting);
|
||||
std::vector<std::string>& GetSettingVectorString(ConfigSetting setting);
|
||||
std::vector<std::string> GetSetting(ConfigSetting setting);
|
||||
const std::vector<Dependency>& GetDependencies() const;
|
||||
|
||||
bool SetSettingString(ConfigSetting setting, const std::string& value);
|
||||
bool AddSettingVectorString(ConfigSetting setting, const std::string& value);
|
||||
@@ -48,6 +52,7 @@ public:
|
||||
|
||||
private:
|
||||
void Init(const FlagData& flagData);
|
||||
void InitDependencies();
|
||||
|
||||
public:
|
||||
static ConfigFile Gen(const FlagData& flagData);
|
||||
|
||||
Reference in New Issue
Block a user