aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-03-12 06:17:26 +0000
committerSaturneric <[email protected]>2022-03-12 06:17:26 +0000
commit638a56a835c7c805761a00d64629d78b2b4d3073 (patch)
treeab2dcdfddd27d08465adc794203484738ed3eef9
parent<feat, refactor>(ui, core): Transfer file hash calculation logic to core (diff)
downloadGpgFrontend-638a56a835c7c805761a00d64629d78b2b4d3073.tar.gz
GpgFrontend-638a56a835c7c805761a00d64629d78b2b4d3073.zip
<chore>(core): Resolve libarchive compile dependencies for Windows
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/GpgFrontendCore.h5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 79f2bdc4..2f463039 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -61,7 +61,7 @@ endif ()
# link libarchive
if (MINGW)
find_library(LIBARCHIVE_LIB libarchive.a)
- target_link_libraries(gpgfrontend_core ${LIBARCHIVE_LIB})
+ target_link_libraries(gpgfrontend_core ${LIBARCHIVE_LIB} bcrypt lzma bz2 z)
else ()
target_link_libraries(gpgfrontend_core archive_static)
endif ()
diff --git a/src/core/GpgFrontendCore.h b/src/core/GpgFrontendCore.h
index 27738f7b..5931695d 100644
--- a/src/core/GpgFrontendCore.h
+++ b/src/core/GpgFrontendCore.h
@@ -50,6 +50,11 @@
#define LIBCONFIGXX_STATIC
#include <libconfig.h++>
+
+// libarchive includes
+#include <libarchive/libarchive/archive.h>
+#include <libarchive/libarchive/archive_entry.h>
+
#include "core/GpgModel.h"