cmGeneratorTarget: Move GetAutoUicOptions from cmTarget.
This commit is contained in:
parent
41abdc17df
commit
12bc571c13
@ -742,6 +742,32 @@ cmGeneratorTarget::UseObjectLibraries(std::vector<std::string>& objs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
void cmGeneratorTarget::GetAutoUicOptions(std::vector<std::string> &result,
|
||||||
|
const std::string& config) const
|
||||||
|
{
|
||||||
|
const char *prop
|
||||||
|
= this->Target->
|
||||||
|
GetLinkInterfaceDependentStringProperty("AUTOUIC_OPTIONS",
|
||||||
|
config);
|
||||||
|
if (!prop)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
cmGeneratorExpression ge;
|
||||||
|
|
||||||
|
cmGeneratorExpressionDAGChecker dagChecker(
|
||||||
|
this->GetName(),
|
||||||
|
"AUTOUIC_OPTIONS", 0, 0);
|
||||||
|
cmSystemTools::ExpandListArgument(ge.Parse(prop)
|
||||||
|
->Evaluate(this->Makefile,
|
||||||
|
config,
|
||||||
|
false,
|
||||||
|
this->Target,
|
||||||
|
&dagChecker),
|
||||||
|
result);
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
class cmTargetTraceDependencies
|
class cmTargetTraceDependencies
|
||||||
{
|
{
|
||||||
|
@ -156,6 +156,9 @@ public:
|
|||||||
SourceFileType Type;
|
SourceFileType Type;
|
||||||
const char* MacFolder; // location inside Mac content folders
|
const char* MacFolder; // location inside Mac content folders
|
||||||
};
|
};
|
||||||
|
void GetAutoUicOptions(std::vector<std::string> &result,
|
||||||
|
const std::string& config) const;
|
||||||
|
|
||||||
|
|
||||||
struct SourceFileFlags
|
struct SourceFileFlags
|
||||||
GetTargetSourceFileFlags(const cmSourceFile* sf) const;
|
GetTargetSourceFileFlags(const cmSourceFile* sf) const;
|
||||||
@ -176,7 +179,6 @@ private:
|
|||||||
struct SourceEntry { std::vector<cmSourceFile*> Depends; };
|
struct SourceEntry { std::vector<cmSourceFile*> Depends; };
|
||||||
typedef std::map<cmSourceFile const*, SourceEntry> SourceEntriesType;
|
typedef std::map<cmSourceFile const*, SourceEntry> SourceEntriesType;
|
||||||
SourceEntriesType SourceEntries;
|
SourceEntriesType SourceEntries;
|
||||||
|
|
||||||
mutable std::map<cmSourceFile const*, std::string> Objects;
|
mutable std::map<cmSourceFile const*, std::string> Objects;
|
||||||
std::set<cmSourceFile const*> ExplicitObjectName;
|
std::set<cmSourceFile const*> ExplicitObjectName;
|
||||||
mutable std::map<std::string, std::vector<std::string> > SystemIncludesCache;
|
mutable std::map<std::string, std::vector<std::string> > SystemIncludesCache;
|
||||||
|
@ -878,8 +878,11 @@ void cmQtAutoGenerators::MergeUicOptions(std::vector<std::string> &opts,
|
|||||||
static void GetUicOpts(cmTarget const* target, const std::string& config,
|
static void GetUicOpts(cmTarget const* target, const std::string& config,
|
||||||
std::string &optString)
|
std::string &optString)
|
||||||
{
|
{
|
||||||
|
cmGeneratorTarget *gtgt = target->GetMakefile()
|
||||||
|
->GetGlobalGenerator()
|
||||||
|
->GetGeneratorTarget(target);
|
||||||
std::vector<std::string> opts;
|
std::vector<std::string> opts;
|
||||||
target->GetAutoUicOptions(opts, config);
|
gtgt->GetAutoUicOptions(opts, config);
|
||||||
optString = cmJoin(opts, ";");
|
optString = cmJoin(opts, ";");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2235,31 +2235,6 @@ static void processCompileOptions(cmTarget const* tgt,
|
|||||||
language);
|
language);
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
|
||||||
void cmTarget::GetAutoUicOptions(std::vector<std::string> &result,
|
|
||||||
const std::string& config) const
|
|
||||||
{
|
|
||||||
const char *prop
|
|
||||||
= this->GetLinkInterfaceDependentStringProperty("AUTOUIC_OPTIONS",
|
|
||||||
config);
|
|
||||||
if (!prop)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
cmGeneratorExpression ge;
|
|
||||||
|
|
||||||
cmGeneratorExpressionDAGChecker dagChecker(
|
|
||||||
this->GetName(),
|
|
||||||
"AUTOUIC_OPTIONS", 0, 0);
|
|
||||||
cmSystemTools::ExpandListArgument(ge.Parse(prop)
|
|
||||||
->Evaluate(this->Makefile,
|
|
||||||
config,
|
|
||||||
false,
|
|
||||||
this,
|
|
||||||
&dagChecker),
|
|
||||||
result);
|
|
||||||
}
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::GetCompileOptions(std::vector<std::string> &result,
|
void cmTarget::GetCompileOptions(std::vector<std::string> &result,
|
||||||
const std::string& config,
|
const std::string& config,
|
||||||
|
@ -571,8 +571,6 @@ public:
|
|||||||
void GetCompileOptions(std::vector<std::string> &result,
|
void GetCompileOptions(std::vector<std::string> &result,
|
||||||
const std::string& config,
|
const std::string& config,
|
||||||
const std::string& language) const;
|
const std::string& language) const;
|
||||||
void GetAutoUicOptions(std::vector<std::string> &result,
|
|
||||||
const std::string& config) const;
|
|
||||||
void GetCompileFeatures(std::vector<std::string> &features,
|
void GetCompileFeatures(std::vector<std::string> &features,
|
||||||
const std::string& config) const;
|
const std::string& config) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user