2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2007-06-08 19:57:16 +04:00
|
|
|
|
2009-09-28 19:43:28 +04: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.
|
|
|
|
============================================================================*/
|
2007-06-08 19:57:16 +04:00
|
|
|
#ifndef cmExportCommand_h
|
|
|
|
#define cmExportCommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2008-01-31 01:25:52 +03:00
|
|
|
class cmExportBuildFileGenerator;
|
|
|
|
|
2007-06-08 19:57:16 +04:00
|
|
|
/** \class cmExportLibraryDependenciesCommand
|
|
|
|
* \brief Add a test to the lists of tests to run.
|
|
|
|
*
|
|
|
|
* cmExportLibraryDependenciesCommand adds a test to the list of tests to run
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class cmExportCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
2007-07-02 23:43:21 +04:00
|
|
|
cmExportCommand();
|
2007-06-08 19:57:16 +04:00
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
|
|
|
virtual cmCommand* Clone()
|
|
|
|
{
|
|
|
|
return new cmExportCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2008-01-23 18:28:26 +03:00
|
|
|
virtual bool InitialPass(std::vector<std::string> const& args,
|
|
|
|
cmExecutionStatus &status);
|
2007-06-08 19:57:16 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The name of the command as specified in CMakeList.txt.
|
|
|
|
*/
|
2012-02-25 10:49:24 +04:00
|
|
|
virtual const char* GetName() const { return "export";}
|
2007-06-08 19:57:16 +04:00
|
|
|
|
|
|
|
cmTypeMacro(cmExportCommand, cmCommand);
|
|
|
|
|
|
|
|
private:
|
2007-07-02 23:43:21 +04:00
|
|
|
cmCommandArgumentGroup ArgumentGroup;
|
|
|
|
cmCAStringVector Targets;
|
2008-01-28 21:21:42 +03:00
|
|
|
cmCAEnabler Append;
|
2008-01-28 16:38:36 +03:00
|
|
|
cmCAString Namespace;
|
2007-07-02 23:43:21 +04:00
|
|
|
cmCAString Filename;
|
2013-06-04 18:47:57 +04:00
|
|
|
cmCAEnabler ExportOld;
|
2008-01-31 01:25:52 +03:00
|
|
|
|
|
|
|
friend class cmExportBuildFileGenerator;
|
|
|
|
std::string ErrorMessage;
|
2009-09-01 22:04:53 +04:00
|
|
|
|
|
|
|
bool HandlePackage(std::vector<std::string> const& args);
|
|
|
|
void StorePackageRegistryWin(std::string const& package,
|
|
|
|
const char* content, const char* hash);
|
|
|
|
void StorePackageRegistryDir(std::string const& package,
|
|
|
|
const char* content, const char* hash);
|
|
|
|
void ReportRegistryError(std::string const& msg, std::string const& key,
|
|
|
|
long err);
|
2007-06-08 19:57:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|