| 776 | } |
| 777 | |
| 778 | cm::string_view cmGlobalVisualStudioGenerator::ExternalProjectTypeId( |
| 779 | std::string const& path) |
| 780 | { |
| 781 | using namespace cm::VS; |
| 782 | std::string const extension = cmSystemTools::GetFilenameLastExtension(path); |
| 783 | if (extension == ".vfproj"_s) { |
| 784 | return Solution::Project::TypeIdFortran; |
| 785 | } |
| 786 | if (extension == ".vbproj"_s) { |
| 787 | return Solution::Project::TypeIdVisualBasic; |
| 788 | } |
| 789 | if (extension == ".csproj"_s) { |
| 790 | return Solution::Project::TypeIdCSharp; |
| 791 | } |
| 792 | if (extension == ".fsproj"_s) { |
| 793 | return Solution::Project::TypeIdFSharp; |
| 794 | } |
| 795 | if (extension == ".vdproj"_s) { |
| 796 | return Solution::Project::TypeIdVDProj; |
| 797 | } |
| 798 | if (extension == ".dbproj"_s) { |
| 799 | return Solution::Project::TypeIdDatabase; |
| 800 | } |
| 801 | if (extension == ".njsproj"_s) { |
| 802 | return Solution::Project::TypeIdNodeJS; |
| 803 | } |
| 804 | if (extension == ".wapproj"_s) { |
| 805 | return Solution::Project::TypeIdWinAppPkg; |
| 806 | } |
| 807 | if (extension == ".wixproj"_s) { |
| 808 | return Solution::Project::TypeIdWiX; |
| 809 | } |
| 810 | if (extension == ".pyproj"_s) { |
| 811 | return Solution::Project::TypeIdPython; |
| 812 | } |
| 813 | return Solution::Project::TypeIdDefault; |
| 814 | } |
| 815 | |
| 816 | bool cmGlobalVisualStudioGenerator::IsDependedOn( |
| 817 | TargetDependSet const& projectTargets, cmGeneratorTarget const* gtIn) const |