cmLocalGhsMultiGenerator.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <map>
  5. #include <string>
  6. #include "cmLocalGenerator.h"
  7. class cmGeneratorTarget;
  8. class cmGlobalGenerator;
  9. class cmMakefile;
  10. struct cmObjectLocations;
  11. class cmSourceFile;
  12. /** \class cmLocalGhsMultiGenerator
  13. * \brief Write Green Hills MULTI project files.
  14. *
  15. * cmLocalGhsMultiGenerator produces a set of .gpj
  16. * file for each target in its mirrored directory.
  17. */
  18. class cmLocalGhsMultiGenerator : public cmLocalGenerator
  19. {
  20. public:
  21. cmLocalGhsMultiGenerator(cmGlobalGenerator* gg, cmMakefile* mf);
  22. ~cmLocalGhsMultiGenerator() override;
  23. /**
  24. * Generate the makefile for this directory.
  25. */
  26. void Generate() override;
  27. std::string GetTargetDirectory(
  28. cmGeneratorTarget const* target) const override;
  29. void ComputeObjectFilenames(
  30. std::map<cmSourceFile const*, cmObjectLocations>& mapping,
  31. cmGeneratorTarget const* gt = nullptr) override;
  32. };