summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackDragNDropGenerator.h
diff options
context:
space:
mode:
authorSimon Levermann <simon-github@slevermann.de>2015-10-19 09:13:55 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-06 16:14:49 (GMT)
commitf88533cc067ea252254b0851d87f09ef798e2c97 (patch)
tree78686375daa00b36fa167de4b3fde5faf3b39431 /Source/CPack/cmCPackDragNDropGenerator.h
parent13dc7bdb5e3a0eaaf3607b154bba77a01404a788 (diff)
downloadCMake-f88533cc067ea252254b0851d87f09ef798e2c97.zip
CMake-f88533cc067ea252254b0851d87f09ef798e2c97.tar.gz
CMake-f88533cc067ea252254b0851d87f09ef798e2c97.tar.bz2
CPackDMG: Add support for multilingual SLAs
Multiple languages for SLAs and the SLA UI can be added via the CPack variables CPACK_DMG_SLA_DIR and CPACK_DMG_SLA_LANGUAGES. For each language defined in the languages variable, CPack will search for <language>.menu.txt and <language>.license.txt in CPACK_DMG_SLA_DIR. If the sla directory variable is not defined, the old behaviour using CPACK_RESOURCE_FILE_LICENSE is retained.
Diffstat (limited to 'Source/CPack/cmCPackDragNDropGenerator.h')
-rw-r--r--Source/CPack/cmCPackDragNDropGenerator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDragNDropGenerator.h b/Source/CPack/cmCPackDragNDropGenerator.h
index 1c84d49..12db469 100644
--- a/Source/CPack/cmCPackDragNDropGenerator.h
+++ b/Source/CPack/cmCPackDragNDropGenerator.h
@@ -15,6 +15,8 @@
#include "cmCPackGenerator.h"
+class cmGeneratedFileStream;
+
/** \class cmCPackDragNDropGenerator
* \brief A generator for OSX drag-n-drop installs
*/
@@ -42,6 +44,15 @@ protected:
int CreateDMG(const std::string& src_dir, const std::string& output_file);
std::string InstallPrefix;
+
+private:
+ std::string slaDirectory;
+
+ void WriteLicense(cmGeneratedFileStream& outputStream, int licenseNumber,
+ std::string licenseLanguage, std::string licenseFile = "");
+ void BreakLongLine(const std::string& line,
+ std::vector<std::string>& lines);
+ void EscapeQuotes(std::string& line);
};
#endif