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;
|
2013-12-23 20:07:26 +04:00
|
|
|
class cmExportSet;
|
2008-01-31 01:25:52 +03:00
|
|
|
|
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.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
cmCommand* Clone() CM_OVERRIDE { return new cmExportCommand; }
|
2007-06-08 19:57:16 +04: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;
|
2007-06-08 19:57:16 +04: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 "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;
|
2013-12-23 20:07:26 +04:00
|
|
|
cmCAString ExportSetName;
|
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;
|
2016-07-12 20:26:55 +03:00
|
|
|
cmCAString AndroidMKFile;
|
2008-01-31 01:25:52 +03:00
|
|
|
|
2016-05-16 17:34:04 +03:00
|
|
|
cmExportSet* ExportSet;
|
2013-12-23 20:07:26 +04:00
|
|
|
|
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);
|
2016-05-16 17:34:04 +03: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 22:04:53 +04:00
|
|
|
void ReportRegistryError(std::string const& msg, std::string const& key,
|
|
|
|
long err);
|
2007-06-08 19:57:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|