2015-07-07 23:37:56 +03:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2015 Kitware, Inc., Insight Software Consortium
|
|
|
|
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
|
|
|
#include "cmCommonTargetGenerator.h"
|
|
|
|
|
2015-07-08 23:38:49 +03:00
|
|
|
#include "cmComputeLinkInformation.h"
|
2015-07-08 18:13:11 +03:00
|
|
|
#include "cmGeneratorTarget.h"
|
|
|
|
#include "cmGlobalCommonGenerator.h"
|
|
|
|
#include "cmLocalCommonGenerator.h"
|
2015-07-08 22:24:17 +03:00
|
|
|
#include "cmMakefile.h"
|
2015-07-08 22:52:42 +03:00
|
|
|
#include "cmSourceFile.h"
|
2015-07-08 22:50:25 +03:00
|
|
|
#include "cmSystemTools.h"
|
2015-07-08 18:13:11 +03:00
|
|
|
|
2015-07-29 19:55:58 +03:00
|
|
|
cmCommonTargetGenerator::cmCommonTargetGenerator(
|
|
|
|
cmOutputConverter::RelativeRoot wd,
|
|
|
|
cmGeneratorTarget* gt
|
|
|
|
)
|
|
|
|
: WorkingDirectory(wd)
|
|
|
|
, GeneratorTarget(gt)
|
2015-07-08 18:13:11 +03:00
|
|
|
, Makefile(gt->Makefile)
|
|
|
|
, LocalGenerator(static_cast<cmLocalCommonGenerator*>(gt->LocalGenerator))
|
|
|
|
, GlobalGenerator(static_cast<cmGlobalCommonGenerator*>(
|
|
|
|
gt->LocalGenerator->GetGlobalGenerator()))
|
2015-07-08 22:02:11 +03:00
|
|
|
, ConfigName(LocalGenerator->GetConfigName())
|
2015-07-08 22:24:17 +03:00
|
|
|
, ModuleDefinitionFile(GeneratorTarget->GetModuleDefinitionFile(ConfigName))
|
2015-07-08 22:50:25 +03:00
|
|
|
, FortranModuleDirectoryComputed(false)
|
2015-07-07 23:37:56 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
cmCommonTargetGenerator::~cmCommonTargetGenerator()
|
|
|
|
{
|
|
|
|
}
|
2015-07-08 22:02:11 +03:00
|
|
|
|
|
|
|
std::string const& cmCommonTargetGenerator::GetConfigName() const
|
|
|
|
{
|
|
|
|
return this->ConfigName;
|
|
|
|
}
|
2015-07-08 21:49:04 +03:00
|
|
|
|
2015-07-08 22:49:03 +03:00
|
|
|
std::string cmCommonTargetGenerator::Convert(
|
|
|
|
std::string const& source,
|
|
|
|
cmLocalGenerator::RelativeRoot relative,
|
|
|
|
cmLocalGenerator::OutputFormat output)
|
|
|
|
{
|
|
|
|
return this->LocalGenerator->Convert(source, relative, output);
|
|
|
|
}
|
|
|
|
|
2015-07-08 21:49:04 +03:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
const char* cmCommonTargetGenerator::GetFeature(const std::string& feature)
|
|
|
|
{
|
|
|
|
return this->GeneratorTarget->GetFeature(feature, this->ConfigName);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
bool cmCommonTargetGenerator::GetFeatureAsBool(const std::string& feature)
|
|
|
|
{
|
|
|
|
return this->GeneratorTarget->GetFeatureAsBool(feature, this->ConfigName);
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
void cmCommonTargetGenerator::AddFeatureFlags(
|
|
|
|
std::string& flags, const std::string& lang
|
|
|
|
)
|
|
|
|
{
|
|
|
|
// Add language-specific flags.
|
|
|
|
this->LocalGenerator->AddLanguageFlags(flags, lang, this->ConfigName);
|
|
|
|
|
|
|
|
if(this->GetFeatureAsBool("INTERPROCEDURAL_OPTIMIZATION"))
|
|
|
|
{
|
|
|
|
this->LocalGenerator->AppendFeatureOptions(flags, lang, "IPO");
|
|
|
|
}
|
|
|
|
}
|
2015-07-08 22:24:17 +03:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
void cmCommonTargetGenerator::AddModuleDefinitionFlag(std::string& flags)
|
|
|
|
{
|
2015-11-02 17:24:25 +03:00
|
|
|
if(!this->ModuleDefinitionFile)
|
2015-07-08 22:24:17 +03:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Create a per-language flag variable.
|
|
|
|
const char* defFileFlag =
|
|
|
|
this->Makefile->GetDefinition("CMAKE_LINK_DEF_FILE_FLAG");
|
|
|
|
if(!defFileFlag)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Append the flag and value. Use ConvertToLinkReference to help
|
|
|
|
// vs6's "cl -link" pass it to the linker.
|
|
|
|
std::string flag = defFileFlag;
|
|
|
|
flag += (this->LocalGenerator->ConvertToLinkReference(
|
2015-11-02 17:24:25 +03:00
|
|
|
this->ModuleDefinitionFile->GetFullPath()));
|
2015-07-08 22:24:17 +03:00
|
|
|
this->LocalGenerator->AppendFlags(flags, flag);
|
|
|
|
}
|
2015-07-08 22:50:25 +03:00
|
|
|
|
2015-07-29 20:07:02 +03:00
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
std::string cmCommonTargetGenerator::ComputeFortranModuleDirectory() const
|
|
|
|
{
|
|
|
|
std::string mod_dir;
|
|
|
|
const char* target_mod_dir =
|
2015-10-10 16:51:21 +03:00
|
|
|
this->GeneratorTarget->GetProperty("Fortran_MODULE_DIRECTORY");
|
2015-07-29 20:07:02 +03:00
|
|
|
const char* moddir_flag =
|
|
|
|
this->Makefile->GetDefinition("CMAKE_Fortran_MODDIR_FLAG");
|
|
|
|
if(target_mod_dir && moddir_flag)
|
|
|
|
{
|
|
|
|
// Compute the full path to the module directory.
|
|
|
|
if(cmSystemTools::FileIsFullPath(target_mod_dir))
|
|
|
|
{
|
|
|
|
// Already a full path.
|
|
|
|
mod_dir = target_mod_dir;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
// Interpret relative to the current output directory.
|
2015-10-21 20:59:12 +03:00
|
|
|
mod_dir = this->LocalGenerator->GetCurrentBinaryDirectory();
|
2015-07-29 20:07:02 +03:00
|
|
|
mod_dir += "/";
|
|
|
|
mod_dir += target_mod_dir;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make sure the module output directory exists.
|
|
|
|
cmSystemTools::MakeDirectory(mod_dir);
|
|
|
|
}
|
|
|
|
return mod_dir;
|
|
|
|
}
|
|
|
|
|
2015-07-08 22:50:25 +03:00
|
|
|
//----------------------------------------------------------------------------
|
2015-07-29 18:49:00 +03:00
|
|
|
std::string cmCommonTargetGenerator::GetFortranModuleDirectory()
|
2015-07-08 22:50:25 +03:00
|
|
|
{
|
|
|
|
// Compute the module directory.
|
|
|
|
if(!this->FortranModuleDirectoryComputed)
|
|
|
|
{
|
|
|
|
this->FortranModuleDirectoryComputed = true;
|
2015-07-29 20:07:02 +03:00
|
|
|
this->FortranModuleDirectory = this->ComputeFortranModuleDirectory();
|
2015-07-08 22:50:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Return the computed directory.
|
2015-07-29 18:49:00 +03:00
|
|
|
return this->FortranModuleDirectory;
|
2015-07-08 22:50:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
void cmCommonTargetGenerator::AddFortranFlags(std::string& flags)
|
|
|
|
{
|
|
|
|
// Enable module output if necessary.
|
|
|
|
if(const char* modout_flag =
|
|
|
|
this->Makefile->GetDefinition("CMAKE_Fortran_MODOUT_FLAG"))
|
|
|
|
{
|
|
|
|
this->LocalGenerator->AppendFlags(flags, modout_flag);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add a module output directory flag if necessary.
|
2015-07-29 18:49:00 +03:00
|
|
|
std::string mod_dir = this->GetFortranModuleDirectory();
|
|
|
|
if (!mod_dir.empty())
|
|
|
|
{
|
|
|
|
mod_dir = this->Convert(mod_dir,
|
2015-07-29 19:55:58 +03:00
|
|
|
this->WorkingDirectory,
|
2015-07-29 18:49:00 +03:00
|
|
|
cmLocalGenerator::SHELL);
|
|
|
|
}
|
|
|
|
else
|
2015-07-08 22:50:25 +03:00
|
|
|
{
|
2015-07-29 18:49:00 +03:00
|
|
|
mod_dir =
|
|
|
|
this->Makefile->GetSafeDefinition("CMAKE_Fortran_MODDIR_DEFAULT");
|
2015-07-08 22:50:25 +03:00
|
|
|
}
|
2015-07-29 18:49:00 +03:00
|
|
|
if (!mod_dir.empty())
|
2015-07-08 22:50:25 +03:00
|
|
|
{
|
|
|
|
const char* moddir_flag =
|
|
|
|
this->Makefile->GetRequiredDefinition("CMAKE_Fortran_MODDIR_FLAG");
|
|
|
|
std::string modflag = moddir_flag;
|
2015-07-29 18:49:00 +03:00
|
|
|
modflag += mod_dir;
|
2015-07-08 22:50:25 +03:00
|
|
|
this->LocalGenerator->AppendFlags(flags, modflag);
|
|
|
|
}
|
|
|
|
|
|
|
|
// If there is a separate module path flag then duplicate the
|
|
|
|
// include path with it. This compiler does not search the include
|
|
|
|
// path for modules.
|
|
|
|
if(const char* modpath_flag =
|
|
|
|
this->Makefile->GetDefinition("CMAKE_Fortran_MODPATH_FLAG"))
|
|
|
|
{
|
|
|
|
std::vector<std::string> includes;
|
|
|
|
const std::string& config =
|
|
|
|
this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE");
|
|
|
|
this->LocalGenerator->GetIncludeDirectories(includes,
|
|
|
|
this->GeneratorTarget,
|
|
|
|
"C", config);
|
|
|
|
for(std::vector<std::string>::const_iterator idi = includes.begin();
|
|
|
|
idi != includes.end(); ++idi)
|
|
|
|
{
|
|
|
|
std::string flg = modpath_flag;
|
|
|
|
flg += this->Convert(*idi,
|
|
|
|
cmLocalGenerator::NONE,
|
|
|
|
cmLocalGenerator::SHELL);
|
|
|
|
this->LocalGenerator->AppendFlags(flags, flg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-07-08 22:52:42 +03:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
void
|
|
|
|
cmCommonTargetGenerator
|
|
|
|
::AppendFortranFormatFlags(std::string& flags, cmSourceFile const& source)
|
|
|
|
{
|
|
|
|
const char* srcfmt = source.GetProperty("Fortran_FORMAT");
|
|
|
|
cmLocalGenerator::FortranFormat format =
|
|
|
|
this->LocalGenerator->GetFortranFormat(srcfmt);
|
|
|
|
if(format == cmLocalGenerator::FortranFormatNone)
|
|
|
|
{
|
2015-10-10 16:51:21 +03:00
|
|
|
const char* tgtfmt = this->GeneratorTarget->GetProperty("Fortran_FORMAT");
|
2015-07-08 22:52:42 +03:00
|
|
|
format = this->LocalGenerator->GetFortranFormat(tgtfmt);
|
|
|
|
}
|
|
|
|
const char* var = 0;
|
|
|
|
switch (format)
|
|
|
|
{
|
|
|
|
case cmLocalGenerator::FortranFormatFixed:
|
|
|
|
var = "CMAKE_Fortran_FORMAT_FIXED_FLAG"; break;
|
|
|
|
case cmLocalGenerator::FortranFormatFree:
|
|
|
|
var = "CMAKE_Fortran_FORMAT_FREE_FLAG"; break;
|
|
|
|
default: break;
|
|
|
|
}
|
|
|
|
if(var)
|
|
|
|
{
|
|
|
|
this->LocalGenerator->AppendFlags(
|
|
|
|
flags, this->Makefile->GetDefinition(var));
|
|
|
|
}
|
|
|
|
}
|
2015-07-08 23:38:49 +03:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
std::string cmCommonTargetGenerator::GetFrameworkFlags(std::string const& l)
|
|
|
|
{
|
|
|
|
if(!this->Makefile->IsOn("APPLE"))
|
|
|
|
{
|
|
|
|
return std::string();
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string fwSearchFlagVar = "CMAKE_" + l + "_FRAMEWORK_SEARCH_FLAG";
|
|
|
|
const char* fwSearchFlag =
|
|
|
|
this->Makefile->GetDefinition(fwSearchFlagVar);
|
|
|
|
if(!(fwSearchFlag && *fwSearchFlag))
|
|
|
|
{
|
|
|
|
return std::string();
|
|
|
|
}
|
|
|
|
|
|
|
|
std::set<std::string> emitted;
|
|
|
|
#ifdef __APPLE__ /* don't insert this when crosscompiling e.g. to iphone */
|
|
|
|
emitted.insert("/System/Library/Frameworks");
|
|
|
|
#endif
|
|
|
|
std::vector<std::string> includes;
|
|
|
|
|
|
|
|
const std::string& config =
|
|
|
|
this->Makefile->GetSafeDefinition("CMAKE_BUILD_TYPE");
|
|
|
|
this->LocalGenerator->GetIncludeDirectories(includes,
|
|
|
|
this->GeneratorTarget,
|
|
|
|
"C", config);
|
|
|
|
// check all include directories for frameworks as this
|
|
|
|
// will already have added a -F for the framework
|
|
|
|
for(std::vector<std::string>::iterator i = includes.begin();
|
|
|
|
i != includes.end(); ++i)
|
|
|
|
{
|
2015-10-20 02:01:21 +03:00
|
|
|
if(this->GlobalGenerator->NameResolvesToFramework(*i))
|
2015-07-08 23:38:49 +03:00
|
|
|
{
|
|
|
|
std::string frameworkDir = *i;
|
|
|
|
frameworkDir += "/../";
|
|
|
|
frameworkDir = cmSystemTools::CollapseFullPath(frameworkDir);
|
|
|
|
emitted.insert(frameworkDir);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string flags;
|
|
|
|
const char* cfg = this->LocalGenerator->GetConfigName().c_str();
|
2015-08-04 20:19:42 +03:00
|
|
|
if(cmComputeLinkInformation* cli =
|
|
|
|
this->GeneratorTarget->GetLinkInformation(cfg))
|
2015-07-08 23:38:49 +03:00
|
|
|
{
|
|
|
|
std::vector<std::string> const& frameworks = cli->GetFrameworkPaths();
|
|
|
|
for(std::vector<std::string>::const_iterator i = frameworks.begin();
|
|
|
|
i != frameworks.end(); ++i)
|
|
|
|
{
|
|
|
|
if(emitted.insert(*i).second)
|
|
|
|
{
|
|
|
|
flags += fwSearchFlag;
|
|
|
|
flags += this->LocalGenerator
|
|
|
|
->ConvertToOutputFormat(*i, cmLocalGenerator::SHELL);
|
|
|
|
flags += " ";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return flags;
|
|
|
|
}
|
2015-07-09 17:05:12 +03:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
|
|
std::string cmCommonTargetGenerator::GetFlags(const std::string &l)
|
|
|
|
{
|
|
|
|
ByLanguageMap::iterator i = this->FlagsByLanguage.find(l);
|
|
|
|
if (i == this->FlagsByLanguage.end())
|
|
|
|
{
|
|
|
|
std::string flags;
|
|
|
|
const char *lang = l.c_str();
|
|
|
|
|
|
|
|
// Add language feature flags.
|
|
|
|
this->AddFeatureFlags(flags, lang);
|
|
|
|
|
|
|
|
this->LocalGenerator->AddArchitectureFlags(flags, this->GeneratorTarget,
|
|
|
|
lang, this->ConfigName);
|
|
|
|
|
|
|
|
// Fortran-specific flags computed for this target.
|
|
|
|
if(l == "Fortran")
|
|
|
|
{
|
|
|
|
this->AddFortranFlags(flags);
|
|
|
|
}
|
|
|
|
|
2015-10-09 23:19:57 +03:00
|
|
|
this->LocalGenerator->AddCMP0018Flags(flags, this->GeneratorTarget,
|
2015-07-09 17:05:12 +03:00
|
|
|
lang, this->ConfigName);
|
|
|
|
|
2015-10-09 23:19:57 +03:00
|
|
|
this->LocalGenerator->AddVisibilityPresetFlags(flags,
|
|
|
|
this->GeneratorTarget,
|
2015-07-09 17:05:12 +03:00
|
|
|
lang);
|
|
|
|
|
|
|
|
// Append old-style preprocessor definition flags.
|
|
|
|
this->LocalGenerator->
|
|
|
|
AppendFlags(flags, this->Makefile->GetDefineFlags());
|
|
|
|
|
|
|
|
// Add framework directory flags.
|
|
|
|
this->LocalGenerator->
|
|
|
|
AppendFlags(flags,this->GetFrameworkFlags(l));
|
|
|
|
|
|
|
|
// Add target-specific flags.
|
2015-10-09 23:19:57 +03:00
|
|
|
this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
|
2015-07-09 17:05:12 +03:00
|
|
|
lang, this->ConfigName);
|
|
|
|
|
|
|
|
ByLanguageMap::value_type entry(l, flags);
|
|
|
|
i = this->FlagsByLanguage.insert(entry).first;
|
|
|
|
}
|
|
|
|
return i->second;
|
|
|
|
}
|
2015-07-09 17:10:25 +03:00
|
|
|
|
|
|
|
std::string cmCommonTargetGenerator::GetDefines(const std::string &l)
|
|
|
|
{
|
|
|
|
ByLanguageMap::iterator i = this->DefinesByLanguage.find(l);
|
|
|
|
if (i == this->DefinesByLanguage.end())
|
|
|
|
{
|
|
|
|
std::set<std::string> defines;
|
|
|
|
const char *lang = l.c_str();
|
|
|
|
// Add the export symbol definition for shared library objects.
|
2015-10-19 23:42:01 +03:00
|
|
|
if(const char* exportMacro =
|
|
|
|
this->GeneratorTarget->GetExportMacro())
|
2015-07-09 17:10:25 +03:00
|
|
|
{
|
|
|
|
this->LocalGenerator->AppendDefines(defines, exportMacro);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add preprocessor definitions for this target and configuration.
|
2015-10-09 23:19:57 +03:00
|
|
|
this->LocalGenerator->AddCompileDefinitions(defines, this->GeneratorTarget,
|
2015-07-09 17:10:25 +03:00
|
|
|
this->LocalGenerator->GetConfigName(), l);
|
|
|
|
|
|
|
|
std::string definesString;
|
|
|
|
this->LocalGenerator->JoinDefines(defines, definesString, lang);
|
|
|
|
|
|
|
|
ByLanguageMap::value_type entry(l, definesString);
|
|
|
|
i = this->DefinesByLanguage.insert(entry).first;
|
|
|
|
}
|
|
|
|
return i->second;
|
|
|
|
}
|
2015-07-13 17:35:04 +03:00
|
|
|
|
|
|
|
std::string cmCommonTargetGenerator::GetIncludes(std::string const& l)
|
|
|
|
{
|
|
|
|
ByLanguageMap::iterator i = this->IncludesByLanguage.find(l);
|
|
|
|
if (i == this->IncludesByLanguage.end())
|
|
|
|
{
|
|
|
|
std::string includes;
|
|
|
|
this->AddIncludeFlags(includes, l);
|
|
|
|
ByLanguageMap::value_type entry(l, includes);
|
|
|
|
i = this->IncludesByLanguage.insert(entry).first;
|
|
|
|
}
|
|
|
|
return i->second;
|
|
|
|
}
|
2015-07-28 21:05:34 +03:00
|
|
|
|
|
|
|
std::vector<std::string>
|
|
|
|
cmCommonTargetGenerator::GetLinkedTargetDirectories() const
|
|
|
|
{
|
|
|
|
std::vector<std::string> dirs;
|
2015-10-08 02:37:30 +03:00
|
|
|
std::set<cmGeneratorTarget const*> emitted;
|
2015-07-28 21:05:34 +03:00
|
|
|
if (cmComputeLinkInformation* cli =
|
2015-08-04 20:19:42 +03:00
|
|
|
this->GeneratorTarget->GetLinkInformation(this->ConfigName))
|
2015-07-28 21:05:34 +03:00
|
|
|
{
|
|
|
|
cmComputeLinkInformation::ItemVector const& items = cli->GetItems();
|
|
|
|
for(cmComputeLinkInformation::ItemVector::const_iterator
|
|
|
|
i = items.begin(); i != items.end(); ++i)
|
|
|
|
{
|
2015-10-08 01:49:38 +03:00
|
|
|
cmGeneratorTarget const* linkee = i->Target;
|
2015-07-28 21:05:34 +03:00
|
|
|
if(linkee && !linkee->IsImported()
|
|
|
|
// We can ignore the INTERFACE_LIBRARY items because
|
|
|
|
// Target->GetLinkInformation already processed their
|
|
|
|
// link interface and they don't have any output themselves.
|
2015-10-08 01:21:51 +03:00
|
|
|
&& linkee->GetType() != cmState::INTERFACE_LIBRARY
|
2015-10-08 02:37:30 +03:00
|
|
|
&& emitted.insert(linkee).second)
|
2015-07-28 21:05:34 +03:00
|
|
|
{
|
2015-10-08 01:49:38 +03:00
|
|
|
cmLocalGenerator* lg = linkee->GetLocalGenerator();
|
2015-10-16 20:19:49 +03:00
|
|
|
std::string di = lg->GetCurrentBinaryDirectory();
|
2015-07-28 21:05:34 +03:00
|
|
|
di += "/";
|
2015-10-09 23:27:46 +03:00
|
|
|
di += lg->GetTargetDirectory(linkee);
|
2015-07-28 21:05:34 +03:00
|
|
|
dirs.push_back(di);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dirs;
|
|
|
|
}
|
2015-09-16 17:24:16 +03:00
|
|
|
|
|
|
|
std::string cmCommonTargetGenerator::GetManifests()
|
|
|
|
{
|
|
|
|
std::vector<cmSourceFile const*> manifest_srcs;
|
|
|
|
this->GeneratorTarget->GetManifests(manifest_srcs, this->ConfigName);
|
|
|
|
|
|
|
|
std::vector<std::string> manifests;
|
|
|
|
for (std::vector<cmSourceFile const*>::iterator mi = manifest_srcs.begin();
|
|
|
|
mi != manifest_srcs.end(); ++mi)
|
|
|
|
{
|
|
|
|
manifests.push_back(this->Convert((*mi)->GetFullPath(),
|
|
|
|
this->WorkingDirectory,
|
|
|
|
cmOutputConverter::SHELL));
|
|
|
|
}
|
|
|
|
|
|
|
|
return cmJoin(manifests, " ");
|
|
|
|
}
|