| 1998 | } |
| 1999 | |
| 2000 | void 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 | |
| 2022 | bool cmGeneratorTarget::IsAIX() const |
| 2023 | { |
no test coverage detected