fix(cmake): missing freetype dependency + Qt6PrintSupport

This commit is contained in:
maelstrom 2025-07-07 21:31:19 +02:00
parent d558f166f9
commit 43a7a23688
2 changed files with 11 additions and 9 deletions

View file

@ -98,14 +98,6 @@ add_custom_command(
if (WIN32)
#include("${QT_DEPLOY_SUPPORT}")
# TODO: Add other translations
add_custom_command(
TARGET editor POST_BUILD
COMMAND ${WINDEPLOYQT_EXECUTABLE} $<TARGET_FILE:editor> --translations en --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --plugindir $<TARGET_FILE_DIR:editor>/qtplugins
)
# No sense adding opengl-sw given that hardware acceleration is necessary, anyway
# Also don't want to clutter with plugins, add only needed ones
# Copy over QScintilla DLLs
# TODO: Use a better approach?
add_custom_command(
@ -113,6 +105,15 @@ if (WIN32)
COMMAND ${CMAKE_COMMAND} -E copy ${QSCINTILLA_DLLS} $<TARGET_FILE_DIR:editor>
)
# TODO: Add other translations
add_custom_command(
TARGET editor POST_BUILD
COMMAND ${WINDEPLOYQT_EXECUTABLE} $<TARGET_FILE:editor> ${QSCINTILLA_DLLS} --dir $<TARGET_FILE_DIR:editor> --translations en --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --plugindir $<TARGET_FILE_DIR:editor>/qtplugins
)
# No sense adding opengl-sw given that hardware acceleration is necessary, anyway
# Also don't want to clutter with plugins, add only needed ones
# Copy qt.conf to override default plugins location
add_custom_command(
TARGET editor POST_BUILD

View file

@ -8,7 +8,8 @@
"stb",
"reactphysics3d",
"pkgconf",
"luajit"
"luajit",
"freetype"
],
"overrides": [
{