diff --git a/build-windows/generate_code.cmd b/build-windows/generate_code.cmd
index e3a35760..0f8d3156 100644
--- a/build-windows/generate_code.cmd
+++ b/build-windows/generate_code.cmd
@@ -20,6 +20,7 @@ MOVE system.db "%ProgramData%\pEp\system.db"
CD ..\sync
:: Make sure YML2 is installed
+PY -m pip install --upgrade pip
PY -m pip install wheel
PY -m pip install yml2
@@ -72,10 +73,10 @@ IF %ERRORLEVEL% NEQ 0 GOTO end
DEL *-sample.c
CD %engine_directory%\..
-RD /S/Q pEp
MKDIR pEp
XCOPY pEpEngine\src\*.h pEp\ /Y/F/I
-
+XCOPY libpEpAdapter\*.hh pEp\ /Y/F/I
+XCOPY libpEpAdapter\*.hxx pEp\ /Y/F/I
:end
diff --git a/build-windows/libpEpasn1/libpEpasn1.vcxproj b/build-windows/libpEpasn1/libpEpasn1.vcxproj
index 847c79e0..d27fb1a4 100644
--- a/build-windows/libpEpasn1/libpEpasn1.vcxproj
+++ b/build-windows/libpEpasn1/libpEpasn1.vcxproj
@@ -61,7 +61,7 @@
Windows
- IF EXIST ".\Debug\libpEpasn1.tlog\unsuccessfulbuild" CALL ..\generate_code.cmd
+ IF NOT EXIST "..\..\..\pEp" CALL ..\generate_code.cmd
@@ -81,7 +81,7 @@
true
- IF EXIST ".\Release\libpEpasn1.tlog\unsuccessfulbuild" CALL ..\generate_code.cmd
+ IF NOT EXIST "..\..\..\pEp" CALL ..\generate_code.cmd
@@ -98,4 +98,7 @@
+
+
+
\ No newline at end of file
diff --git a/build-windows/pEpEngine.vcxproj b/build-windows/pEpEngine.vcxproj
index a563fcde..77b195ec 100644
--- a/build-windows/pEpEngine.vcxproj
+++ b/build-windows/pEpEngine.vcxproj
@@ -86,10 +86,11 @@
false
- cargo build --manifest-path="$(SolutionDir)sequoia\Cargo.toml" -p sequoia-openpgp-ffi
+ cargo build --manifest-path="$(SolutionDir)sequoia\Cargo.toml"
xcopy "$(SolutionDir)sequoia\target\debug\sequoia_openpgp_ffi.dll" "$(TargetDir)" /Y
+ xcopy "$(SolutionDir)sequoia\target\debug\sq.exe" "$(TargetDir)" /Y
@@ -118,13 +119,15 @@
$(SolutionDir)sequoia\target\release;C:\msys64\mingw32\lib
- cargo build --manifest-path="$(SolutionDir)sequoia\Cargo.toml" --release -p sequoia-openpgp-ffi
+ cargo build --manifest-path="$(SolutionDir)sequoia\Cargo.toml" --release
xcopy "$(SolutionDir)sequoia\target\release\sequoia_openpgp_ffi.dll" "$(TargetDir)" /Y
+ xcopy "$(SolutionDir)sequoia\target\release\sq.exe" "$(TargetDir)" /Y
+
@@ -151,6 +154,7 @@
+
@@ -166,11 +170,13 @@
+
+
@@ -179,6 +185,7 @@
+
@@ -196,7 +203,9 @@
+
+
diff --git a/build-windows/pEpEngine.vcxproj.filters b/build-windows/pEpEngine.vcxproj.filters
index 55ea0581..4ecc8075 100644
--- a/build-windows/pEpEngine.vcxproj.filters
+++ b/build-windows/pEpEngine.vcxproj.filters
@@ -129,6 +129,12 @@
Quelldateien
+
+ Quelldateien
+
+
+ Quelldateien
+
@@ -292,8 +298,6 @@
-
- Quelldateien
-
+
\ No newline at end of file