| 5394 | } |
| 5395 | |
| 5396 | void cmVisualStudio10TargetGenerator::ClassifyAllConfigSource( |
| 5397 | cmGeneratorTarget::AllConfigSource const& acs) |
| 5398 | { |
| 5399 | switch (acs.Kind) { |
| 5400 | case cmGeneratorTarget::SourceKindResx: { |
| 5401 | // Build and save the name of the corresponding .h file |
| 5402 | // This relationship will be used later when building the project files. |
| 5403 | // Both names would have been auto generated from Visual Studio |
| 5404 | // where the user supplied the file name and Visual Studio |
| 5405 | // appended the suffix. |
| 5406 | std::string resx = acs.Source->ResolveFullPath(); |
| 5407 | std::string hFileName = |
| 5408 | cmStrCat(resx.substr(0, resx.find_last_of('.')), ".h"); |
| 5409 | this->ExpectedResxHeaders.insert(hFileName); |
| 5410 | } break; |
| 5411 | case cmGeneratorTarget::SourceKindXaml: { |
| 5412 | // Build and save the name of the corresponding .h and .cpp file |
| 5413 | // This relationship will be used later when building the project files. |
| 5414 | // Both names would have been auto generated from Visual Studio |
| 5415 | // where the user supplied the file name and Visual Studio |
| 5416 | // appended the suffix. |
| 5417 | std::string xaml = acs.Source->ResolveFullPath(); |
| 5418 | std::string hFileName = cmStrCat(xaml, ".h"); |
| 5419 | std::string cppFileName = cmStrCat(xaml, ".cpp"); |
| 5420 | this->ExpectedXamlHeaders.insert(hFileName); |
| 5421 | this->ExpectedXamlSources.insert(cppFileName); |
| 5422 | } break; |
| 5423 | default: |
| 5424 | break; |
| 5425 | } |
| 5426 | } |
| 5427 | |
| 5428 | bool cmVisualStudio10TargetGenerator::IsResxHeader( |
| 5429 | std::string const& headerFile) |
no test coverage detected