cmExportCommand.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmExportCommand_h
  11. #define cmExportCommand_h
  12. #include "cmCommand.h"
  13. class cmExportBuildFileGenerator;
  14. class cmExportSet;
  15. /** \class cmExportLibraryDependenciesCommand
  16. * \brief Add a test to the lists of tests to run.
  17. *
  18. * cmExportLibraryDependenciesCommand adds a test to the list of tests to run
  19. *
  20. */
  21. class cmExportCommand : public cmCommand
  22. {
  23. public:
  24. cmExportCommand();
  25. /**
  26. * This is a virtual constructor for the command.
  27. */
  28. cmCommand* Clone() CM_OVERRIDE { return new cmExportCommand; }
  29. /**
  30. * This is called when the command is first encountered in
  31. * the CMakeLists.txt file.
  32. */
  33. bool InitialPass(std::vector<std::string> const& args,
  34. cmExecutionStatus& status) CM_OVERRIDE;
  35. /**
  36. * The name of the command as specified in CMakeList.txt.
  37. */
  38. std::string GetName() const CM_OVERRIDE { return "export"; }
  39. cmTypeMacro(cmExportCommand, cmCommand);
  40. private:
  41. cmCommandArgumentGroup ArgumentGroup;
  42. cmCAStringVector Targets;
  43. cmCAEnabler Append;
  44. cmCAString ExportSetName;
  45. cmCAString Namespace;
  46. cmCAString Filename;
  47. cmCAEnabler ExportOld;
  48. cmCAString AndroidMKFile;
  49. cmExportSet* ExportSet;
  50. friend class cmExportBuildFileGenerator;
  51. std::string ErrorMessage;
  52. bool HandlePackage(std::vector<std::string> const& args);
  53. void StorePackageRegistryWin(std::string const& package, const char* content,
  54. const char* hash);
  55. void StorePackageRegistryDir(std::string const& package, const char* content,
  56. const char* hash);
  57. void ReportRegistryError(std::string const& msg, std::string const& key,
  58. long err);
  59. };
  60. #endif