MCPcopy Create free account
hub / github.com/Kitware/CMake / ComputeModuleDefinitionInfo

Method ComputeModuleDefinitionInfo

Source/cmGeneratorTarget.cxx:2000–2020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1998}
1999
2000void cmGeneratorTarget::ComputeModuleDefinitionInfo(
2001 std::string const& config, ModuleDefinitionInfo& info) const
2002{
2003 this->GetModuleDefinitionSources(info.Sources, config);
2004 info.WindowsExportAllSymbols =
2005 this->Makefile->IsOn("CMAKE_SUPPORT_WINDOWS_EXPORT_ALL_SYMBOLS") &&
2006 this->GetPropertyAsBool("WINDOWS_EXPORT_ALL_SYMBOLS");
2007#if !defined(CMAKE_BOOTSTRAP)
2008 info.DefFileGenerated =
2009 info.WindowsExportAllSymbols || info.Sources.size() > 1;
2010#else
2011 // Our __create_def helper is not available during CMake bootstrap.
2012 info.DefFileGenerated = false;
2013#endif
2014 if (info.DefFileGenerated) {
2015 info.DefFile =
2016 this->GetObjectDirectory(config) /* has slash */ + "exports.def";
2017 } else if (!info.Sources.empty()) {
2018 info.DefFile = info.Sources.front()->GetFullPath();
2019 }
2020}
2021
2022bool cmGeneratorTarget::IsAIX() const
2023{

Callers 1

Calls 8

GetPropertyAsBoolMethod · 0.95
GetObjectDirectoryMethod · 0.95
IsOnMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45
GetFullPathMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected