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"
|
|
|
|
|
|
|
|
class cmMakefileLibraryTargetGenerator:
|
|
|
|
public cmMakefileTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2008-02-19 00:38:34 +03:00
|
|
|
cmMakefileLibraryTargetGenerator(cmTarget* target);
|
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 */
|
|
|
|
virtual void WriteRuleFiles();
|
|
|
|
|
|
|
|
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);
|
|
|
|
void WriteLibraryRules(const char *linkRule, const char *extraFlags,
|
|
|
|
bool relink);
|
2007-05-08 18:32:54 +04:00
|
|
|
// MacOSX Framework support methods
|
|
|
|
void WriteFrameworkRules(bool relink);
|
2008-09-02 20:06:32 +04:00
|
|
|
void CreateFramework(std::string const& targetName);
|
2010-10-07 06:43:04 +04:00
|
|
|
void CreateCFBundle(std::string& targetName, std::string& outpath);
|
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
|
|
|
|
|
|
|
void AppendOSXVerFlag(std::string& flags, const char* lang,
|
|
|
|
const char* name, bool so);
|
2006-02-14 18:36:04 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|