cmMakefileLibraryTargetGenerator.h 1.7 KB

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