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"
|
|
|
|
|
|
|
|
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();
|
|
|
|
protected:
|
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");
|
|
|
|
|
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
|