cmMakefileLibraryTargetGenerator.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <cmConfigure.h>
  13. #include "cmMakefileTargetGenerator.h"
  14. #include <string>
  15. class cmGeneratorTarget;
  16. class cmMakefileLibraryTargetGenerator : public cmMakefileTargetGenerator
  17. {
  18. public:
  19. cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
  20. ~cmMakefileLibraryTargetGenerator() CM_OVERRIDE;
  21. /* the main entry point for this class. Writes the Makefiles associated
  22. with this target */
  23. void WriteRuleFiles() CM_OVERRIDE;
  24. protected:
  25. void WriteObjectLibraryRules();
  26. void WriteStaticLibraryRules();
  27. void WriteSharedLibraryRules(bool relink);
  28. void WriteModuleLibraryRules(bool relink);
  29. void WriteLibraryRules(const std::string& linkRule,
  30. const std::string& extraFlags, bool relink);
  31. // MacOSX Framework support methods
  32. void WriteFrameworkRules(bool relink);
  33. // Store the computd framework version for OS X Frameworks.
  34. std::string FrameworkVersion;
  35. };
  36. #endif