be2745e478
For static builds we need 3rdparty headers to be installed. Leaf modules like qtwebengine needs 3rdparty libs and header for zlib, freetype, harfbuzz, png, jpeg. Without those the Chromium bundled versions are used, however it might end up badly if qt has already bundled one. Introduce new header only modules with additional arguments for qt_internal_add_module: * EXTERNAL_HEADERS to pick exactly which headers are public * EXTERNAL_HEADERS_DIR to include whole directory preserving the files directory structure Fix qtsync so it keep directory structure for all non-qt modules when syncing headers and do not generate warnings for headers files. Task-number: QTBUG-87154 Task-number: QTBUG-88614 Change-Id: If1c27bf8608791cd4e0a21839d6316a445a96e9f Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
12 lines
402 B
CMake
12 lines
402 B
CMake
include(QtFindWrapHelper NO_POLICY_SCOPE)
|
|
|
|
qt_find_package_system_or_bundled(wrap_jpeg
|
|
FRIENDLY_PACKAGE_NAME "Jpeg"
|
|
WRAP_PACKAGE_TARGET "WrapJpeg::WrapJpeg"
|
|
WRAP_PACKAGE_FOUND_VAR_NAME "WrapJpeg_FOUND"
|
|
BUNDLED_PACKAGE_NAME "BundledLibjpeg"
|
|
BUNDLED_PACKAGE_TARGET "BundledLibjpeg"
|
|
SYSTEM_PACKAGE_NAME "WrapSystemJpeg"
|
|
SYSTEM_PACKAGE_TARGET "WrapSystemJpeg::WrapSystemJpeg"
|
|
)
|