summaryrefslogtreecommitdiffstats
path: root/Source/CPack/WiX/cmWIXAccessControlList.h
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-08-09 12:50:49 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-08-09 13:30:21 (GMT)
commit12418f5c264ef8e66724cbb19e1304416452c7f8 (patch)
tree8a24da8109930edc8589b82ba36c73369be1d7d4 /Source/CPack/WiX/cmWIXAccessControlList.h
parenta99b42a4101dfa29ef3ebbfcbac58226879fd2f3 (diff)
downloadCMake-12418f5c264ef8e66724cbb19e1304416452c7f8.zip
CMake-12418f5c264ef8e66724cbb19e1304416452c7f8.tar.gz
CMake-12418f5c264ef8e66724cbb19e1304416452c7f8.tar.bz2
CPackWIX: Implement CPACK_WIX_ACL (Access Control List) property
Diffstat (limited to 'Source/CPack/WiX/cmWIXAccessControlList.h')
-rw-r--r--Source/CPack/WiX/cmWIXAccessControlList.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/Source/CPack/WiX/cmWIXAccessControlList.h b/Source/CPack/WiX/cmWIXAccessControlList.h
new file mode 100644
index 0000000..20902f7
--- /dev/null
+++ b/Source/CPack/WiX/cmWIXAccessControlList.h
@@ -0,0 +1,46 @@
+/*============================================================================
+ CMake - Cross Platform Makefile Generator
+ Copyright 2014 Kitware, Inc.
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ 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.
+============================================================================*/
+
+#ifndef cmWIXAccessControlList_h
+#define cmWIXAccessControlList_h
+
+#include <cmInstalledFile.h>
+#include <CPack/cmCPackLog.h>
+
+#include "cmWIXSourceWriter.h"
+
+class cmWIXAccessControlList
+{
+public:
+ cmWIXAccessControlList(
+ cmCPackLog *logger,
+ cmInstalledFile const& installedFile,
+ cmWIXSourceWriter &sourceWriter);
+
+ bool Apply();
+
+private:
+ void CreatePermissionElement(std::string const& entry);
+
+ void ReportError(std::string const& entry, std::string const& message);
+
+ bool IsBooleanAttribute(std::string const& name);
+
+ void EmitBooleanAttribute(
+ std::string const& entry, std::string const& name);
+
+ cmCPackLog* Logger;
+ cmInstalledFile const& InstalledFile;
+ cmWIXSourceWriter &SourceWriter;
+};
+
+#endif