diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-02-21 17:07:36 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2015-02-21 17:07:36 (GMT) |
commit | e6731f486e466ddd58550851fb935dbda7939cac (patch) | |
tree | 1d91fa4fe37496d82738b0837e5d2c3f4da283cc /Source/CPack/WiX/cmCPackWIXGenerator.cxx | |
parent | 279605f560312aab4dfeef4cce1c8c67d4083b4e (diff) | |
download | CMake-e6731f486e466ddd58550851fb935dbda7939cac.zip CMake-e6731f486e466ddd58550851fb935dbda7939cac.tar.gz CMake-e6731f486e466ddd58550851fb935dbda7939cac.tar.bz2 |
CPackWIX: Add new CPACK_STARTUP_SHORTCUTS property.
Diffstat (limited to 'Source/CPack/WiX/cmCPackWIXGenerator.cxx')
-rw-r--r-- | Source/CPack/WiX/cmCPackWIXGenerator.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmCPackWIXGenerator.cxx b/Source/CPack/WiX/cmCPackWIXGenerator.cxx index c6daeda..4b8daf8 100644 --- a/Source/CPack/WiX/cmCPackWIXGenerator.cxx +++ b/Source/CPack/WiX/cmCPackWIXGenerator.cxx @@ -557,6 +557,12 @@ bool cmCPackWIXGenerator::CreateWiXSourceFiles() directoryDefinitions.EmitDesktopFolder(); } + if(emittedShortcutTypes.find(cmWIXShortcuts::STARTUP) != + emittedShortcutTypes.end()) + { + directoryDefinitions.EmitStartupFolder(); + } + directoryDefinitions.EndElement("Directory"); directoryDefinitions.EndElement("Fragment"); @@ -714,6 +720,17 @@ bool cmCPackWIXGenerator::CreateShortcuts( } } + if(!shortcuts.empty(cmWIXShortcuts::STARTUP)) + { + if(!this->CreateShortcutsOfSpecificType(cmWIXShortcuts::STARTUP, + cpackComponentName, featureId, "STARTUP", + shortcuts, false, + fileDefinitions, featureDefinitions)) + { + return false; + } + } + return true; } @@ -736,6 +753,9 @@ bool cmCPackWIXGenerator::CreateShortcutsOfSpecificType( case cmWIXShortcuts::DESKTOP: directoryId = "DesktopFolder"; break; + case cmWIXShortcuts::STARTUP: + directoryId = "StartupFolder"; + break; default: return false; } |