| 274 | } |
| 275 | |
| 276 | cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator( |
| 277 | cmGeneratorTarget* target, cmGlobalVisualStudio10Generator* gg) |
| 278 | : GeneratorTarget(target) |
| 279 | , Makefile(target->Target->GetMakefile()) |
| 280 | , Platform(gg->GetPlatformName()) |
| 281 | , Name(target->GetName()) |
| 282 | , GUID(gg->GetGUID(this->Name)) |
| 283 | , GlobalGenerator(gg) |
| 284 | , LocalGenerator( |
| 285 | (cmLocalVisualStudio10Generator*)target->GetLocalGenerator()) |
| 286 | { |
| 287 | this->Configurations = |
| 288 | this->Makefile->GetGeneratorConfigs(cmMakefile::ExcludeEmptyConfig); |
| 289 | this->NsightTegra = gg->IsNsightTegra(); |
| 290 | this->Android = gg->TargetsAndroid(); |
| 291 | this->WindowsKernelMode = gg->TargetsWindowsKernelModeDriver(); |
| 292 | auto scanProp = target->GetProperty("CXX_SCAN_FOR_MODULES"); |
| 293 | for (auto const& config : this->Configurations) { |
| 294 | if (scanProp.IsSet()) { |
| 295 | this->ScanSourceForModuleDependencies[config] = scanProp.IsOn(); |
| 296 | } else { |
| 297 | this->ScanSourceForModuleDependencies[config] = |
| 298 | target->NeedCxxDyndep(config) == |
| 299 | cmGeneratorTarget::CxxModuleSupport::Enabled; |
| 300 | } |
| 301 | } |
| 302 | for (unsigned int& version : this->NsightTegraVersion) { |
| 303 | version = 0; |
| 304 | } |
| 305 | sscanf(gg->GetNsightTegraVersion().c_str(), "%u.%u.%u.%u", |
| 306 | &this->NsightTegraVersion[0], &this->NsightTegraVersion[1], |
| 307 | &this->NsightTegraVersion[2], &this->NsightTegraVersion[3]); |
| 308 | this->MSTools = !this->NsightTegra && !this->Android; |
| 309 | this->DefaultArtifactDir = this->GeneratorTarget->GetSupportDirectory(); |
| 310 | this->InSourceBuild = (this->Makefile->GetCurrentSourceDirectory() == |
| 311 | this->Makefile->GetCurrentBinaryDirectory()); |
| 312 | this->ClassifyAllConfigSources(); |
| 313 | } |
| 314 | |
| 315 | cmVisualStudio10TargetGenerator::~cmVisualStudio10TargetGenerator() = default; |
| 316 |
nothing calls this directly
no test coverage detected