cmMakefileLibraryTargetGenerator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 WriteStaticLibraryRules();
  23. void WriteSharedLibraryRules(bool relink);
  24. void WriteModuleLibraryRules(bool relink);
  25. void WriteLibraryRules(const char *linkRule, const char *extraFlags,
  26. bool relink);
  27. // MacOSX Framework support methods
  28. void WriteFrameworkRules(bool relink);
  29. void CreateFramework(std::string const& targetName);
  30. void CreateCFBundle(std::string& targetName, std::string& outpath);
  31. // Store the computd framework version for OS X Frameworks.
  32. std::string FrameworkVersion;
  33. void AppendOSXVerFlag(std::string& flags, const char* lang,
  34. const char* name, bool so);
  35. };
  36. #endif