1
0

cmCPackNuGetGenerator.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCPackNuGetGenerator_h
  4. #define cmCPackNuGetGenerator_h
  5. #include "cmCPackGenerator.h"
  6. /** \class cmCPackNuGetGenerator
  7. * \brief A generator for RPM packages
  8. */
  9. class cmCPackNuGetGenerator : public cmCPackGenerator
  10. {
  11. public:
  12. cmCPackTypeMacro(cmCPackNuGetGenerator, cmCPackGenerator);
  13. // NOTE In fact, it is possible to have NuGet not only for Windows...
  14. // https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools
  15. static bool CanGenerate() { return true; }
  16. protected:
  17. bool SupportsComponentInstallation() const override;
  18. int PackageFiles() override;
  19. const char* GetOutputExtension() override { return ".nupkg"; }
  20. bool SupportsAbsoluteDestination() const override { return false; }
  21. /**
  22. * The method used to prepare variables when component
  23. * install is used.
  24. */
  25. void SetupGroupComponentVariables(bool ignoreGroup);
  26. /**
  27. * Populate \c packageFileNames vector of built packages.
  28. */
  29. void AddGeneratedPackageNames();
  30. };
  31. #endif