cmake/Source/cmVisualStudioGeneratorOptions.h

80 lines
2.6 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
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
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 cmVisualStudioGeneratorOptions_h
#define cmVisualStudioGeneratorOptions_h
2012-02-18 12:40:36 +02:00
#include "cmLocalVisualStudioGenerator.h"
2009-10-04 10:30:41 +03:00
#include "cmIDEOptions.h"
typedef cmIDEFlagTable cmVS7FlagTable;
class cmVisualStudio10TargetGenerator;
//----------------------------------------------------------------------------
class cmVisualStudioGeneratorOptions: public cmIDEOptions
{
public:
// Construct an options table for a given tool.
enum Tool
{
Compiler,
Linker,
FortranCompiler
};
2012-02-18 12:40:36 +02:00
cmVisualStudioGeneratorOptions(cmLocalVisualStudioGenerator* lg,
2009-10-04 10:30:41 +03:00
Tool tool,
cmVS7FlagTable const* table,
cmVS7FlagTable const* extraTable = 0,
cmVisualStudio10TargetGenerator* g = 0);
// Store options from command line flags.
void Parse(const char* flags);
2011-01-16 11:35:12 +01:00
void ParseFinish();
2009-10-04 10:30:41 +03:00
// Fix the ExceptionHandling option to default to off.
void FixExceptionHandlingDefault();
// Store options for verbose builds.
void SetVerboseMakefile(bool verbose);
// Check for specific options.
bool UsingUnicode();
2012-04-19 19:04:21 +03:00
bool UsingSBCS();
2009-10-04 10:30:41 +03:00
bool IsDebug();
// Write options to output.
void OutputPreprocessorDefinitions(std::ostream& fout,
const char* prefix,
2011-02-07 16:37:25 +01:00
const char* suffix,
const char* lang);
2009-10-04 10:30:41 +03:00
void OutputFlagMap(std::ostream& fout, const char* indent);
void OutputAdditionalOptions(std::ostream& fout,
const char* prefix,
const char* suffix);
void SetConfiguration(const char* config);
private:
2012-02-18 12:40:36 +02:00
cmLocalVisualStudioGenerator* LocalGenerator;
cmLocalVisualStudioGenerator::VSVersion Version;
2009-10-04 10:30:41 +03:00
std::string Configuration;
Tool CurrentTool;
cmVisualStudio10TargetGenerator* TargetGenerator;
2011-01-16 11:35:12 +01:00
bool FortranRuntimeDebug;
bool FortranRuntimeDLL;
bool FortranRuntimeMT;
2009-10-04 10:30:41 +03:00
virtual void StoreUnknownFlag(const char* flag);
};
#endif