cmWIXFeaturesSourceWriter.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 cmWIXFeaturesSourceWriter_h
  11. #define cmWIXFeaturesSourceWriter_h
  12. #include "cmWIXPatch.h"
  13. #include "cmWIXSourceWriter.h"
  14. #include <CPack/cmCPackGenerator.h>
  15. /** \class cmWIXFeaturesSourceWriter
  16. * \brief Helper class to generate features.wxs
  17. */
  18. class cmWIXFeaturesSourceWriter : public cmWIXSourceWriter
  19. {
  20. public:
  21. cmWIXFeaturesSourceWriter(cmCPackLog* logger, std::string const& filename,
  22. GuidType componentGuidType);
  23. void CreateCMakePackageRegistryEntry(std::string const& package,
  24. std::string const& upgradeGuid);
  25. void EmitFeatureForComponentGroup(const cmCPackComponentGroup& group,
  26. cmWIXPatch& patch);
  27. void EmitFeatureForComponent(const cmCPackComponent& component,
  28. cmWIXPatch& patch);
  29. void EmitComponentRef(std::string const& id);
  30. };
  31. #endif