mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
Disable the DDS and JPEG-2000 plugins when Qt version is 5.3 or later
QtImageFormats 5.3 comes with DDS and JPEG-2000 plugins that support more options and are generally better than our plugins. The only advantage our plugins offer is that the Qt DDS plugin does not work on sequential devices, while ours does. This is outweighed by other improvements, though, such as supporting more variants. REVIEW: 119590
This commit is contained in:
@ -30,13 +30,17 @@ if (UNIX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(Jasper)
|
||||
set_package_properties(Jasper PROPERTIES
|
||||
DESCRIPTION "A library for handling JPEG-2000 images"
|
||||
PURPOSE "Required for the QImage plugin for JPEG-2000 images"
|
||||
URL "http://www.ece.uvic.ca/~mdadams/jasper"
|
||||
TYPE OPTIONAL
|
||||
)
|
||||
# QtImageFormats 5.3 comes with a JPEG-2000 plugin; don't duplicate it here
|
||||
# TODO: remove our JPEG-2000 plugin when we depend on Qt 5.3.
|
||||
if (Qt5Gui_VERSION VERSION_LESS 5.3.0)
|
||||
find_package(Jasper)
|
||||
set_package_properties(Jasper PROPERTIES
|
||||
DESCRIPTION "A library for handling JPEG-2000 images"
|
||||
PURPOSE "Required for the QImage plugin for JPEG-2000 images"
|
||||
URL "http://www.ece.uvic.ca/~mdadams/jasper"
|
||||
TYPE OPTIONAL
|
||||
)
|
||||
endif()
|
||||
|
||||
find_package(OpenEXR)
|
||||
set_package_properties(OpenEXR PROPERTIES
|
||||
|
Reference in New Issue
Block a user