MCPcopy Index your code
hub / github.com/Kitware/CMake / HasImportLibrary

Method HasImportLibrary

Source/cmGeneratorTarget.cxx:5512–5536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5510}
5511
5512bool cmGeneratorTarget::HasImportLibrary(std::string const& config) const
5513{
5514 bool generate_Stubs = true;
5515 if (this->GetGlobalGenerator()->IsXcode()) {
5516 // take care of CMAKE_XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS variable
5517 // as well as XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS property
5518 if (cmValue propGenStubs =
5519 this->GetProperty("XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS")) {
5520 generate_Stubs = propGenStubs == "YES";
5521 } else if (cmValue varGenStubs = this->Makefile->GetDefinition(
5522 "CMAKE_XCODE_ATTRIBUTE_GENERATE_TEXT_BASED_STUBS")) {
5523 generate_Stubs = varGenStubs == "YES";
5524 }
5525 }
5526
5527 return (this->IsDLLPlatform() &&
5528 (this->GetType() == cmStateEnums::SHARED_LIBRARY ||
5529 this->IsExecutableWithExports()) &&
5530 // Assemblies which have only managed code do not have
5531 // import libraries.
5532 this->GetManagedType(config) != ManagedType::Managed) ||
5533 (this->IsAIX() && this->IsExecutableWithExports()) ||
5534 (this->Makefile->PlatformSupportsAppleTextStubs() &&
5535 this->IsSharedLibraryWithExports() && generate_Stubs);
5536}
5537
5538bool cmGeneratorTarget::NeedImportLibraryName(std::string const& config) const
5539{

Callers 15

HasImplibGNUtoMSMethod · 0.95
NeedImportLibraryNameMethod · 0.95
CreateCustomCommandsMethod · 0.80
CreateBuildSettingsMethod · 0.80
ComputeLinkPathMethod · 0.80
CreateMethod · 0.80
CreateMethod · 0.80
CreateMethod · 0.80
CreateMethod · 0.80

Calls 11

GetGlobalGeneratorMethod · 0.95
GetPropertyMethod · 0.95
IsDLLPlatformMethod · 0.95
GetTypeMethod · 0.95
GetManagedTypeMethod · 0.95
IsAIXMethod · 0.95
IsXcodeMethod · 0.45
GetDefinitionMethod · 0.45

Tested by

no test coverage detected