cmLocalXCodeGenerator.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 cmLocalXCodeGenerator_h
  4. #define cmLocalXCodeGenerator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include <map>
  7. #include <string>
  8. #include "cmLocalGenerator.h"
  9. class cmGeneratorTarget;
  10. class cmGlobalGenerator;
  11. class cmMakefile;
  12. class cmSourceFile;
  13. /** \class cmLocalXCodeGenerator
  14. * \brief Write a local Xcode project
  15. *
  16. * cmLocalXCodeGenerator produces a LocalUnix makefile from its
  17. * member Makefile.
  18. */
  19. class cmLocalXCodeGenerator : public cmLocalGenerator
  20. {
  21. public:
  22. ///! Set cache only and recurse to false by default.
  23. cmLocalXCodeGenerator(cmGlobalGenerator* gg, cmMakefile* mf);
  24. ~cmLocalXCodeGenerator() override;
  25. std::string GetTargetDirectory(
  26. cmGeneratorTarget const* target) const override;
  27. void AppendFlagEscape(std::string& flags,
  28. const std::string& rawFlag) const override;
  29. void Generate() override;
  30. virtual void GenerateInstallRules();
  31. void ComputeObjectFilenames(
  32. std::map<cmSourceFile const*, std::string>& mapping,
  33. cmGeneratorTarget const* gt = nullptr) override;
  34. private:
  35. };
  36. #endif