2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
2003-07-08 01:47:17 +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.
|
2003-07-08 01:47:17 +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.
|
|
|
|
============================================================================*/
|
2003-07-08 01:47:17 +04:00
|
|
|
#ifndef cmFileCommand_h
|
|
|
|
#define cmFileCommand_h
|
|
|
|
|
|
|
|
#include "cmCommand.h"
|
|
|
|
|
ENH: merge CMake-CrossCompileBasic to HEAD
-add a RESULT_VARIABLE to INCLUDE()
-add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain
-have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system)
-use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to
run the executables if they have a different suffix because they are
probably crosscompiled, but nevertheless it should be able to find them
-make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE
-support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.)
-move ranlib on OSX from the file command to a command in executed in cmake_install.cmake
-add support for stripping during install in cmake_install.cmake
-split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools
-remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms
-create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these
-add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a
list of directories which will be prepended to all search directories, right
now as a cmake variable, turning it into a global cmake property may need
some more work
-remove cmTestTestHandler::TryExecutable(), it's unused
-split cmFileCommand::HandleInstall() into slightly smaller functions
Alex
2007-05-17 21:20:44 +04:00
|
|
|
struct cmFileInstaller;
|
|
|
|
|
2003-07-08 01:47:17 +04:00
|
|
|
/** \class cmFileCommand
|
|
|
|
* \brief Command for manipulation of files
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class cmFileCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2007-06-07 21:51:17 +04:00
|
|
|
virtual cmCommand* Clone()
|
2003-07-08 01:47:17 +04:00
|
|
|
{
|
|
|
|
return new cmFileCommand;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
2003-07-08 01:47:17 +04:00
|
|
|
|
2004-01-27 00:05:58 +03:00
|
|
|
/**
|
|
|
|
* This determines if the command is invoked when in script mode.
|
|
|
|
*/
|
2012-02-25 10:49:24 +04:00
|
|
|
virtual bool IsScriptable() const { return true; }
|
2004-01-27 00:05:58 +03:00
|
|
|
|
2003-07-08 01:47:17 +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 "file";}
|
2003-07-08 01:47:17 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Succinct documentation.
|
|
|
|
*/
|
2012-02-25 10:49:24 +04:00
|
|
|
virtual const char* GetTerseDocumentation() const
|
2003-07-08 01:47:17 +04:00
|
|
|
{
|
|
|
|
return "File manipulation command.";
|
|
|
|
}
|
2007-06-07 21:51:17 +04:00
|
|
|
|
2003-07-08 01:47:17 +04:00
|
|
|
/**
|
|
|
|
* More documentation.
|
|
|
|
*/
|
2012-02-25 10:49:24 +04:00
|
|
|
virtual const char* GetFullDocumentation() const
|
2003-07-08 01:47:17 +04:00
|
|
|
{
|
|
|
|
return
|
2007-10-10 19:47:43 +04:00
|
|
|
" file(WRITE filename \"message to write\"... )\n"
|
|
|
|
" file(APPEND filename \"message to write\"... )\n"
|
2008-01-03 00:46:38 +03:00
|
|
|
" file(READ filename variable [LIMIT numBytes] [OFFSET offset] [HEX])\n"
|
2011-11-16 05:32:43 +04:00
|
|
|
" file(<MD5|SHA1|SHA224|SHA256|SHA384|SHA512> filename variable)\n"
|
2007-10-10 19:47:43 +04:00
|
|
|
" file(STRINGS filename variable [LIMIT_COUNT num]\n"
|
2007-04-26 01:22:07 +04:00
|
|
|
" [LIMIT_INPUT numBytes] [LIMIT_OUTPUT numBytes]\n"
|
|
|
|
" [LENGTH_MINIMUM numBytes] [LENGTH_MAXIMUM numBytes]\n"
|
2007-05-26 00:46:50 +04:00
|
|
|
" [NEWLINE_CONSUME] [REGEX regex]\n"
|
|
|
|
" [NO_HEX_CONVERSION])\n"
|
2007-10-10 19:47:43 +04:00
|
|
|
" file(GLOB variable [RELATIVE path] [globbing expressions]...)\n"
|
|
|
|
" file(GLOB_RECURSE variable [RELATIVE path] \n"
|
2008-09-11 22:34:04 +04:00
|
|
|
" [FOLLOW_SYMLINKS] [globbing expressions]...)\n"
|
2009-04-15 17:58:13 +04:00
|
|
|
" file(RENAME <oldname> <newname>)\n"
|
2007-10-10 19:47:43 +04:00
|
|
|
" file(REMOVE [file1 ...])\n"
|
|
|
|
" file(REMOVE_RECURSE [file1 ...])\n"
|
|
|
|
" file(MAKE_DIRECTORY [directory1 directory2 ...])\n"
|
|
|
|
" file(RELATIVE_PATH variable directory file)\n"
|
|
|
|
" file(TO_CMAKE_PATH path result)\n"
|
|
|
|
" file(TO_NATIVE_PATH path result)\n"
|
2011-06-01 17:55:42 +04:00
|
|
|
" file(DOWNLOAD url file [INACTIVITY_TIMEOUT timeout]\n"
|
|
|
|
" [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS]\n"
|
2012-09-19 19:28:00 +04:00
|
|
|
" [EXPECTED_HASH ALGO=value] [EXPECTED_MD5 sum]\n"
|
2012-09-14 23:40:09 +04:00
|
|
|
" [TLS_VERIFY on|off] [TLS_CAINFO file])\n"
|
2011-06-01 17:55:42 +04:00
|
|
|
" file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]\n"
|
|
|
|
" [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])\n"
|
2012-12-05 18:55:27 +04:00
|
|
|
" file(TIMESTAMP filename variable [<format string>] [UTC])\n"
|
2013-01-02 20:10:04 +04:00
|
|
|
" file(GENERATE OUTPUT output_file\n"
|
|
|
|
" <INPUT input_file|CONTENT input_content>\n"
|
|
|
|
" CONDITION expression)\n"
|
2003-07-08 01:47:17 +04:00
|
|
|
"WRITE will write a message into a file called 'filename'. It "
|
|
|
|
"overwrites the file if it already exists, and creates the file "
|
2012-11-07 20:12:03 +04:00
|
|
|
"if it does not exist. (If the file is a build input, use "
|
|
|
|
"configure_file to update the file only when its content changes.)\n"
|
2003-07-08 01:47:17 +04:00
|
|
|
"APPEND will write a message into a file same as WRITE, except "
|
2003-07-09 00:33:29 +04:00
|
|
|
"it will append it to the end of the file\n"
|
2003-07-08 22:18:17 +04:00
|
|
|
"READ will read the content of a file and store it into the "
|
2008-01-03 00:46:38 +03:00
|
|
|
"variable. It will start at the given offset and read up to numBytes. "
|
|
|
|
"If the argument HEX is given, the binary data will be converted to "
|
|
|
|
"hexadecimal representation and this will be stored in the variable.\n"
|
2011-11-16 05:32:43 +04:00
|
|
|
"MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 "
|
2011-11-16 05:39:36 +04:00
|
|
|
"will compute a cryptographic hash of the content of a file.\n"
|
2007-05-26 00:46:50 +04:00
|
|
|
"STRINGS will parse a list of ASCII strings from a file and "
|
2007-05-25 23:22:22 +04:00
|
|
|
"store it in a variable. Binary data in the file are ignored. Carriage "
|
|
|
|
"return (CR) characters are ignored. It works also for Intel Hex and "
|
2007-05-26 00:46:50 +04:00
|
|
|
"Motorola S-record files, which are automatically converted to binary "
|
2007-10-10 19:47:43 +04:00
|
|
|
"format when reading them. Disable this using NO_HEX_CONVERSION.\n"
|
2007-04-26 01:22:07 +04:00
|
|
|
"LIMIT_COUNT sets the maximum number of strings to return. "
|
|
|
|
"LIMIT_INPUT sets the maximum number of bytes to read from "
|
|
|
|
"the input file. "
|
|
|
|
"LIMIT_OUTPUT sets the maximum number of bytes to store in the "
|
|
|
|
"output variable. "
|
|
|
|
"LENGTH_MINIMUM sets the minimum length of a string to return. "
|
|
|
|
"Shorter strings are ignored. "
|
|
|
|
"LENGTH_MAXIMUM sets the maximum length of a string to return. Longer "
|
|
|
|
"strings are split into strings no longer than the maximum length. "
|
|
|
|
"NEWLINE_CONSUME allows newlines to be included in strings instead "
|
2007-10-10 19:47:43 +04:00
|
|
|
"of terminating them.\n"
|
2007-04-26 01:22:07 +04:00
|
|
|
"REGEX specifies a regular expression that a string must match to be "
|
2007-10-10 19:47:43 +04:00
|
|
|
"returned. Typical usage \n"
|
|
|
|
" file(STRINGS myfile.txt myfile)\n"
|
2007-04-26 01:22:07 +04:00
|
|
|
"stores a list in the variable \"myfile\" in which each item is "
|
|
|
|
"a line from the input file.\n"
|
2003-07-09 00:33:29 +04:00
|
|
|
"GLOB will generate a list of all files that match the globbing "
|
|
|
|
"expressions and store it into the variable. Globbing expressions "
|
2006-03-22 00:03:19 +03:00
|
|
|
"are similar to regular expressions, but much simpler. If RELATIVE "
|
|
|
|
"flag is specified for an expression, the results will be returned "
|
2010-12-16 23:49:32 +03:00
|
|
|
"as a relative path to the given path. "
|
|
|
|
"(We do not recommend using GLOB to collect a list of source files "
|
|
|
|
"from your source tree. If no CMakeLists.txt file changes when a "
|
|
|
|
"source is added or removed then the generated build system cannot "
|
|
|
|
"know when to ask CMake to regenerate.)"
|
|
|
|
"\n"
|
2005-11-16 19:25:47 +03:00
|
|
|
"Examples of globbing expressions include:\n"
|
2003-07-09 00:33:29 +04:00
|
|
|
" *.cxx - match all files with extension cxx\n"
|
2005-11-16 19:25:47 +03:00
|
|
|
" *.vt? - match all files with extension vta,...,vtz\n"
|
2003-07-09 00:33:29 +04:00
|
|
|
" f[3-5].txt - match files f3.txt, f4.txt, f5.txt\n"
|
2008-09-11 22:34:04 +04:00
|
|
|
"GLOB_RECURSE will generate a list similar to the regular GLOB, except "
|
2003-07-14 17:15:13 +04:00
|
|
|
"it will traverse all the subdirectories of the matched directory and "
|
2008-09-11 22:34:04 +04:00
|
|
|
"match the files. Subdirectories that are symlinks are only traversed "
|
|
|
|
"if FOLLOW_SYMLINKS is given or cmake policy CMP0009 is not set to NEW. "
|
|
|
|
"See cmake --help-policy CMP0009 for more information.\n"
|
2005-11-16 19:25:47 +03:00
|
|
|
"Examples of recursive globbing include:\n"
|
|
|
|
" /dir/*.py - match all python files in /dir and subdirectories\n"
|
2007-06-13 22:36:26 +04:00
|
|
|
"MAKE_DIRECTORY will create the given directories, also if their parent "
|
|
|
|
"directories don't exist yet\n"
|
2009-04-15 17:58:13 +04:00
|
|
|
"RENAME moves a file or directory within a filesystem, "
|
|
|
|
"replacing the destination atomically."
|
|
|
|
"\n"
|
2007-06-13 22:36:26 +04:00
|
|
|
"REMOVE will remove the given files, also in subdirectories\n"
|
|
|
|
"REMOVE_RECURSE will remove the given files and directories, also "
|
|
|
|
"non-empty directories\n"
|
2006-03-10 21:54:57 +03:00
|
|
|
"RELATIVE_PATH will determine relative path from directory to the given"
|
2006-04-05 15:46:32 +04:00
|
|
|
" file.\n"
|
2007-02-20 23:09:09 +03:00
|
|
|
"TO_CMAKE_PATH will convert path into a cmake style path with unix /. "
|
2006-04-05 15:46:32 +04:00
|
|
|
" The input can be a single path or a system path like \"$ENV{PATH}\". "
|
|
|
|
" Note the double quotes around the ENV call TO_CMAKE_PATH only takes "
|
2012-03-30 02:41:48 +04:00
|
|
|
" one argument. This command will also convert the native list"
|
|
|
|
" delimiters for a list of paths like the PATH environment variable.\n"
|
2006-04-05 15:46:32 +04:00
|
|
|
"TO_NATIVE_PATH works just like TO_CMAKE_PATH, but will convert from "
|
|
|
|
" a cmake style path into the native path style \\ for windows and / "
|
2008-02-06 17:35:02 +03:00
|
|
|
"for UNIX.\n"
|
2008-12-19 05:52:46 +03:00
|
|
|
"DOWNLOAD will download the given URL to the given file. "
|
2008-02-06 17:35:02 +03:00
|
|
|
"If LOG var is specified a log of the download will be put in var. "
|
|
|
|
"If STATUS var is specified the status of the operation will"
|
2008-02-07 21:26:16 +03:00
|
|
|
" be put in var. The status is returned in a list of length 2. "
|
|
|
|
"The first element is the numeric return value for the operation, "
|
|
|
|
"and the second element is a string value for the error. A 0 "
|
|
|
|
"numeric error means no error in the operation. "
|
|
|
|
"If TIMEOUT time is specified, the operation will "
|
2010-05-27 20:21:56 +04:00
|
|
|
"timeout after time seconds, time should be specified as an integer. "
|
2011-06-01 17:55:42 +04:00
|
|
|
"The INACTIVITY_TIMEOUT specifies an integer number of seconds of "
|
|
|
|
"inactivity after which the operation should terminate. "
|
2012-09-19 19:28:00 +04:00
|
|
|
"If EXPECTED_HASH ALGO=value is specified, the operation will verify "
|
|
|
|
"that the downloaded file's actual hash matches the expected value, "
|
|
|
|
"where ALGO is one of MD5, SHA1, SHA224, SHA256, SHA384, or SHA512. "
|
|
|
|
"If it does not match, the operation fails with an error. "
|
|
|
|
"(\"EXPECTED_MD5 sum\" is short-hand for \"EXPECTED_HASH MD5=sum\".) "
|
2010-05-27 20:21:56 +04:00
|
|
|
"If SHOW_PROGRESS is specified, progress information will be printed "
|
2012-08-22 02:41:24 +04:00
|
|
|
"as status messages until the operation is complete. "
|
2012-08-22 02:41:24 +04:00
|
|
|
"For https URLs CMake must be built with OpenSSL. "
|
2012-09-14 23:40:09 +04:00
|
|
|
"TLS/SSL certificates are not checked by default. "
|
|
|
|
"Set TLS_VERIFY to ON to check certificates and/or use "
|
2012-08-22 02:41:24 +04:00
|
|
|
"EXPECTED_HASH to verify downloaded content. "
|
2012-09-14 23:40:09 +04:00
|
|
|
"Set TLS_CAINFO to specify a custom Certificate Authority file. "
|
|
|
|
"If either TLS option is not given CMake will check variables "
|
|
|
|
"CMAKE_TLS_VERIFY and CMAKE_TLS_CAINFO, "
|
2012-08-22 02:41:24 +04:00
|
|
|
"respectively."
|
2009-04-29 21:13:29 +04:00
|
|
|
"\n"
|
2011-02-23 21:53:53 +03:00
|
|
|
"UPLOAD will upload the given file to the given URL. "
|
|
|
|
"If LOG var is specified a log of the upload will be put in var. "
|
|
|
|
"If STATUS var is specified the status of the operation will"
|
|
|
|
" be put in var. The status is returned in a list of length 2. "
|
|
|
|
"The first element is the numeric return value for the operation, "
|
|
|
|
"and the second element is a string value for the error. A 0 "
|
|
|
|
"numeric error means no error in the operation. "
|
|
|
|
"If TIMEOUT time is specified, the operation will "
|
|
|
|
"timeout after time seconds, time should be specified as an integer. "
|
2011-06-01 17:55:42 +04:00
|
|
|
"The INACTIVITY_TIMEOUT specifies an integer number of seconds of "
|
|
|
|
"inactivity after which the operation should terminate. "
|
2011-02-23 21:53:53 +03:00
|
|
|
"If SHOW_PROGRESS is specified, progress information will be printed "
|
|
|
|
"as status messages until the operation is complete."
|
|
|
|
"\n"
|
2012-10-05 23:55:07 +04:00
|
|
|
"TIMESTAMP will write a string representation of "
|
2012-12-05 18:55:27 +04:00
|
|
|
"the modification time of filename to variable.\n"
|
2012-10-05 23:55:07 +04:00
|
|
|
"Should the command be unable to obtain a timestamp "
|
2012-12-05 18:55:27 +04:00
|
|
|
"variable will be set to the empty string \"\".\n"
|
2012-10-05 23:55:07 +04:00
|
|
|
"See documentation of the string TIMESTAMP sub-command for more details."
|
|
|
|
"\n"
|
2009-04-29 21:13:29 +04:00
|
|
|
"The file() command also provides COPY and INSTALL signatures:\n"
|
|
|
|
" file(<COPY|INSTALL> files... DESTINATION <dir>\n"
|
|
|
|
" [FILE_PERMISSIONS permissions...]\n"
|
|
|
|
" [DIRECTORY_PERMISSIONS permissions...]\n"
|
|
|
|
" [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]\n"
|
|
|
|
" [FILES_MATCHING]\n"
|
|
|
|
" [[PATTERN <pattern> | REGEX <regex>]\n"
|
|
|
|
" [EXCLUDE] [PERMISSIONS permissions...]] [...])\n"
|
|
|
|
"The COPY signature copies files, directories, and symlinks to a "
|
|
|
|
"destination folder. "
|
|
|
|
"Relative input paths are evaluated with respect to the current "
|
|
|
|
"source directory, and a relative destination is evaluated with "
|
|
|
|
"respect to the current build directory. "
|
|
|
|
"Copying preserves input file timestamps, and optimizes out a file "
|
|
|
|
"if it exists at the destination with the same timestamp. "
|
|
|
|
"Copying preserves input permissions unless explicit permissions or "
|
|
|
|
"NO_SOURCE_PERMISSIONS are given (default is USE_SOURCE_PERMISSIONS). "
|
|
|
|
"See the install(DIRECTORY) command for documentation of permissions, "
|
|
|
|
"PATTERN, REGEX, and EXCLUDE options. "
|
|
|
|
"\n"
|
|
|
|
"The INSTALL signature differs slightly from COPY: "
|
|
|
|
"it prints status messages, and NO_SOURCE_PERMISSIONS is default. "
|
|
|
|
"Installation scripts generated by the install() command use this "
|
|
|
|
"signature (with some undocumented options for internal use)."
|
2013-01-02 20:10:04 +04:00
|
|
|
"\n"
|
|
|
|
"GENERATE will write an <output_file> with content from an "
|
|
|
|
"<input_file>, or from <input_content>. The output is generated "
|
|
|
|
"conditionally based on the content of the <condition>. The file is "
|
|
|
|
"written at CMake generate-time and the input may contain generator "
|
|
|
|
"expressions. The <condition>, <output_file> and <input_file> may "
|
|
|
|
"also contain generator expressions. The <condition> must evaluate to "
|
|
|
|
"either '0' or '1'. The <output_file> must evaluate to a unique name "
|
|
|
|
"among all configurations and among all invocations of file(GENERATE)."
|
2009-04-29 21:13:29 +04:00
|
|
|
// Undocumented INSTALL options:
|
|
|
|
// - RENAME <name>
|
|
|
|
// - OPTIONAL
|
|
|
|
// - FILES keyword to re-enter files... list
|
|
|
|
// - PERMISSIONS before REGEX is alias for FILE_PERMISSIONS
|
|
|
|
// - DIR_PERMISSIONS is alias for DIRECTORY_PERMISSIONS
|
|
|
|
// - TYPE <FILE|DIRECTORY|EXECUTABLE|PROGRAM|
|
|
|
|
// STATIC_LIBRARY|SHARED_LIBRARY|MODULE>
|
|
|
|
// - COMPONENTS, CONFIGURATIONS, PROPERTIES (ignored for compat)
|
|
|
|
;
|
2003-07-09 00:33:29 +04:00
|
|
|
}
|
2007-06-07 21:51:17 +04:00
|
|
|
|
2003-07-08 01:47:17 +04:00
|
|
|
cmTypeMacro(cmFileCommand, cmCommand);
|
|
|
|
|
|
|
|
protected:
|
2009-04-15 17:58:13 +04:00
|
|
|
bool HandleRename(std::vector<std::string> const& args);
|
2006-03-09 22:30:35 +03:00
|
|
|
bool HandleRemove(std::vector<std::string> const& args, bool recurse);
|
2003-07-08 01:47:17 +04:00
|
|
|
bool HandleWriteCommand(std::vector<std::string> const& args, bool append);
|
|
|
|
bool HandleReadCommand(std::vector<std::string> const& args);
|
2011-11-16 05:39:36 +04:00
|
|
|
bool HandleHashCommand(std::vector<std::string> const& args);
|
2007-04-26 01:22:07 +04:00
|
|
|
bool HandleStringsCommand(std::vector<std::string> const& args);
|
2003-07-14 17:15:13 +04:00
|
|
|
bool HandleGlobCommand(std::vector<std::string> const& args, bool recurse);
|
2003-07-09 00:33:29 +04:00
|
|
|
bool HandleMakeDirectoryCommand(std::vector<std::string> const& args);
|
2007-06-07 21:51:17 +04:00
|
|
|
|
2005-10-17 17:10:20 +04:00
|
|
|
bool HandleRelativePathCommand(std::vector<std::string> const& args);
|
2006-04-05 15:46:32 +04:00
|
|
|
bool HandleCMakePathCommand(std::vector<std::string> const& args,
|
|
|
|
bool nativePath);
|
2008-04-14 23:02:44 +04:00
|
|
|
bool HandleRPathChangeCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleRPathCheckCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleRPathRemoveCommand(std::vector<std::string> const& args);
|
2009-01-07 22:16:35 +03:00
|
|
|
bool HandleDifferentCommand(std::vector<std::string> const& args);
|
2007-06-07 21:51:17 +04:00
|
|
|
|
2009-04-29 21:13:29 +04:00
|
|
|
bool HandleCopyCommand(std::vector<std::string> const& args);
|
ENH: merge CMake-CrossCompileBasic to HEAD
-add a RESULT_VARIABLE to INCLUDE()
-add CMAKE_TOOLCHAIN_FILE for specifiying your (potentially crosscompiling) toolchain
-have TRY_RUN() complain if you try to use it in crosscompiling mode (which were compiled but cannot run on this system)
-use CMAKE_EXECUTABLE_SUFFIX in TRY_RUN(), probably TRY_RUN won't be able to
run the executables if they have a different suffix because they are
probably crosscompiled, but nevertheless it should be able to find them
-make several cmake variables presettable by the user: CMAKE_C/CXX_COMPILER, CMAKE_C/CXX_OUTPUT_EXTENSION, CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_INFO_FILE
-support prefix for GNU toolchains (arm-elf-gcc, arm-elf-ar, arm-elf-strip etc.)
-move ranlib on OSX from the file command to a command in executed in cmake_install.cmake
-add support for stripping during install in cmake_install.cmake
-split out cl.cmake from Windows-cl.cmake, first (very incomplete) step to support MS crosscompiling tools
-remove stdio.h from the simple C program which checks if the compiler works, since this may not exist for some embedded platforms
-create a new CMakeFindBinUtils.cmake which collects the search fro ar, ranlib, strip, ld, link, install_name_tool and other tools like these
-add support for CMAKE_FIND_ROOT_PATH for all FIND_XXX commands, which is a
list of directories which will be prepended to all search directories, right
now as a cmake variable, turning it into a global cmake property may need
some more work
-remove cmTestTestHandler::TryExecutable(), it's unused
-split cmFileCommand::HandleInstall() into slightly smaller functions
Alex
2007-05-17 21:20:44 +04:00
|
|
|
bool HandleInstallCommand(std::vector<std::string> const& args);
|
2008-02-06 17:35:02 +03:00
|
|
|
bool HandleDownloadCommand(std::vector<std::string> const& args);
|
2011-02-23 21:53:53 +03:00
|
|
|
bool HandleUploadCommand(std::vector<std::string> const& args);
|
2012-10-05 23:55:07 +04:00
|
|
|
|
|
|
|
bool HandleTimestampCommand(std::vector<std::string> const& args);
|
2013-01-02 20:10:04 +04:00
|
|
|
bool HandleGenerateCommand(std::vector<std::string> const& args);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void AddEvaluationFile(const std::string &inputName,
|
|
|
|
const std::string &outputExpr,
|
|
|
|
const std::string &condition,
|
|
|
|
bool inputIsContent);
|
2003-07-08 01:47:17 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|