cmMakefileLibraryTargetGenerator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmMakefileLibraryTargetGenerator_h
  11. #define cmMakefileLibraryTargetGenerator_h
  12. #include "cmMakefileTargetGenerator.h"
  13. class cmMakefileLibraryTargetGenerator:
  14. public cmMakefileTargetGenerator
  15. {
  16. public:
  17. cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
  18. virtual ~cmMakefileLibraryTargetGenerator();
  19. /* the main entry point for this class. Writes the Makefiles associated
  20. with this target */
  21. virtual void WriteRuleFiles();
  22. protected:
  23. void WriteObjectLibraryRules();
  24. void WriteStaticLibraryRules();
  25. void WriteSharedLibraryRules(bool relink);
  26. void WriteModuleLibraryRules(bool relink);
  27. void WriteLibraryRules(const std::string& linkRule,
  28. const std::string& extraFlags,
  29. bool relink);
  30. // MacOSX Framework support methods
  31. void WriteFrameworkRules(bool relink);
  32. // Store the computd framework version for OS X Frameworks.
  33. std::string FrameworkVersion;
  34. };
  35. #endif