2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2001-11-27 06:40:31 +03:00
|
|
|
#ifndef cmFLTKWrapUICommand_h
|
|
|
|
#define cmFLTKWrapUICommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
|
|
|
/** \class cmFLTKWrapUICommand
|
|
|
|
* \brief Create .h and .cxx files rules for FLTK user interfaces files
|
|
|
|
*
|
2006-03-10 21:54:57 +03:00
|
|
|
* cmFLTKWrapUICommand is used to create wrappers for FLTK classes into
|
|
|
|
* normal C++
|
2001-11-27 06:40:31 +03:00
|
|
|
*/
|
|
|
|
class cmFLTKWrapUICommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
2005-06-16 22:05:22 +04:00
|
|
|
cmTypeMacro(cmFLTKWrapUICommand, cmCommand);
|
|
|
|
|
2001-11-27 06:40:31 +03:00
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
cmCommand* Clone() CM_OVERRIDE { return new cmFLTKWrapUICommand; }
|
2001-11-27 06:40:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus& status) CM_OVERRIDE;
|
2012-08-13 21:42:58 +04:00
|
|
|
|
2001-11-27 06:40:31 +03:00
|
|
|
/**
|
|
|
|
* This is called at the end after all the information
|
|
|
|
* specified by the command is accumulated. Most commands do
|
|
|
|
* not implement this method. At this point, reading and
|
|
|
|
* writing to the cache can be done.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
void FinalPass() CM_OVERRIDE;
|
|
|
|
bool HasFinalPass() const CM_OVERRIDE { return true; }
|
2001-11-27 06:40:31 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
std::string GetName() const CM_OVERRIDE { return "fltk_wrap_ui"; }
|
2001-11-27 06:40:31 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
/**
|
|
|
|
* List of produced files.
|
|
|
|
*/
|
2016-05-16 17:34:04 +03:00
|
|
|
std::vector<cmSourceFile*> GeneratedSourcesClasses;
|
2003-07-14 17:31:29 +04:00
|
|
|
|
2001-11-27 06:40:31 +03:00
|
|
|
/**
|
2012-08-13 21:42:58 +04:00
|
|
|
* List of Fluid files that provide the source
|
2001-11-28 22:44:10 +03:00
|
|
|
* generating .cxx and .h files
|
2001-11-27 06:40:31 +03:00
|
|
|
*/
|
2006-03-15 19:02:08 +03:00
|
|
|
std::string Target;
|
2001-11-27 06:40:31 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|