Skip to content

Commit 5ebfd6d

Browse files
committed
Attempt to fix issues with new vcpkg-based deployment (AppVeyor)
1 parent e133e89 commit 5ebfd6d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ build_script:
6969
- cmd: set ZLIB_LIB=C:\libpng-apng-1.6.34\debug\32bit\static\zlib.lib
7070
- cmd: set LIBPNG_APNG_LIB=C:\libpng-apng-1.6.34\debug\32bit\static\libpng16.lib
7171
- C:\Qt\Qt5.10.1-static\bin\qmake -spec win32-msvc -tp vc CEMU_VERSION=%CEMU_VERSION:~1% LIBS+=%ZLIB_LIB% LIBS+=%LIBPNG_APNG_LIB% INCLUDEPATH+=%LIBPNG_APNG_INCLUDE% "..\gui\qt\CEmu.pro"
72-
- msbuild CEmu.vcxproj /p:Configuration=Debug
72+
- msbuild CEmu.vcxproj /p:Configuration=Debug /p:VcpkgTriplet=x86-windows-static
7373
- cmd: set ZLIB_LIB=C:\libpng-apng-1.6.34\release\32bit\static\zlib.lib
7474
- cmd: set LIBPNG_APNG_LIB=C:\libpng-apng-1.6.34\release\32bit\static\libpng16.lib
7575
- C:\Qt\Qt5.10.1-static\bin\qmake -spec win32-msvc -tp vc CEMU_VERSION=%CEMU_VERSION:~1% LIBS+=%ZLIB_LIB% LIBS+=%LIBPNG_APNG_LIB% INCLUDEPATH+=%LIBPNG_APNG_INCLUDE% "..\gui\qt\CEmu.pro"
76-
- msbuild CEmu.vcxproj /p:Configuration=Release
76+
- msbuild CEmu.vcxproj /p:Configuration=Release /p:VcpkgTriplet=x86-windows-static
7777
- cd ..
7878

7979
- endlocal
@@ -97,11 +97,11 @@ build_script:
9797
- cmd: set ZLIB_LIB=C:\libpng-apng-1.6.34\debug\64bit\static\zlib.lib
9898
- cmd: set LIBPNG_APNG_LIB=C:\libpng-apng-1.6.34\debug\64bit\static\libpng16.lib
9999
- C:\Qt\Qt5.10.1x64-static\bin\qmake -spec win32-msvc -tp vc CEMU_VERSION=%CEMU_VERSION:~1% LIBS+=%ZLIB_LIB% LIBS+=%LIBPNG_APNG_LIB% INCLUDEPATH+=%LIBPNG_APNG_INCLUDE% "..\gui\qt\CEmu.pro"
100-
- msbuild CEmu.vcxproj /p:Configuration=Debug /p:Platform="x64"
100+
- msbuild CEmu.vcxproj /p:Configuration=Debug /p:Platform="x64" /p:VcpkgTriplet=x64-windows-static
101101
- cmd: set ZLIB_LIB=C:\libpng-apng-1.6.34\release\64bit\static\zlib.lib
102102
- cmd: set LIBPNG_APNG_LIB=C:\libpng-apng-1.6.34\release\64bit\static\libpng16.lib
103103
- C:\Qt\Qt5.10.1x64-static\bin\qmake -spec win32-msvc -tp vc CEMU_VERSION=%CEMU_VERSION:~1% LIBS+=%ZLIB_LIB% LIBS+=%LIBPNG_APNG_LIB% INCLUDEPATH+=%LIBPNG_APNG_INCLUDE% "..\gui\qt\CEmu.pro"
104-
- msbuild CEmu.vcxproj /p:Configuration=Release /p:Platform="x64"
104+
- msbuild CEmu.vcxproj /p:Configuration=Release /p:Platform="x64" /p:VcpkgTriplet=x64-windows-static
105105
- cd ..
106106

107107
- endlocal

gui/qt/deploy-scripts/appveyor_helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,7 @@ def deploy_snapshots():
625625
os.path.join("deploy", "release32"),
626626
extra_wc = {
627627
"libpng/zlib x86 release DLLs" : r"C:\libpng-apng-1.6.34\release\32bit\shared\*.dll",
628+
"vcpkg provided DLLs" : os.path.join("build_32", "release") + r"\*.dll"
628629
}
629630
)
630631
collect_main_files("x64", r"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\*.dll",
@@ -633,6 +634,7 @@ def deploy_snapshots():
633634
os.path.join("deploy", "release64"),
634635
extra_wc = {
635636
"libpng/zlib x64 release DLLs" : r"C:\libpng-apng-1.6.34\release\64bit\shared\*.dll",
637+
"vcpkg provided DLLs" : os.path.join("build_64", "release") + r"\*.dll"
636638
}
637639
)
638640

@@ -645,6 +647,7 @@ def deploy_snapshots():
645647
extra_wc = {
646648
"UCRT Debug" : r"C:\Program Files (x86)\Windows Kits\10\bin\x86\ucrt\*.dll",
647649
"libpng/zlib x86 debug DLLs" : r"C:\libpng-apng-1.6.34\debug\32bit\shared\*.dll",
650+
"vcpkg provided DLLs" : os.path.join("build_32", "debug") + r"\*.dll"
648651
}
649652
)
650653
collect_main_files("x64 Debug", r"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\debug_nonredist\x64\Microsoft.VC140.DebugCRT\*.dll",
@@ -654,6 +657,7 @@ def deploy_snapshots():
654657
extra_wc = {
655658
"UCRT Debug" : r"C:\Program Files (x86)\Windows Kits\10\bin\x64\ucrt\*.dll",
656659
"libpng/zlib x64 debug DLLs" : r"C:\libpng-apng-1.6.34\debug\64bit\shared\*.dll",
660+
"vcpkg provided DLLs" : os.path.join("build_64", "debug") + r"\*.dll"
657661
}
658662
)
659663

0 commit comments

Comments
 (0)