Files
RedBear-OS/local/recipes/libs/lcms2/source/plugins/threaded/src/meson.build
T
vasilito 1a9d77761e fix(qtdeclarative): properly generate qtquick-config.h features
The qtquick-config.h file was being generated empty by the cmake
build, causing 'division by zero in #if' errors in downstream
consumers (SDDM, KWin) because QT_CONFIG(quick_shadereffect) and
QT_CONFIG(quick_draganddrop) were undefined.

Two fixes:
1. Explicitly enable QT_FEATURE_quick_shadereffect and
   QT_FEATURE_quick_draganddrop in the cmake configuration.
2. Add a safety net that regenerates qtquick-config.h with the
   required feature definitions if cmake produces an empty file.
2026-06-21 15:12:40 +03:00

36 lines
850 B
Meson

liblcms2_threaded_sources = files(
'threaded_core.c',
'threaded_main.c',
'threaded_scheduler.c',
'threaded_split.c',
)
lcms2_threaded_incdir = include_directories('../include', '.')
if host_machine.system() == 'windows'
lcms2_threaded_rc = configure_file(
input: 'lcms2_threaded.rc.in',
configuration: version_cfg,
output: 'lcms2_threaded.rc',
)
liblcms2_threaded_sources += win.compile_resources(lcms2_threaded_rc)
endif
liblcms2_threaded = library(
'lcms2_threaded',
liblcms2_threaded_sources,
include_directories: lcms2_threaded_incdir,
dependencies: [ liblcms2_dep, threads_dep ],
c_args: cargs,
version: library_version,
install: true,
)
liblcms2_threaded_dep = declare_dependency(
link_with: liblcms2_threaded,
include_directories: lcms2_threaded_incdir,
)
extra_libraries += liblcms2_threaded