Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmLocalVisualStudioGenerator.h
blob0fc164e6caa7cacb0694bfdde40b485138e79329
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmLocalVisualStudioGenerator.h,v $
5 Language: C++
6 Date: $Date: 2007/08/27 21:05:43 $
7 Version: $Revision: 1.8 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmLocalVisualStudioGenerator_h
18 #define cmLocalVisualStudioGenerator_h
20 #include "cmLocalGenerator.h"
22 class cmSourceFile;
23 class cmSourceGroup;
25 /** \class cmLocalVisualStudioGenerator
26 * \brief Base class for Visual Studio generators.
28 * cmLocalVisualStudioGenerator provides functionality common to all
29 * Visual Studio generators.
31 class cmLocalVisualStudioGenerator : public cmLocalGenerator
33 public:
34 cmLocalVisualStudioGenerator();
35 virtual ~cmLocalVisualStudioGenerator();
36 protected:
38 /** Construct a script from the given list of command lines. */
39 std::string ConstructScript(const cmCustomCommandLines& commandLines,
40 const char* workingDirectory,
41 const char* configName,
42 bool escapeOldStyle,
43 bool escapeAllowMakeVars,
44 const char* newline = "\n");
46 // Safe object file name generation.
47 void ComputeObjectNameRequirements(std::vector<cmSourceGroup> const&);
48 bool SourceFileCompiles(const cmSourceFile* sf);
49 void CountObjectNames(const std::vector<cmSourceGroup>& groups,
50 std::map<cmStdString, int>& count);
51 void InsertNeedObjectNames(const std::vector<cmSourceGroup>& groups,
52 std::map<cmStdString, int>& count);
54 std::set<const cmSourceFile*> NeedObjectName;
57 #endif