2006-07-11 19:41:38 +04:00
|
|
|
/*=========================================================================
|
|
|
|
|
|
|
|
Program: CMake - Cross-Platform Makefile Generator
|
|
|
|
Module: $RCSfile$
|
|
|
|
Language: C++
|
|
|
|
Date: $Date$
|
|
|
|
Version: $Revision$
|
|
|
|
|
|
|
|
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
|
|
|
|
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
|
|
|
|
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
PURPOSE. See the above copyright notices for more information.
|
|
|
|
|
|
|
|
=========================================================================*/
|
|
|
|
#ifndef cmLocalVisualStudioGenerator_h
|
|
|
|
#define cmLocalVisualStudioGenerator_h
|
|
|
|
|
|
|
|
#include "cmLocalGenerator.h"
|
|
|
|
|
2009-06-16 19:44:07 +04:00
|
|
|
#include <cmsys/auto_ptr.hxx>
|
|
|
|
|
2006-07-11 19:41:38 +04:00
|
|
|
class cmSourceFile;
|
|
|
|
class cmSourceGroup;
|
|
|
|
|
|
|
|
/** \class cmLocalVisualStudioGenerator
|
|
|
|
* \brief Base class for Visual Studio generators.
|
|
|
|
*
|
|
|
|
* cmLocalVisualStudioGenerator provides functionality common to all
|
|
|
|
* Visual Studio generators.
|
|
|
|
*/
|
|
|
|
class cmLocalVisualStudioGenerator : public cmLocalGenerator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmLocalVisualStudioGenerator();
|
|
|
|
virtual ~cmLocalVisualStudioGenerator();
|
2006-09-21 23:14:06 +04:00
|
|
|
/** Construct a script from the given list of command lines. */
|
|
|
|
std::string ConstructScript(const cmCustomCommandLines& commandLines,
|
|
|
|
const char* workingDirectory,
|
2007-05-09 16:25:45 +04:00
|
|
|
const char* configName,
|
2006-09-27 21:43:46 +04:00
|
|
|
bool escapeOldStyle,
|
|
|
|
bool escapeAllowMakeVars,
|
2006-09-21 23:14:06 +04:00
|
|
|
const char* newline = "\n");
|
|
|
|
|
2009-06-26 00:41:57 +04:00
|
|
|
protected:
|
|
|
|
|
|
|
|
/** Construct a custom command to make exe import lib dir. */
|
|
|
|
cmsys::auto_ptr<cmCustomCommand>
|
|
|
|
MaybeCreateImplibDir(cmTarget& target, const char* config);
|
|
|
|
|
2006-07-11 19:41:38 +04:00
|
|
|
// Safe object file name generation.
|
|
|
|
void ComputeObjectNameRequirements(std::vector<cmSourceGroup> const&);
|
2006-08-01 18:48:40 +04:00
|
|
|
bool SourceFileCompiles(const cmSourceFile* sf);
|
2007-08-28 01:05:43 +04:00
|
|
|
void CountObjectNames(const std::vector<cmSourceGroup>& groups,
|
|
|
|
std::map<cmStdString, int>& count);
|
|
|
|
void InsertNeedObjectNames(const std::vector<cmSourceGroup>& groups,
|
|
|
|
std::map<cmStdString, int>& count);
|
|
|
|
|
2006-07-11 19:41:38 +04:00
|
|
|
std::set<const cmSourceFile*> NeedObjectName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|