2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2006-02-14 18:36:04 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2006-02-14 18:36:04 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
2006-02-14 18:36:04 +03:00
|
|
|
#ifndef cmMakefileLibraryTargetGenerator_h
|
|
|
|
#define cmMakefileLibraryTargetGenerator_h
|
|
|
|
|
|
|
|
#include "cmMakefileTargetGenerator.h"
|
|
|
|
|
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
|