cmWIXDirectoriesSourceWriter.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2014 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmWIXDirectoriesSourceWriter_h
  11. #define cmWIXDirectoriesSourceWriter_h
  12. #include "cmWIXSourceWriter.h"
  13. #include <CPack/cmCPackGenerator.h>
  14. #include <string>
  15. /** \class cmWIXDirectoriesSourceWriter
  16. * \brief Helper class to generate directories.wxs
  17. */
  18. class cmWIXDirectoriesSourceWriter : public cmWIXSourceWriter
  19. {
  20. public:
  21. cmWIXDirectoriesSourceWriter(cmCPackLog* logger,
  22. std::string const& filename);
  23. void EmitStartMenuFolder(std::string const& startMenuFolder);
  24. void EmitDesktopFolder();
  25. void EmitStartupFolder();
  26. size_t BeginInstallationPrefixDirectory(
  27. std::string const& programFilesFolderId,
  28. std::string const& installRootString);
  29. void EndInstallationPrefixDirectory(size_t size);
  30. };
  31. #endif