cmMakefileLibraryTargetGenerator.h 1.3 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 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,
  23. const std::string& extraFlags, bool relink);
  24. void WriteLibraryRules(const std::string& linkRule,
  25. const std::string& extraFlags, bool relink);
  26. // MacOSX Framework support methods
  27. void WriteFrameworkRules(bool relink);
  28. // Store the computd framework version for OS X Frameworks.
  29. std::string FrameworkVersion;
  30. private:
  31. std::string DeviceLinkObject;
  32. };
  33. #endif