| 1305 | } |
| 1306 | |
| 1307 | void cmGlobalNinjaGenerator::AppendTargetOutputs( |
| 1308 | cmGeneratorTarget const* target, cmNinjaDeps& outputs, |
| 1309 | std::string const& config, cmNinjaTargetDepends depends) const |
| 1310 | { |
| 1311 | // for frameworks, we want the real name, not sample name |
| 1312 | // frameworks always appear versioned, and the build.ninja |
| 1313 | // will always attempt to manage symbolic links instead |
| 1314 | // of letting cmOSXBundleGenerator do it. |
| 1315 | bool realname = target->IsFrameworkOnApple(); |
| 1316 | |
| 1317 | switch (target->GetType()) { |
| 1318 | case cmStateEnums::SHARED_LIBRARY: |
| 1319 | case cmStateEnums::STATIC_LIBRARY: |
| 1320 | case cmStateEnums::MODULE_LIBRARY: { |
| 1321 | if (depends == DependOnTargetOrdering) { |
| 1322 | outputs.push_back(this->OrderDependsTargetForTarget(target, config)); |
| 1323 | break; |
| 1324 | } |
| 1325 | } |
| 1326 | CM_FALLTHROUGH; |
| 1327 | case cmStateEnums::EXECUTABLE: { |
| 1328 | if (target->IsApple() && target->HasImportLibrary(config)) { |
| 1329 | outputs.push_back(this->ConvertToNinjaPath(target->GetFullPath( |
| 1330 | config, cmStateEnums::ImportLibraryArtifact, realname))); |
| 1331 | } |
| 1332 | outputs.push_back(this->ConvertToNinjaPath(target->GetFullPath( |
| 1333 | config, cmStateEnums::RuntimeBinaryArtifact, realname))); |
| 1334 | break; |
| 1335 | } |
| 1336 | case cmStateEnums::OBJECT_LIBRARY: { |
| 1337 | if (depends == DependOnTargetOrdering) { |
| 1338 | outputs.push_back(this->OrderDependsTargetForTarget(target, config)); |
| 1339 | break; |
| 1340 | } |
| 1341 | } |
| 1342 | CM_FALLTHROUGH; |
| 1343 | case cmStateEnums::GLOBAL_TARGET: |
| 1344 | case cmStateEnums::INTERFACE_LIBRARY: |
| 1345 | case cmStateEnums::UTILITY: { |
| 1346 | std::string path = |
| 1347 | cmStrCat(target->GetLocalGenerator()->GetCurrentBinaryDirectory(), '/', |
| 1348 | target->GetName()); |
| 1349 | std::string output = this->ConvertToNinjaPath(path); |
| 1350 | if (target->Target->IsPerConfig()) { |
| 1351 | output = this->BuildAlias(output, config); |
| 1352 | } |
| 1353 | outputs.push_back(output); |
| 1354 | break; |
| 1355 | } |
| 1356 | |
| 1357 | case cmStateEnums::UNKNOWN_LIBRARY: |
| 1358 | break; |
| 1359 | } |
| 1360 | } |
| 1361 | |
| 1362 | void cmGlobalNinjaGenerator::AppendTargetDepends( |
| 1363 | cmGeneratorTarget const* target, cmNinjaDeps& outputs, |
no test coverage detected