cmMakefileLibraryTargetGenerator.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 cmMakefileLibraryTargetGenerator_h
  4. #define cmMakefileLibraryTargetGenerator_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmMakefileTargetGenerator.h"
  7. #include <string>
  8. class cmGeneratorTarget;
  9. class cmMakefileLibraryTargetGenerator : public cmMakefileTargetGenerator
  10. {
  11. public:
  12. cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
  13. ~cmMakefileLibraryTargetGenerator() override;
  14. /* the main entry point for this class. Writes the Makefiles associated
  15. with this target */
  16. void WriteRuleFiles() override;
  17. protected:
  18. void WriteObjectLibraryRules();
  19. void WriteStaticLibraryRules();
  20. void WriteSharedLibraryRules(bool relink);
  21. void WriteModuleLibraryRules(bool relink);
  22. void WriteDeviceLibraryRules(const std::string& linkRule, bool relink);
  23. void WriteLibraryRules(const std::string& linkRule,
  24. const std::string& extraFlags, bool relink);
  25. // MacOSX Framework support methods
  26. void WriteFrameworkRules(bool relink);
  27. // Store the computd framework version for OS X Frameworks.
  28. std::string FrameworkVersion;
  29. private:
  30. std::string DeviceLinkObject;
  31. };
  32. #endif