cmake/Source/cmCustomCommandGenerator.h

49 lines
1.7 KiB
C
Raw Normal View History

2011-01-16 11:35:12 +01:00
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2000-2010 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 cmCustomCommandGenerator_h
#define cmCustomCommandGenerator_h
#include "cmStandardIncludes.h"
class cmCustomCommand;
class cmLocalGenerator;
class cmGeneratorExpression;
class cmCustomCommandGenerator
{
cmCustomCommand const& CC;
2015-04-27 22:25:09 +02:00
std::string Config;
2011-01-16 11:35:12 +01:00
cmLocalGenerator* LG;
bool OldStyle;
bool MakeVars;
cmGeneratorExpression* GE;
2015-04-27 22:25:09 +02:00
mutable bool DependsDone;
mutable std::vector<std::string> Depends;
2016-07-09 11:21:54 +02:00
2011-01-16 11:35:12 +01:00
public:
2015-04-27 22:25:09 +02:00
cmCustomCommandGenerator(cmCustomCommand const& cc,
2016-07-09 11:21:54 +02:00
const std::string& config, cmLocalGenerator* lg);
2011-01-16 11:35:12 +01:00
~cmCustomCommandGenerator();
2015-04-27 22:25:09 +02:00
cmCustomCommand const& GetCC() const { return this->CC; }
2011-01-16 11:35:12 +01:00
unsigned int GetNumberOfCommands() const;
std::string GetCommand(unsigned int c) const;
2016-07-09 11:21:54 +02:00
bool UseCrossCompilingEmulator(unsigned int c) const;
2011-01-16 11:35:12 +01:00
void AppendArguments(unsigned int c, std::string& cmd) const;
2015-04-27 22:25:09 +02:00
const char* GetComment() const;
std::string GetWorkingDirectory() const;
std::vector<std::string> const& GetOutputs() const;
std::vector<std::string> const& GetByproducts() const;
std::vector<std::string> const& GetDepends() const;
2011-01-16 11:35:12 +01:00
};
#endif