summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackBundleGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CPack/cmCPackBundleGenerator.h')
-rw-r--r--Source/CPack/cmCPackBundleGenerator.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackBundleGenerator.h b/Source/CPack/cmCPackBundleGenerator.h
new file mode 100644
index 0000000..27bac3a
--- /dev/null
+++ b/Source/CPack/cmCPackBundleGenerator.h
@@ -0,0 +1,37 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmCPackBundleGenerator_h
+#define cmCPackBundleGenerator_h
+
+#include "cmConfigure.h" // IWYU pragma: keep
+
+#include <string>
+
+#include "cmCPackDragNDropGenerator.h"
+#include "cmCPackGenerator.h"
+
+/** \class cmCPackBundleGenerator
+ * \brief A generator for OSX bundles
+ *
+ * Based on Gimp.app
+ */
+class cmCPackBundleGenerator : public cmCPackDragNDropGenerator
+{
+public:
+ cmCPackTypeMacro(cmCPackBundleGenerator, cmCPackDragNDropGenerator);
+
+ cmCPackBundleGenerator();
+ ~cmCPackBundleGenerator() override;
+
+protected:
+ int InitializeInternal() override;
+ const char* GetPackagingInstallPrefix() override;
+ int ConstructBundle();
+ int SignBundle(const std::string& src_dir);
+ int PackageFiles() override;
+ bool SupportsComponentInstallation() const override;
+
+ std::string InstallPrefix;
+};
+
+#endif