| 821 | } |
| 822 | |
| 823 | bool cmCPackWIXGenerator::AddComponentsToFeature( |
| 824 | std::string const& rootPath, std::string const& featureId, |
| 825 | cmWIXDirectoriesSourceWriter& directoryDefinitions, |
| 826 | cmWIXFilesSourceWriter& fileDefinitions, |
| 827 | cmWIXFeaturesSourceWriter& featureDefinitions, cmWIXShortcuts& shortcuts, |
| 828 | int diskId) |
| 829 | { |
| 830 | featureDefinitions.BeginElement("FeatureRef"); |
| 831 | featureDefinitions.AddAttribute("Id", featureId); |
| 832 | |
| 833 | cmList cpackPackageExecutablesList; |
| 834 | cmValue cpackPackageExecutables = GetOption("CPACK_PACKAGE_EXECUTABLES"); |
| 835 | if (cpackPackageExecutables) { |
| 836 | cpackPackageExecutablesList.assign(cpackPackageExecutables); |
| 837 | if (cpackPackageExecutablesList.size() % 2 != 0) { |
| 838 | cmCPackLogger( |
| 839 | cmCPackLog::LOG_ERROR, |
| 840 | "CPACK_PACKAGE_EXECUTABLES should contain pairs of <executable> and " |
| 841 | "<text label>." |
| 842 | << std::endl); |
| 843 | return false; |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | cmList cpackPackageDesktopLinksList; |
| 848 | cmValue cpackPackageDesktopLinks = GetOption("CPACK_CREATE_DESKTOP_LINKS"); |
| 849 | if (cpackPackageDesktopLinks) { |
| 850 | cpackPackageDesktopLinksList.assign(cpackPackageDesktopLinks); |
| 851 | } |
| 852 | |
| 853 | AddDirectoryAndFileDefinitions( |
| 854 | rootPath, "INSTALL_ROOT", directoryDefinitions, fileDefinitions, |
| 855 | featureDefinitions, cpackPackageExecutablesList, |
| 856 | cpackPackageDesktopLinksList, shortcuts, diskId); |
| 857 | |
| 858 | featureDefinitions.EndElement("FeatureRef"); |
| 859 | |
| 860 | return true; |
| 861 | } |
| 862 | |
| 863 | bool cmCPackWIXGenerator::CreateShortcuts( |
| 864 | std::string const& cpackComponentName, std::string const& featureId, |
nothing calls this directly
no test coverage detected