Skip to content

Commit 8d91520

Browse files
committed
Windows: Build dynamic libraries (DLL) for the editor
Otherwise the Kirigami plugin doesn't seem to work and I cannot figure out why... Typical Windows dependency hell
1 parent 67be3e9 commit 8d91520

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

windows/build_editor.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
call helper\prepare.cmd
44

55
:: Build 64-bit libraries
6-
vcpkg install --triplet x64-windows-static-easyrpgeditor --recurse^
6+
vcpkg install --triplet x64-windows-shared-easyrpgeditor --recurse^
77
zlib[core] expat[core] inih[cpp] nlohmann-json[core] glaze[core]
88

99
:: Other dependencies such as Kirigami are built via vcpkg.json and a custom

windows/helper/prepare.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git restore -s 50ca16008cebab427e90a98f8ffc34208b215dba ports/fmt
1919
copy ..\helper\windows.cmake scripts\toolchains\windows.cmake
2020

2121
:: add custom editor triplet
22-
copy ..\helper\x64-windows-static-easyrpgeditor.cmake triplets\x64-windows-static-easyrpgeditor.cmake
22+
copy ..\helper\x64-windows-shared-easyrpgeditor.cmake triplets\x64-windows-shared-easyrpgeditor.cmake
2323

2424
:: Copy custom portfiles
2525
:: ICU static data file
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
set(VCPKG_TARGET_ARCHITECTURE x64)
2-
# Qt6 uses the dynamic CRT (/MD)
3-
# The CRT must match for all linked libraries
4-
set(VCPKG_CRT_LINKAGE dynamic)
5-
set(VCPKG_LIBRARY_LINKAGE static)
6-
# Use our downloaded Qt6 prebuild
7-
# Compiling Qt6 manually takes hours
8-
set(VCPKG_ENV_PASSTHROUGH Qt6_Path)
1+
set(VCPKG_TARGET_ARCHITECTURE x64)
2+
# Qt6 uses the dynamic CRT (/MD)
3+
# The CRT must match for all linked libraries
4+
set(VCPKG_CRT_LINKAGE dynamic)
5+
set(VCPKG_LIBRARY_LINKAGE dynamic)
6+
# Use our downloaded Qt6 prebuild
7+
# Compiling Qt6 manually takes hours
8+
set(VCPKG_ENV_PASSTHROUGH Qt6_Path)

0 commit comments

Comments
 (0)