Skip to content

Commit

Permalink
tests: fix qt project test when running with qt4
Browse files Browse the repository at this point in the history
*.qrc files converted to C++ sources could make use of Qt headers, and
in practice for qt4 they seem to. Since this is Qt code to begin with,
it makes sense to depend on the Qt being targeted regardless of version.
  • Loading branch information
eli-schwartz committed Nov 18, 2022
1 parent 193092e commit 174e05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test cases/frameworks/4 qt/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ foreach qt : ['qt4', 'qt5', 'qt6']

translations_cpp = qtmodule.compile_translations(qresource: qt+'_lang.qrc')
# unity builds suck and definitely cannot handle two qrc embeds in one compilation unit
unityproof_translations = static_library(qt+'unityproof_translations', translations_cpp)
unityproof_translations = static_library(qt+'unityproof_translations', translations_cpp, dependencies: qtdep)

extra_cpp_args += '-DQT="@0@"'.format(qt)
qexe = executable(qt + 'app',
Expand Down

0 comments on commit 174e05d

Please sign in to comment.