CMake: Regenerate and fixup qtimageformats projects

A few changes happened since last update:
- CMake target names are now consistent with Qt 5 names
- ZLIB handling
- TIFF 3rd party handling
- Standalone tests simplification
- Updates in the SUBDIRS project
- Other minor changes

Change-Id: I85cca79d38feca44c5b78dae48c79779ae05e288
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Alexandru Croitor 2020-03-16 17:07:41 +01:00
parent 51e7fa714c
commit c96422ae94
23 changed files with 256 additions and 99 deletions

View File

@ -1,13 +1,11 @@
# Generated from imageformats.pro. # Generated from imageformats.pro.
if(NOT WINRT) add_subdirectory(tga)
add_subdirectory(tga)
endif()
add_subdirectory(wbmp) add_subdirectory(wbmp)
if(QT_FEATURE_tiff AND NOT WINRT) if(QT_FEATURE_tiff)
add_subdirectory(tiff) add_subdirectory(tiff)
endif() endif()
if(QT_FEATURE_webp AND NOT WINRT) if(QT_FEATURE_webp)
add_subdirectory(webp) add_subdirectory(webp)
endif() endif()
if(APPLE) if(APPLE)

View File

@ -10,14 +10,12 @@ include(../../imageformats/configure.cmake)
qt_feature_module_end(NO_MODULE) qt_feature_module_end(NO_MODULE)
# special case end # special case end
if(NOT WINRT) add_subdirectory(tga)
add_subdirectory(tga)
endif()
add_subdirectory(wbmp) add_subdirectory(wbmp)
if(QT_FEATURE_tiff AND NOT WINRT) if(QT_FEATURE_tiff)
add_subdirectory(tiff) add_subdirectory(tiff)
endif() endif()
if(QT_FEATURE_webp AND NOT WINRT) if(QT_FEATURE_webp)
add_subdirectory(webp) add_subdirectory(webp)
endif() endif()
if(APPLE) if(APPLE)
@ -26,7 +24,7 @@ endif()
if(QT_FEATURE_regularexpression) if(QT_FEATURE_regularexpression)
add_subdirectory(icns) add_subdirectory(icns)
endif() endif()
if(QT_FEATURE_mng AND OFF) # special case TODO: FiXME if(QT_FEATURE_mng AND OFF) # special case: FIXME
add_subdirectory(mng) add_subdirectory(mng)
endif() endif()
if(QT_FEATURE_jasper) if(QT_FEATURE_jasper)
@ -35,4 +33,3 @@ endif()
if(APPLE AND NOT QT_FEATURE_jasper) if(APPLE AND NOT QT_FEATURE_jasper)
add_subdirectory(macjp2) add_subdirectory(macjp2)
endif() endif()

View File

@ -1,12 +1,12 @@
# Generated from icns.pro. # Generated from icns.pro.
##################################################################### #####################################################################
## qicns Plugin: ## QICNSPlugin Plugin:
##################################################################### #####################################################################
add_qt_plugin(qicns qt_add_plugin(QICNSPlugin
OUTPUT_NAME qicns
TYPE imageformats TYPE imageformats
CLASS_NAME QICNSPlugin
SOURCES SOURCES
main.cpp main.cpp
qicnshandler.cpp qicnshandler_p.h qicnshandler.cpp qicnshandler_p.h
@ -20,4 +20,3 @@ add_qt_plugin(qicns
#### Keys ignored in scope 1:.:.:icns.pro:<TRUE>: #### Keys ignored in scope 1:.:.:icns.pro:<TRUE>:
# OTHER_FILES = "icns.json" # OTHER_FILES = "icns.json"
# _LOADED = "qt_plugin"

View File

@ -1,12 +1,12 @@
# Generated from icns.pro. # Generated from icns.pro.
##################################################################### #####################################################################
## qicns Plugin: ## QICNSPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qicns qt_add_plugin(QICNSPlugin
OUTPUT_NAME qicns
TYPE imageformats TYPE imageformats
CLASS_NAME QICNSPlugin
SOURCES SOURCES
main.cpp main.cpp
qicnshandler.cpp qicnshandler_p.h qicnshandler.cpp qicnshandler_p.h

View File

@ -1,12 +1,12 @@
# Generated from jp2.pro. # Generated from jp2.pro.
##################################################################### #####################################################################
## qjp2 Plugin: ## QJp2Plugin Plugin:
##################################################################### #####################################################################
add_qt_plugin(qjp2 qt_add_plugin(QJp2Plugin
OUTPUT_NAME qjp2
TYPE imageformats TYPE imageformats
CLASS_NAME QJp2Plugin
SOURCES SOURCES
main.cpp main.cpp
qjp2handler.cpp qjp2handler_p.h qjp2handler.cpp qjp2handler_p.h
@ -20,4 +20,3 @@ add_qt_plugin(qjp2
#### Keys ignored in scope 1:.:.:jp2.pro:<TRUE>: #### Keys ignored in scope 1:.:.:jp2.pro:<TRUE>:
# OTHER_FILES = "jp2.json" # OTHER_FILES = "jp2.json"
# QT_FOR_CONFIG = "imageformats-private" # QT_FOR_CONFIG = "imageformats-private"
# _LOADED = "qt_plugin"

View File

@ -1,12 +1,12 @@
# Generated from jp2.pro. # Generated from jp2.pro.
##################################################################### #####################################################################
## qjp2 Plugin: ## QJp2Plugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qjp2 qt_add_plugin(QJp2Plugin
OUTPUT_NAME qjp2
TYPE imageformats TYPE imageformats
CLASS_NAME QJp2Plugin
SOURCES SOURCES
main.cpp main.cpp
qjp2handler.cpp qjp2handler_p.h qjp2handler.cpp qjp2handler_p.h

View File

@ -1,27 +1,26 @@
# Generated from macheif.pro. # Generated from macheif.pro.
##################################################################### #####################################################################
## qmacheif Plugin: ## QMacHeifPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qmacheif qt_add_plugin(QMacHeifPlugin
OUTPUT_NAME qmacheif
TYPE imageformats TYPE imageformats
CLASS_NAME QMacHeifPlugin
SOURCES SOURCES
../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h
main.cpp main.cpp
qmacheifhandler.cpp qmacheifhandler.h qmacheifhandler.cpp qmacheifhandler.h
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
../shared ../shared
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWCoreFoundation} ${FWCoreFoundation}
${FWCoreGraphics} ${FWCoreGraphics}
${FWImageIO} ${FWImageIO}
Qt::Core Qt::Core
Qt::CorePrivate
Qt::Gui Qt::Gui
Qt::GuiPrivate
) )
#### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>: #### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>:

View File

@ -1,7 +1,7 @@
# Generated from macheif.pro. # Generated from macheif.pro.
##################################################################### #####################################################################
## qmacheif Plugin: ## QMacHeifPlugin Plugin:
##################################################################### #####################################################################
# special case begin # special case begin
@ -10,24 +10,23 @@ find_library(FWCoreGraphics CoreGraphics)
find_library(FWImageIO ImageIO) find_library(FWImageIO ImageIO)
# special case end # special case end
qt_add_plugin(qmacheif qt_add_plugin(QMacHeifPlugin
OUTPUT_NAME qmacheif
TYPE imageformats TYPE imageformats
CLASS_NAME QMacHeifPlugin
SOURCES SOURCES
../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h
main.cpp main.cpp
qmacheifhandler.cpp qmacheifhandler.h qmacheifhandler.cpp qmacheifhandler.h
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
../shared ../shared
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWCoreFoundation} ${FWCoreFoundation}
${FWCoreGraphics} ${FWCoreGraphics}
${FWImageIO} ${FWImageIO}
Qt::Core Qt::Core
Qt::CorePrivate
Qt::Gui Qt::Gui
Qt::GuiPrivate
) )
#### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>: #### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>:

View File

@ -1,27 +1,26 @@
# Generated from macjp2.pro. # Generated from macjp2.pro.
##################################################################### #####################################################################
## qmacjp2 Plugin: ## QMacJp2Plugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qmacjp2 qt_add_plugin(QMacJp2Plugin
OUTPUT_NAME qmacjp2
TYPE imageformats TYPE imageformats
CLASS_NAME QMacJp2Plugin
SOURCES SOURCES
../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h
main.cpp main.cpp
qmacjp2handler.cpp qmacjp2handler.h qmacjp2handler.cpp qmacjp2handler.h
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
../shared ../shared
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
${FWCoreFoundation} ${FWCoreFoundation}
${FWCoreGraphics} ${FWCoreGraphics}
${FWImageIO} ${FWImageIO}
Qt::Core Qt::Core
Qt::CorePrivate
Qt::Gui Qt::Gui
Qt::GuiPrivate
) )
#### Keys ignored in scope 1:.:.:macjp2.pro:<TRUE>: #### Keys ignored in scope 1:.:.:macjp2.pro:<TRUE>:

View File

@ -1,12 +1,12 @@
# Generated from mng.pro. # Generated from mng.pro.
##################################################################### #####################################################################
## qmng Plugin: ## QMngPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qmng qt_add_plugin(QMngPlugin
OUTPUT_NAME qmng
TYPE imageformats TYPE imageformats
CLASS_NAME QMngPlugin
SOURCES SOURCES
main.cpp main.cpp
qmnghandler.cpp qmnghandler_p.h qmnghandler.cpp qmnghandler_p.h

View File

@ -1,12 +1,12 @@
# Generated from tga.pro. # Generated from tga.pro.
##################################################################### #####################################################################
## qtga Plugin: ## QTgaPlugin Plugin:
##################################################################### #####################################################################
add_qt_plugin(qtga qt_add_plugin(QTgaPlugin
OUTPUT_NAME qtga
TYPE imageformats TYPE imageformats
CLASS_NAME QTgaPlugin
SOURCES SOURCES
main.cpp main.cpp
qtgafile.cpp qtgafile.h qtgafile.cpp qtgafile.h
@ -18,4 +18,3 @@ add_qt_plugin(qtga
#### Keys ignored in scope 1:.:.:tga.pro:<TRUE>: #### Keys ignored in scope 1:.:.:tga.pro:<TRUE>:
# OTHER_FILES = "tga.json" # OTHER_FILES = "tga.json"
# _LOADED = "qt_plugin"

View File

@ -1,12 +1,12 @@
# Generated from tga.pro. # Generated from tga.pro.
##################################################################### #####################################################################
## qtga Plugin: ## QTgaPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qtga qt_add_plugin(QTgaPlugin
OUTPUT_NAME qtga
TYPE imageformats TYPE imageformats
CLASS_NAME QTgaPlugin
SOURCES SOURCES
main.cpp main.cpp
qtgafile.cpp qtgafile.h qtgafile.cpp qtgafile.h

View File

@ -1,17 +1,15 @@
# Generated from tiff.pro. # Generated from tiff.pro.
##################################################################### #####################################################################
## qtiff Plugin: ## QTiffPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qtiff qt_add_plugin(QTiffPlugin
OUTPUT_NAME qtiff
TYPE imageformats TYPE imageformats
CLASS_NAME QTiffPlugin
SOURCES SOURCES
main.cpp main.cpp
qtiffhandler.cpp qtiffhandler_p.h qtiffhandler.cpp qtiffhandler_p.h
LIBRARIES
TIFF::TIFF
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
@ -20,3 +18,76 @@ qt_add_plugin(qtiff
#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: #### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>:
# OTHER_FILES = "tiff.json" # OTHER_FILES = "tiff.json"
# QT_FOR_CONFIG = "imageformats-private" # QT_FOR_CONFIG = "imageformats-private"
## Scopes:
#####################################################################
qt_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_tiff
LIBRARIES
TIFF::TIFF
)
qt_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_aux.c
../../../3rdparty/libtiff/libtiff/tif_close.c
../../../3rdparty/libtiff/libtiff/tif_codec.c
../../../3rdparty/libtiff/libtiff/tif_color.c
../../../3rdparty/libtiff/libtiff/tif_compress.c
../../../3rdparty/libtiff/libtiff/tif_dir.c
../../../3rdparty/libtiff/libtiff/tif_dirinfo.c
../../../3rdparty/libtiff/libtiff/tif_dirread.c
../../../3rdparty/libtiff/libtiff/tif_dirwrite.c
../../../3rdparty/libtiff/libtiff/tif_dumpmode.c
../../../3rdparty/libtiff/libtiff/tif_error.c
../../../3rdparty/libtiff/libtiff/tif_extension.c
../../../3rdparty/libtiff/libtiff/tif_fax3.c
../../../3rdparty/libtiff/libtiff/tif_fax3sm.c
../../../3rdparty/libtiff/libtiff/tif_flush.c
../../../3rdparty/libtiff/libtiff/tif_getimage.c
../../../3rdparty/libtiff/libtiff/tif_luv.c
../../../3rdparty/libtiff/libtiff/tif_lzw.c
../../../3rdparty/libtiff/libtiff/tif_next.c
../../../3rdparty/libtiff/libtiff/tif_open.c
../../../3rdparty/libtiff/libtiff/tif_packbits.c
../../../3rdparty/libtiff/libtiff/tif_pixarlog.c
../../../3rdparty/libtiff/libtiff/tif_predict.c
../../../3rdparty/libtiff/libtiff/tif_print.c
../../../3rdparty/libtiff/libtiff/tif_read.c
../../../3rdparty/libtiff/libtiff/tif_strip.c
../../../3rdparty/libtiff/libtiff/tif_swab.c
../../../3rdparty/libtiff/libtiff/tif_thunder.c
../../../3rdparty/libtiff/libtiff/tif_tile.c
../../../3rdparty/libtiff/libtiff/tif_version.c
../../../3rdparty/libtiff/libtiff/tif_warning.c
../../../3rdparty/libtiff/libtiff/tif_write.c
../../../3rdparty/libtiff/libtiff/tif_zip.c
../../../3rdparty/libtiff/port/snprintf.c
INCLUDE_DIRECTORIES
../../../3rdparty/libtiff/libtiff
)
qt_extend_target(QTiffPlugin CONDITION WIN32 AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_win32.c
)
qt_extend_target(QTiffPlugin CONDITION UNIX AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_unix.c
)
qt_extend_target(QTiffPlugin CONDITION ANDROID AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/port/lfind.c
)
qt_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_zlib AND NOT QT_FEATURE_system_tiff
LIBRARIES
ZLIB::ZLIB
)
qt_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff AND NOT QT_FEATURE_system_zlib
LIBRARIES
Qt::ZlibPrivate
)

View File

@ -1,35 +1,102 @@
# Generated from tiff.pro. # Generated from tiff.pro.
##################################################################### #####################################################################
## qtiff Plugin: ## QTiffPlugin Plugin:
##################################################################### #####################################################################
# special case begin # special case begin
# Protect against case when ZLIB is found via QtGui in a static build, # Handle the conditional finding of either system zlib or qt zlib.
# which means that we can't do a qt_find_package() here due to CMake if(NOT QT_FEATURE_system_zlib)
# complaining about not being able to make the ZLIB target global, find_package(Qt6 COMPONENTS Zlib)
# because ZLIB was found in the QtGui directory scope (root level) and elseif(NOT TARGET ZLIB::ZLIB)
# not in this directory scope.
if(BUILD_SHARED_LIBS)
qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB) qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB)
endif() endif()
# special case end # special case end
qt_add_plugin(qtiff qt_add_plugin(QTiffPlugin
OUTPUT_NAME qtiff
TYPE imageformats TYPE imageformats
CLASS_NAME QTiffPlugin
SOURCES SOURCES
main.cpp main.cpp
qtiffhandler.cpp qtiffhandler_p.h qtiffhandler.cpp qtiffhandler_p.h
LIBRARIES
TIFF::TIFF
ZLIB::ZLIB # special case
PUBLIC_LIBRARIES PUBLIC_LIBRARIES
Qt::Core Qt::Core
Qt::Gui Qt::Gui
TIFF::TIFF # special case
) )
#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: #### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>:
# OTHER_FILES = "tiff.json" # OTHER_FILES = "tiff.json"
# QT_FOR_CONFIG = "imageformats-private" # QT_FOR_CONFIG = "imageformats-private"
## Scopes:
#####################################################################
qt_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_tiff
LIBRARIES
TIFF::TIFF
)
qt_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_aux.c
../../../3rdparty/libtiff/libtiff/tif_close.c
../../../3rdparty/libtiff/libtiff/tif_codec.c
../../../3rdparty/libtiff/libtiff/tif_color.c
../../../3rdparty/libtiff/libtiff/tif_compress.c
../../../3rdparty/libtiff/libtiff/tif_dir.c
../../../3rdparty/libtiff/libtiff/tif_dirinfo.c
../../../3rdparty/libtiff/libtiff/tif_dirread.c
../../../3rdparty/libtiff/libtiff/tif_dirwrite.c
../../../3rdparty/libtiff/libtiff/tif_dumpmode.c
../../../3rdparty/libtiff/libtiff/tif_error.c
../../../3rdparty/libtiff/libtiff/tif_extension.c
../../../3rdparty/libtiff/libtiff/tif_fax3.c
../../../3rdparty/libtiff/libtiff/tif_fax3sm.c
../../../3rdparty/libtiff/libtiff/tif_flush.c
../../../3rdparty/libtiff/libtiff/tif_getimage.c
../../../3rdparty/libtiff/libtiff/tif_luv.c
../../../3rdparty/libtiff/libtiff/tif_lzw.c
../../../3rdparty/libtiff/libtiff/tif_next.c
../../../3rdparty/libtiff/libtiff/tif_open.c
../../../3rdparty/libtiff/libtiff/tif_packbits.c
../../../3rdparty/libtiff/libtiff/tif_pixarlog.c
../../../3rdparty/libtiff/libtiff/tif_predict.c
../../../3rdparty/libtiff/libtiff/tif_print.c
../../../3rdparty/libtiff/libtiff/tif_read.c
../../../3rdparty/libtiff/libtiff/tif_strip.c
../../../3rdparty/libtiff/libtiff/tif_swab.c
../../../3rdparty/libtiff/libtiff/tif_thunder.c
../../../3rdparty/libtiff/libtiff/tif_tile.c
../../../3rdparty/libtiff/libtiff/tif_version.c
../../../3rdparty/libtiff/libtiff/tif_warning.c
../../../3rdparty/libtiff/libtiff/tif_write.c
../../../3rdparty/libtiff/libtiff/tif_zip.c
../../../3rdparty/libtiff/port/snprintf.c
INCLUDE_DIRECTORIES
../../../3rdparty/libtiff/libtiff
)
qt_extend_target(QTiffPlugin CONDITION WIN32 AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_win32.c
)
qt_extend_target(QTiffPlugin CONDITION UNIX AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/libtiff/tif_unix.c
)
qt_extend_target(QTiffPlugin CONDITION ANDROID AND NOT QT_FEATURE_system_tiff
SOURCES
../../../3rdparty/libtiff/port/lfind.c
)
qt_extend_target(QTiffPlugin CONDITION QT_FEATURE_system_zlib AND NOT QT_FEATURE_system_tiff
LIBRARIES
ZLIB::ZLIB
)
qt_extend_target(QTiffPlugin CONDITION NOT QT_FEATURE_system_tiff AND NOT QT_FEATURE_system_zlib
LIBRARIES
Qt::ZlibPrivate
)

View File

@ -1,12 +1,12 @@
# Generated from wbmp.pro. # Generated from wbmp.pro.
##################################################################### #####################################################################
## qwbmp Plugin: ## QWbmpPlugin Plugin:
##################################################################### #####################################################################
add_qt_plugin(qwbmp qt_add_plugin(QWbmpPlugin
OUTPUT_NAME qwbmp
TYPE imageformats TYPE imageformats
CLASS_NAME QWbmpPlugin
SOURCES SOURCES
main.cpp main.cpp
qwbmphandler.cpp qwbmphandler_p.h qwbmphandler.cpp qwbmphandler_p.h
@ -17,4 +17,3 @@ add_qt_plugin(qwbmp
#### Keys ignored in scope 1:.:.:wbmp.pro:<TRUE>: #### Keys ignored in scope 1:.:.:wbmp.pro:<TRUE>:
# OTHER_FILES = "wbmp.json" # OTHER_FILES = "wbmp.json"
# _LOADED = "qt_plugin"

View File

@ -1,12 +1,12 @@
# Generated from wbmp.pro. # Generated from wbmp.pro.
##################################################################### #####################################################################
## qwbmp Plugin: ## QWbmpPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qwbmp qt_add_plugin(QWbmpPlugin
OUTPUT_NAME qwbmp
TYPE imageformats TYPE imageformats
CLASS_NAME QWbmpPlugin
SOURCES SOURCES
main.cpp main.cpp
qwbmphandler.cpp qwbmphandler_p.h qwbmphandler.cpp qwbmphandler_p.h

View File

@ -1,12 +1,12 @@
# Generated from webp.pro. # Generated from webp.pro.
##################################################################### #####################################################################
## qwebp Plugin: ## QWebpPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qwebp qt_add_plugin(QWebpPlugin
OUTPUT_NAME qwebp
TYPE imageformats TYPE imageformats
CLASS_NAME QWebpPlugin
SOURCES SOURCES
main.cpp main.cpp
qwebphandler.cpp qwebphandler_p.h qwebphandler.cpp qwebphandler_p.h
@ -19,3 +19,6 @@ qt_add_plugin(qwebp
#### Keys ignored in scope 1:.:.:webp.pro:<TRUE>: #### Keys ignored in scope 1:.:.:webp.pro:<TRUE>:
# OTHER_FILES = "webp.json" # OTHER_FILES = "webp.json"
# QT_FOR_CONFIG = "imageformats-private" # QT_FOR_CONFIG = "imageformats-private"
## Scopes:
#####################################################################

View File

@ -1,12 +1,12 @@
# Generated from webp.pro. # Generated from webp.pro.
##################################################################### #####################################################################
## qwebp Plugin: ## QWebpPlugin Plugin:
##################################################################### #####################################################################
qt_add_plugin(qwebp qt_add_plugin(QWebpPlugin
OUTPUT_NAME qwebp
TYPE imageformats TYPE imageformats
CLASS_NAME QWebpPlugin
SOURCES SOURCES
main.cpp main.cpp
qwebphandler.cpp qwebphandler_p.h qwebphandler.cpp qwebphandler_p.h
@ -14,9 +14,11 @@ qt_add_plugin(qwebp
Qt::Core Qt::Core
Qt::Gui Qt::Gui
WrapWebP::WrapWebP WrapWebP::WrapWebP
Qt::Gui # special case
) )
#### Keys ignored in scope 1:.:.:webp.pro:<TRUE>: #### Keys ignored in scope 1:.:.:webp.pro:<TRUE>:
# OTHER_FILES = "webp.json" # OTHER_FILES = "webp.json"
# QT_FOR_CONFIG = "imageformats-private" # QT_FOR_CONFIG = "imageformats-private"
## Scopes:
#####################################################################

View File

@ -1,10 +1,7 @@
# Generated from tests.pro. # Generated from tests.pro.
if(NOT TARGET Qt::Test) if(QT_BUILD_STANDALONE_TESTS)
cmake_minimum_required(VERSION 3.15.0) # Add qt_find_package calls for extra dependencies that need to be found when building
project(imageformatsTests_FIXME VERSION 6.0.0 LANGUAGES C CXX) # the standalone tests here.
find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL)
find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL)
qt_set_up_standalone_tests_build()
endif() endif()
qt_build_tests() qt_build_tests()

View File

@ -1,10 +1,7 @@
# Generated from tests.pro. # Generated from tests.pro.
if(NOT TARGET Qt::Test) if(QT_BUILD_STANDALONE_TESTS)
cmake_minimum_required(VERSION 3.15.0) # Add qt_find_package calls for extra dependencies that need to be found when building
project(imageformatsTests_FIXME VERSION 6.0.0 LANGUAGES C CXX) # the standalone tests here.
find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core Test) # special case
find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS Gui) # special case
qt_set_up_standalone_tests_build()
endif() endif()
qt_build_tests() qt_build_tests()

View File

@ -15,6 +15,18 @@ qt_add_test(tst_qtiff
set_source_files_properties("../../shared/images/tiff/16bpc.tiff" set_source_files_properties("../../shared/images/tiff/16bpc.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/16bpc.tiff" PROPERTIES QT_RESOURCE_ALIAS "tiff/16bpc.tiff"
) )
set_source_files_properties("../../shared/images/tiff/big_16bpc.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_16bpc.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_grayscale.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_grayscale.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_rgb.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_rgb.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_rgb_bigendian.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_rgb_bigendian.tiff"
)
set_source_files_properties("../../shared/images/tiff/colorful.bmp" set_source_files_properties("../../shared/images/tiff/colorful.bmp"
PROPERTIES QT_RESOURCE_ALIAS "tiff/colorful.bmp" PROPERTIES QT_RESOURCE_ALIAS "tiff/colorful.bmp"
) )
@ -170,6 +182,10 @@ set_source_files_properties("../../shared/images/tiff/tiled_rgb.tiff"
) )
set(tiff_resource_files set(tiff_resource_files
"tiff/16bpc.tiff" "tiff/16bpc.tiff"
"tiff/big_16bpc.tiff"
"tiff/big_grayscale.tiff"
"tiff/big_rgb.tiff"
"tiff/big_rgb_bigendian.tiff"
"tiff/colorful.bmp" "tiff/colorful.bmp"
"tiff/corrupt-data.tif" "tiff/corrupt-data.tif"
"tiff/gray16.tiff" "tiff/gray16.tiff"

View File

@ -1,6 +1,6 @@
# Generated from benchmarks.pro. # Generated from benchmarks.pro.
if(ON) if(QT_FEATURE_system_zlib)
add_subdirectory(mng) add_subdirectory(mng)
add_subdirectory(tiff) add_subdirectory(tiff)
endif() endif()

View File

@ -16,6 +16,18 @@ qt_add_benchmark(tst_bench_qtiff
set_source_files_properties("../../shared/images/tiff/16bpc.tiff" set_source_files_properties("../../shared/images/tiff/16bpc.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/16bpc.tiff" PROPERTIES QT_RESOURCE_ALIAS "tiff/16bpc.tiff"
) )
set_source_files_properties("../../shared/images/tiff/big_16bpc.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_16bpc.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_grayscale.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_grayscale.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_rgb.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_rgb.tiff"
)
set_source_files_properties("../../shared/images/tiff/big_rgb_bigendian.tiff"
PROPERTIES QT_RESOURCE_ALIAS "tiff/big_rgb_bigendian.tiff"
)
set_source_files_properties("../../shared/images/tiff/colorful.bmp" set_source_files_properties("../../shared/images/tiff/colorful.bmp"
PROPERTIES QT_RESOURCE_ALIAS "tiff/colorful.bmp" PROPERTIES QT_RESOURCE_ALIAS "tiff/colorful.bmp"
) )
@ -171,6 +183,10 @@ set_source_files_properties("../../shared/images/tiff/tiled_rgb.tiff"
) )
set(tiff_resource_files set(tiff_resource_files
"tiff/16bpc.tiff" "tiff/16bpc.tiff"
"tiff/big_16bpc.tiff"
"tiff/big_grayscale.tiff"
"tiff/big_rgb.tiff"
"tiff/big_rgb_bigendian.tiff"
"tiff/colorful.bmp" "tiff/colorful.bmp"
"tiff/corrupt-data.tif" "tiff/corrupt-data.tif"
"tiff/gray16.tiff" "tiff/gray16.tiff"