summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackExtGenerator.h
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-11-05 04:58:24 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-05 12:56:03 (GMT)
commit20d5e77a270639a124fea587bb68b2fb6a5356fc (patch)
treec08b444f63cad8d3b337dc21ae4684f3cd0aeba5 /Source/CPack/cmCPackExtGenerator.h
parent44cc305ac12d58fe476f815b89f42288455e44a9 (diff)
downloadCMake-20d5e77a270639a124fea587bb68b2fb6a5356fc.zip
CMake-20d5e77a270639a124fea587bb68b2fb6a5356fc.tar.gz
CMake-20d5e77a270639a124fea587bb68b2fb6a5356fc.tar.bz2
CPack: Rename Ext generator to External
Ext and External were used inconsistently in the code and the docs. This change converts all uses of Ext to External, including within variable names used by the generator.
Diffstat (limited to 'Source/CPack/cmCPackExtGenerator.h')
-rw-r--r--Source/CPack/cmCPackExtGenerator.h88
1 files changed, 0 insertions, 88 deletions
diff --git a/Source/CPack/cmCPackExtGenerator.h b/Source/CPack/cmCPackExtGenerator.h
deleted file mode 100644
index 103e56d..0000000
--- a/Source/CPack/cmCPackExtGenerator.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
- file Copyright.txt or https://cmake.org/licensing for details. */
-#ifndef cmCPackExtGenerator_h
-#define cmCPackExtGenerator_h
-
-#include "cmCPackGenerator.h"
-#include "cm_sys_stat.h"
-
-#include <memory>
-#include <string>
-
-class cmGlobalGenerator;
-namespace Json {
-class Value;
-}
-
-/** \class cmCPackExtGenerator
- * \brief A generator for CPack External packaging tools
- */
-class cmCPackExtGenerator : public cmCPackGenerator
-{
-public:
- cmCPackTypeMacro(cmCPackExtGenerator, cmCPackGenerator);
-
- const char* GetOutputExtension() override { return ".json"; }
-
-protected:
- int InitializeInternal() override;
-
- int PackageFiles() override;
-
- bool SupportsComponentInstallation() const override;
-
- int InstallProjectViaInstallCommands(
- bool setDestDir, const std::string& tempInstallDirectory) override;
- int InstallProjectViaInstallScript(
- bool setDestDir, const std::string& tempInstallDirectory) override;
- int InstallProjectViaInstalledDirectories(
- bool setDestDir, const std::string& tempInstallDirectory,
- const mode_t* default_dir_mode) override;
-
- int RunPreinstallTarget(const std::string& installProjectName,
- const std::string& installDirectory,
- cmGlobalGenerator* globalGenerator,
- const std::string& buildConfig) override;
- int InstallCMakeProject(bool setDestDir, const std::string& installDirectory,
- const std::string& baseTempInstallDirectory,
- const mode_t* default_dir_mode,
- const std::string& component, bool componentInstall,
- const std::string& installSubDirectory,
- const std::string& buildConfig,
- std::string& absoluteDestFiles) override;
-
-private:
- bool StagingEnabled() const;
-
- class cmCPackExtVersionGenerator
- {
- public:
- cmCPackExtVersionGenerator(cmCPackExtGenerator* parent);
-
- virtual ~cmCPackExtVersionGenerator() = default;
-
- virtual int WriteToJSON(Json::Value& root);
-
- protected:
- virtual int GetVersionMajor() = 0;
- virtual int GetVersionMinor() = 0;
-
- int WriteVersion(Json::Value& root);
-
- cmCPackExtGenerator* Parent;
- };
-
- class cmCPackExtVersion1Generator : public cmCPackExtVersionGenerator
- {
- public:
- using cmCPackExtVersionGenerator::cmCPackExtVersionGenerator;
-
- protected:
- int GetVersionMajor() override { return 1; }
- int GetVersionMinor() override { return 0; }
- };
-
- std::unique_ptr<cmCPackExtVersionGenerator> Generator;
-};
-
-#endif