2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2007-06-08 15:57:16 +00:00
|
|
|
#ifndef cmExportCommand_h
|
|
|
|
#define cmExportCommand_h
|
|
|
|
|
2016-10-19 06:54:18 +00:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2007-06-08 15:57:16 +00:00
|
|
|
#include "cmCommand.h"
|
2016-10-19 06:54:18 +00:00
|
|
|
#include "cmCommandArgumentsHelper.h"
|
2007-06-08 15:57:16 +00:00
|
|
|
|
2016-10-19 06:54:18 +00:00
|
|
|
class cmExecutionStatus;
|
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
|
|
|
|
|
|
|
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
|