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