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();
|
2007-02-17 00:12:17 +03:00
|
|
|
/** Return the directories into which object files will be put.
|
|
|
|
* There maybe more than one for fat binary systems like OSX.
|
|
|
|
*/
|
2006-07-11 19:41:38 +04:00
|
|
|
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);
|
2006-07-11 19:41:38 +04:00
|
|
|
std::set<const cmSourceFile*> NeedObjectName;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|