cmMakefileLibraryTargetGenerator.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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(cmTarget* target);
  18. /* the main entry point for this class. Writes the Makefiles associated
  19. with this target */
  20. virtual void WriteRuleFiles();
  21. protected:
  22. void WriteObjectLibraryRules();
  23. void WriteStaticLibraryRules();
  24. void WriteSharedLibraryRules(bool relink);
  25. void WriteModuleLibraryRules(bool relink);
  26. void WriteLibraryRules(const char *linkRule, const char *extraFlags,
  27. bool relink);
  28. // MacOSX Framework support methods
  29. void WriteFrameworkRules(bool relink);
  30. void CreateFramework(std::string const& targetName);
  31. void CreateCFBundle(std::string& targetName, std::string& outpath);
  32. // Store the computd framework version for OS X Frameworks.
  33. std::string FrameworkVersion;
  34. void AppendOSXVerFlag(std::string& flags, const char* lang,
  35. const char* name, bool so);
  36. };
  37. #endif