2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2006-02-14 18:36:04 +03:00
|
|
|
#ifndef cmMakefileLibraryTargetGenerator_h
|
|
|
|
#define cmMakefileLibraryTargetGenerator_h
|
|
|
|
|
2016-08-24 01:29:15 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2006-02-14 18:36:04 +03:00
|
|
|
#include "cmMakefileTargetGenerator.h"
|
|
|
|
|
2016-08-24 01:29:15 +03:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class cmGeneratorTarget;
|
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
class cmMakefileLibraryTargetGenerator : public cmMakefileTargetGenerator
|
2006-02-14 18:36:04 +03:00
|
|
|
{
|
|
|
|
public:
|
2012-10-10 23:32:37 +04:00
|
|
|
cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmMakefileLibraryTargetGenerator() CM_OVERRIDE;
|
2006-09-29 00:40:35 +04:00
|
|
|
|
2006-02-14 18:36:04 +03:00
|
|
|
/* the main entry point for this class. Writes the Makefiles associated
|
|
|
|
with this target */
|
2016-06-27 22:25:27 +03:00
|
|
|
void WriteRuleFiles() CM_OVERRIDE;
|
2012-07-07 21:57:40 +04:00
|
|
|
|
2006-02-14 18:36:04 +03:00
|
|
|
protected:
|
2012-03-12 18:54:37 +04:00
|
|
|
void WriteObjectLibraryRules();
|
2006-02-14 18:36:04 +03:00
|
|
|
void WriteStaticLibraryRules();
|
2006-02-16 23:19:00 +03:00
|
|
|
void WriteSharedLibraryRules(bool relink);
|
|
|
|
void WriteModuleLibraryRules(bool relink);
|
2014-02-05 01:06:56 +04:00
|
|
|
void WriteLibraryRules(const std::string& linkRule,
|
2016-05-16 17:34:04 +03:00
|
|
|
const std::string& extraFlags, bool relink);
|
2007-05-08 18:32:54 +04:00
|
|
|
// MacOSX Framework support methods
|
|
|
|
void WriteFrameworkRules(bool relink);
|
2008-02-19 00:38:34 +03:00
|
|
|
|
|
|
|
// Store the computd framework version for OS X Frameworks.
|
|
|
|
std::string FrameworkVersion;
|
2006-02-14 18:36:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|