cmake/Source/cmLocalVisualStudioGenerator.h

68 lines
2.3 KiB
C
Raw Normal View History

2009-10-04 10:30:41 +03:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
2009-10-04 10:30:41 +03:00
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
2009-10-04 10:30:41 +03: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.
============================================================================*/
#ifndef cmLocalVisualStudioGenerator_h
#define cmLocalVisualStudioGenerator_h
#include "cmLocalGenerator.h"
2015-08-17 11:37:30 +02:00
#include "cmGlobalVisualStudioGenerator.h"
2009-10-04 10:30:41 +03:00
#include <cmsys/auto_ptr.hxx>
class cmSourceFile;
class cmSourceGroup;
2011-01-16 11:35:12 +01:00
class cmCustomCommand;
2015-04-27 22:25:09 +02:00
class cmCustomCommandGenerator;
/** \class cmLocalVisualStudioGenerator
* \brief Base class for Visual Studio generators.
*
* cmLocalVisualStudioGenerator provides functionality common to all
* Visual Studio generators.
*/
class cmLocalVisualStudioGenerator : public cmLocalGenerator
{
public:
2015-11-17 17:22:37 +01:00
cmLocalVisualStudioGenerator(cmGlobalGenerator* gg, cmMakefile* mf);
virtual ~cmLocalVisualStudioGenerator();
2011-01-16 11:35:12 +01:00
/** Construct a script from the given list of command lines. */
2015-04-27 22:25:09 +02:00
std::string ConstructScript(cmCustomCommandGenerator const& ccg,
const std::string& newline = "\n");
2011-06-19 15:41:06 +03:00
/** Label to which to jump in a batch file after a failed step in a
sequence of custom commands. */
const char* GetReportErrorLabel() const;
2011-01-16 11:35:12 +01:00
2015-08-17 11:37:30 +02:00
cmGlobalVisualStudioGenerator::VSVersion GetVersion() const;
2012-02-18 12:40:36 +02:00
2016-03-13 13:35:51 +01:00
virtual std::string
ComputeLongestObjectDirectory(cmGeneratorTarget const*) const = 0;
2012-04-19 19:04:21 +03:00
virtual void AddCMakeListsRules() = 0;
2015-04-27 22:25:09 +02:00
virtual void ComputeObjectFilenames(
std::map<cmSourceFile const*, std::string>& mapping,
cmGeneratorTarget const* = 0);
2009-10-04 10:30:41 +03:00
protected:
2011-06-19 15:41:06 +03:00
virtual const char* ReportErrorLabel() const;
virtual bool CustomCommandUseLocal() const { return false; }
2009-10-04 10:30:41 +03:00
/** Construct a custom command to make exe import lib dir. */
cmsys::auto_ptr<cmCustomCommand>
2016-03-13 13:35:51 +01:00
MaybeCreateImplibDir(cmGeneratorTarget *target,
const std::string& config,
2015-04-27 22:25:09 +02:00
bool isFortran);
};
#endif