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"
|
|
|
|
|
2012-07-07 21:57:40 +04:00
|
|
|
class cmMakefileLibraryTargetGenerator:
|
2006-02-14 18:36:04 +03:00
|
|
|
public cmMakefileTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2012-10-10 23:32:37 +04:00
|
|
|
cmMakefileLibraryTargetGenerator(cmGeneratorTarget* target);
|
2012-07-07 21:54:16 +04:00
|
|
|
virtual ~cmMakefileLibraryTargetGenerator();
|
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 */
|
2012-07-07 21:57:40 +04:00
|
|
|
virtual void WriteRuleFiles();
|
|
|
|
|
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,
|
|
|
|
const std::string& extraFlags,
|
2006-02-16 23:19:00 +03:00
|
|
|
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;
|
2008-07-09 18:09:46 +04:00
|
|
|
|
2014-02-04 06:20:56 +04:00
|
|
|
void AppendOSXVerFlag(std::string& flags, const std::string& lang,
|
2008-07-09 18:09:46 +04:00
|
|
|
const char* name, bool so);
|
2006-02-14 18:36:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|