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. */
|
2006-02-10 21:54:36 +03:00
|
|
|
#ifndef cmInstallCommand_h
|
|
|
|
#define cmInstallCommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
|
|
|
/** \class cmInstallCommand
|
|
|
|
* \brief Specifies where to install some files
|
|
|
|
*
|
|
|
|
* cmInstallCommand is a general-purpose interface command for
|
|
|
|
* specifying install rules.
|
|
|
|
*/
|
|
|
|
class cmInstallCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2016-06-27 22:25:27 +03:00
|
|
|
cmCommand* Clone() CM_OVERRIDE { return new cmInstallCommand; }
|
2006-02-10 21:54:36 +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;
|
2006-02-10 21:54:36 +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 "install"; }
|
2006-02-10 21:54:36 +03:00
|
|
|
|
|
|
|
cmTypeMacro(cmInstallCommand, cmCommand);
|
2006-02-19 23:25:27 +03:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool HandleScriptMode(std::vector<std::string> const& args);
|
|
|
|
bool HandleTargetsMode(std::vector<std::string> const& args);
|
2006-02-20 02:47:13 +03:00
|
|
|
bool HandleFilesMode(std::vector<std::string> const& args);
|
2006-08-17 22:48:54 +04:00
|
|
|
bool HandleDirectoryMode(std::vector<std::string> const& args);
|
2007-06-19 21:10:21 +04:00
|
|
|
bool HandleExportMode(std::vector<std::string> const& args);
|
2016-07-12 20:26:55 +03:00
|
|
|
bool HandleExportAndroidMKMode(std::vector<std::string> const& args);
|
2012-05-13 17:34:30 +04:00
|
|
|
bool MakeFilesFullPath(const char* modeName,
|
2007-08-28 00:04:57 +04:00
|
|
|
const std::vector<std::string>& relFiles,
|
|
|
|
std::vector<std::string>& absFiles);
|
2008-04-15 01:53:11 +04:00
|
|
|
bool CheckCMP0006(bool& failure);
|
2012-05-13 17:44:37 +04:00
|
|
|
|
|
|
|
std::string DefaultComponentName;
|
2006-02-10 21:54:36 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|