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