cmWIXFeaturesSourceWriter.h 1.2 KB

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