summaryrefslogtreecommitdiff
path: root/Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-03-14 11:58:34 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2019-06-10 14:35:28 -0400
commit1f9ef25130caa89969cc69b4873edf1723533a5f (patch)
treef48bf3864cc3c6ccd87e6efffcba2c1f582ac0e0 /Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h
parentf36719111de99e5be426552e9aaba96518b888b7 (diff)
downloadcmake-1f9ef25130caa89969cc69b4873edf1723533a5f.tar.gz
file: Add GET_RUNTIME_DEPENDENCIES mode
Co-Authored-by: Bryon Bean <bryon.bean@kitware.com>
Diffstat (limited to 'Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h')
-rw-r--r--Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h b/Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h
new file mode 100644
index 0000000000..e9e402b0f1
--- /dev/null
+++ b/Source/cmBinUtilsWindowsPEGetRuntimeDependenciesTool.h
@@ -0,0 +1,28 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+
+#ifndef cmBinUtilsWindowsPEGetRuntimeDependenciesTool_h
+#define cmBinUtilsWindowsPEGetRuntimeDependenciesTool_h
+
+#include <string>
+#include <vector>
+
+class cmRuntimeDependencyArchive;
+
+class cmBinUtilsWindowsPEGetRuntimeDependenciesTool
+{
+public:
+ cmBinUtilsWindowsPEGetRuntimeDependenciesTool(
+ cmRuntimeDependencyArchive* archive);
+ virtual ~cmBinUtilsWindowsPEGetRuntimeDependenciesTool() = default;
+
+ virtual bool GetFileInfo(const std::string& file,
+ std::vector<std::string>& needed) = 0;
+
+protected:
+ cmRuntimeDependencyArchive* Archive;
+
+ void SetError(const std::string& error);
+};
+
+#endif // cmBinUtilsWindowsPEGetRuntimeDependenciesTool_h