cmWIXFeaturesSourceWriter.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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, std::string const& filename);
  21. void CreateCMakePackageRegistryEntry(std::string const& package,
  22. std::string const& upgradeGuid);
  23. void EmitFeatureForComponentGroup(const cmCPackComponentGroup& group);
  24. void EmitFeatureForComponent(const cmCPackComponent& component);
  25. void EmitComponentRef(std::string const& id);
  26. };
  27. #endif