diff options
36 files changed, 1019 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f286284 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 3.14.0) + +project(QtImageFormats + VERSION 5.14.0 + DESCRIPTION "Qt ImageFormats Libraries" + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +find_package(Qt5 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Gui) +qt_build_repo() + diff --git a/cmake/FindWrapJasper.cmake b/cmake/FindWrapJasper.cmake new file mode 100644 index 0000000..e25d21b --- /dev/null +++ b/cmake/FindWrapJasper.cmake @@ -0,0 +1,11 @@ +set(WrapJasper_FOUND OFF) +find_package(Jasper) + +if(Jasper_FOUND) + set(WrapJasper_FOUND ON) + + # Upstream package does not provide targets, only variables. So define a target. + add_library(WrapJasper::WrapJasper INTERFACE IMPORTED) + target_link_libraries(WrapJasper::WrapJasper INTERFACE ${JASPER_LIBRARIES}) + target_include_directories(WrapJasper::WrapJasper INTERFACE ${JASPER_INCLUDE_DIR}) +endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..8974e6b --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from src.pro. + +add_subdirectory(plugins) diff --git a/src/imageformats/configure.cmake b/src/imageformats/configure.cmake new file mode 100644 index 0000000..ca7e753 --- /dev/null +++ b/src/imageformats/configure.cmake @@ -0,0 +1,60 @@ + + +#### Inputs + +# input tiff +set(INPUT_tiff "undefined" CACHE STRING "") +set_property(CACHE INPUT_tiff PROPERTY STRINGS undefined no qt system) + +# input webp +set(INPUT_webp "undefined" CACHE STRING "") +set_property(CACHE INPUT_webp PROPERTY STRINGS undefined no qt system) + + + +#### Libraries + +qt_find_package(WrapJasper PROVIDED_TARGETS WrapJasper::WrapJasper) +qt_find_package(TIFF PROVIDED_TARGETS TIFF::TIFF) +qt_find_package(WrapWebP PROVIDED_TARGETS WrapWebP::WrapWebP) + + +#### Tests + + + +#### Features + +qt_feature("jasper" PRIVATE + LABEL "JasPer" + CONDITION QT_FEATURE_imageformatplugin AND WrapJasper_FOUND + DISABLE INPUT_jasper STREQUAL 'no' +) +qt_feature_definition("jasper" "QT_NO_IMAGEFORMAT_JASPER" NEGATE) +qt_feature("mng" PRIVATE + LABEL "MNG" + CONDITION libs.mng OR FIXME + DISABLE INPUT_mng STREQUAL 'no' +) +qt_feature("tiff" PRIVATE + LABEL "TIFF" + CONDITION QT_FEATURE_imageformatplugin + DISABLE INPUT_tiff STREQUAL 'no' +) +qt_feature("system_tiff" PRIVATE + LABEL " Using system libtiff" + CONDITION QT_FEATURE_tiff AND TIFF_FOUND + ENABLE INPUT_tiff STREQUAL 'system' + DISABLE INPUT_tiff STREQUAL 'qt' +) +qt_feature("webp" PRIVATE + LABEL "WEBP" + CONDITION QT_FEATURE_imageformatplugin + DISABLE INPUT_webp STREQUAL 'no' +) +qt_feature("system_webp" PRIVATE + LABEL " Using system libwebp" + CONDITION QT_FEATURE_webp AND WrapWebP_FOUND + ENABLE INPUT_webp STREQUAL 'system' + DISABLE INPUT_webp STREQUAL 'qt' +) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt new file mode 100644 index 0000000..c1efdbc --- /dev/null +++ b/src/plugins/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from plugins.pro. + +add_subdirectory(imageformats) diff --git a/src/plugins/imageformats/.prev_CMakeLists.txt b/src/plugins/imageformats/.prev_CMakeLists.txt new file mode 100644 index 0000000..e401b98 --- /dev/null +++ b/src/plugins/imageformats/.prev_CMakeLists.txt @@ -0,0 +1,41 @@ +# Generated from imageformats.pro. + +add_subdirectory(tga) +add_subdirectory(wbmp) + +if(QT_FEATURE_tiff) + add_subdirectory(tiff) +endif() + +if(QT_FEATURE_webp) + add_subdirectory(webp) +endif() + +if(APPLE) + add_subdirectory(macheif) +endif() + +if(QT_FEATURE_regularexpression) + add_subdirectory(icns) +endif() + +if(QT_FEATURE_mng) + add_subdirectory(mng) +endif() + +if(QT_FEATURE_jasper) + add_subdirectory(jp2) +endif() + +else() + + if(APPLE) + add_subdirectory(macjp2) + endif() +endif() + +if(WINRT) + ### remove_subdirectory("tiff") + ### remove_subdirectory("tga") + ### remove_subdirectory("webp") +endif() diff --git a/src/plugins/imageformats/CMakeLists.txt b/src/plugins/imageformats/CMakeLists.txt new file mode 100644 index 0000000..993925b --- /dev/null +++ b/src/plugins/imageformats/CMakeLists.txt @@ -0,0 +1,50 @@ +# Generated from imageformats.pro. + +# special case begin +qt_feature_module_begin( + NO_MODULE + PUBLIC_FILE "qtimageformats-config.h" + PRIVATE_FILE "qtimageformats-config_p.h" +) +include(../../imageformats/configure.cmake) +qt_feature_module_end(NO_MODULE) +# special case end + +add_subdirectory(tga) +add_subdirectory(wbmp) + +if(QT_FEATURE_tiff) + add_subdirectory(tiff) +endif() + +if(QT_FEATURE_webp) + add_subdirectory(webp) +endif() + +if(APPLE) + add_subdirectory(macheif) +endif() + +if(QT_FEATURE_regularexpression) + add_subdirectory(icns) +endif() + +if(QT_FEATURE_mng AND OFF) # special case TODO: FiXME + add_subdirectory(mng) +endif() + +if(QT_FEATURE_jasper) + add_subdirectory(jp2) +# endif() special case: remove +else() + + if(APPLE) + add_subdirectory(macjp2) + endif() +endif() + +if(WINRT) + ### remove_subdirectory("tiff") + ### remove_subdirectory("tga") + ### remove_subdirectory("webp") +endif() diff --git a/src/plugins/imageformats/icns/.prev_CMakeLists.txt b/src/plugins/imageformats/icns/.prev_CMakeLists.txt new file mode 100644 index 0000000..e3e4962 --- /dev/null +++ b/src/plugins/imageformats/icns/.prev_CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from icns.pro. + +##################################################################### +## qicns Plugin: +##################################################################### + +add_qt_plugin(qicns + TYPE imageformats + SOURCES + main.cpp + qicnshandler.cpp qicnshandler_p.h + DEFINES + QT_NO_CAST_FROM_ASCII + QT_NO_CAST_TO_ASCII +) + +#### Keys ignored in scope 1:.:.:icns.pro:<TRUE>: +# OTHER_FILES = "icns.json" +# PLUGIN_CLASS_NAME = "QICNSPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/icns/CMakeLists.txt b/src/plugins/imageformats/icns/CMakeLists.txt new file mode 100644 index 0000000..55f07f2 --- /dev/null +++ b/src/plugins/imageformats/icns/CMakeLists.txt @@ -0,0 +1,22 @@ +# Generated from icns.pro. + +##################################################################### +## qicns Plugin: +##################################################################### + +add_qt_plugin(qicns + TYPE imageformats + SOURCES + main.cpp + qicnshandler.cpp qicnshandler_p.h + DEFINES + QT_NO_CAST_FROM_ASCII + QT_NO_CAST_TO_ASCII + LIBRARIES # special case + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:.:icns.pro:<TRUE>: +# OTHER_FILES = "icns.json" +# PLUGIN_CLASS_NAME = "QICNSPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/jp2/CMakeLists.txt b/src/plugins/imageformats/jp2/CMakeLists.txt new file mode 100644 index 0000000..a4594e4 --- /dev/null +++ b/src/plugins/imageformats/jp2/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from jp2.pro. + +##################################################################### +## qjp2 Plugin: +##################################################################### + +add_qt_plugin(qjp2 + TYPE imageformats + SOURCES + main.cpp + qjp2handler.cpp qjp2handler_p.h + LIBRARIES + WrapJasper::WrapJasper + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:.:jp2.pro:<TRUE>: +# OTHER_FILES = "jp2.json" +# PLUGIN_CLASS_NAME = "QJp2Plugin" +# QT_FOR_CONFIG = "imageformats-private" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/macheif/.prev_CMakeLists.txt b/src/plugins/imageformats/macheif/.prev_CMakeLists.txt new file mode 100644 index 0000000..5d1b0b7 --- /dev/null +++ b/src/plugins/imageformats/macheif/.prev_CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from macheif.pro. + +##################################################################### +## qmacheif Plugin: +##################################################################### + +add_qt_plugin(qmacheif + TYPE imageformats + SOURCES + ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h + main.cpp + qmacheifhandler.cpp qmacheifhandler.h + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + ${FWCoreFoundation} + ${FWCoreGraphics} + ${FWImageIO} + Qt::Core + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>: +# OTHER_FILES = "macheif.json" +# PLUGIN_CLASS_NAME = "QMacHeifPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/macheif/CMakeLists.txt b/src/plugins/imageformats/macheif/CMakeLists.txt new file mode 100644 index 0000000..7043c73 --- /dev/null +++ b/src/plugins/imageformats/macheif/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from macheif.pro. + +##################################################################### +## qmacheif Plugin: +##################################################################### + +# special case begin +find_library(FWCoreFoundation CoreFoundation) +find_library(FWCoreGraphics CoreGraphics) +find_library(FWImageIO ImageIO) +# special case end + +add_qt_plugin(qmacheif + TYPE imageformats + SOURCES + ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h + main.cpp + qmacheifhandler.cpp qmacheifhandler.h + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + ${FWCoreFoundation} + ${FWCoreGraphics} + ${FWImageIO} + Qt::Core + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:macheif.pro:<TRUE>: +# OTHER_FILES = "macheif.json" +# PLUGIN_CLASS_NAME = "QMacHeifPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/macjp2/CMakeLists.txt b/src/plugins/imageformats/macjp2/CMakeLists.txt new file mode 100644 index 0000000..ec4c739 --- /dev/null +++ b/src/plugins/imageformats/macjp2/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from macjp2.pro. + +##################################################################### +## qmacjp2 Plugin: +##################################################################### + +add_qt_plugin(qmacjp2 + TYPE imageformats + SOURCES + ../shared/qiiofhelpers.cpp ../shared/qiiofhelpers_p.h + main.cpp + qmacjp2handler.cpp qmacjp2handler.h + INCLUDE_DIRECTORIES + ../shared + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + ${FWCoreFoundation} + ${FWCoreGraphics} + ${FWImageIO} + Qt::Core + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:macjp2.pro:<TRUE>: +# OTHER_FILES = "macjp2.json" +# PLUGIN_CLASS_NAME = "QMacJp2Plugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/mng/CMakeLists.txt b/src/plugins/imageformats/mng/CMakeLists.txt new file mode 100644 index 0000000..dfd28ac --- /dev/null +++ b/src/plugins/imageformats/mng/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from mng.pro. + +##################################################################### +## qmng Plugin: +##################################################################### + +add_qt_plugin(qmng + TYPE imageformats + SOURCES + main.cpp + qmnghandler.cpp qmnghandler_p.h +) + +#### Keys ignored in scope 1:.:.:mng.pro:<TRUE>: +# OTHER_FILES = "mng.json" +# PLUGIN_CLASS_NAME = "QMngPlugin" +# _LOADED = "qt_plugin" + +## Scopes: +##################################################################### + +extend_target(qmng CONDITION MSVC + PUBLIC_LIBRARIES + libmng.lib +) + +extend_target(qmng CONDITION NOT MSVC + PUBLIC_LIBRARIES + mng +) diff --git a/src/plugins/imageformats/tga/.prev_CMakeLists.txt b/src/plugins/imageformats/tga/.prev_CMakeLists.txt new file mode 100644 index 0000000..a78ed83 --- /dev/null +++ b/src/plugins/imageformats/tga/.prev_CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from tga.pro. + +##################################################################### +## qtga Plugin: +##################################################################### + +add_qt_plugin(qtga + TYPE imageformats + SOURCES + main.cpp + qtgafile.cpp qtgafile.h + qtgahandler.cpp qtgahandler.h +) + +#### Keys ignored in scope 1:.:.:tga.pro:<TRUE>: +# OTHER_FILES = "tga.json" +# PLUGIN_CLASS_NAME = "QTgaPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/tga/CMakeLists.txt b/src/plugins/imageformats/tga/CMakeLists.txt new file mode 100644 index 0000000..03b8e20 --- /dev/null +++ b/src/plugins/imageformats/tga/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from tga.pro. + +##################################################################### +## qtga Plugin: +##################################################################### + +add_qt_plugin(qtga + TYPE imageformats + SOURCES + main.cpp + qtgafile.cpp qtgafile.h + qtgahandler.cpp qtgahandler.h + LIBRARIES # special case + Qt::Gui # special case + +) + +#### Keys ignored in scope 1:.:.:tga.pro:<TRUE>: +# OTHER_FILES = "tga.json" +# PLUGIN_CLASS_NAME = "QTgaPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/tiff/.prev_CMakeLists.txt b/src/plugins/imageformats/tiff/.prev_CMakeLists.txt new file mode 100644 index 0000000..e49352d --- /dev/null +++ b/src/plugins/imageformats/tiff/.prev_CMakeLists.txt @@ -0,0 +1,85 @@ +# Generated from tiff.pro. + +##################################################################### +## qtiff Plugin: +##################################################################### + +add_qt_plugin(qtiff + TYPE imageformats + SOURCES + main.cpp + qtiffhandler.cpp qtiffhandler_p.h +) + +#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: +# OTHER_FILES = "tiff.json" +# PLUGIN_CLASS_NAME = "QTiffPlugin" +# _LOADED = "qt_plugin" + +## Scopes: +##################################################################### + +extend_target(qtiff CONDITION config_libtiff AND (UNIX OR mingw) + PUBLIC_LIBRARIES + TIFF::TIFF +) + +extend_target(qtiff CONDITION WIN32 AND config_libtiff AND NOT mingw + PUBLIC_LIBRARIES + libtiff.lib +) + +extend_target(qtiff CONDITION NOT config_libtiff + 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 +) + +extend_target(qtiff CONDITION WIN32 AND NOT config_libtiff + SOURCES + ../../../3rdparty/libtiff/libtiff/tif_win32.c +) + +extend_target(qtiff CONDITION UNIX AND NOT config_libtiff + SOURCES + ../../../3rdparty/libtiff/libtiff/tif_unix.c +) + +extend_target(qtiff CONDITION ANDROID AND NOT config_libtiff + SOURCES + ../../../3rdparty/libtiff/port/lfind.c +) diff --git a/src/plugins/imageformats/tiff/CMakeLists.txt b/src/plugins/imageformats/tiff/CMakeLists.txt new file mode 100644 index 0000000..1e5b555 --- /dev/null +++ b/src/plugins/imageformats/tiff/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from tiff.pro. + +##################################################################### +## qtiff Plugin: +##################################################################### + +qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB) # special case + +add_qt_plugin(qtiff + TYPE imageformats + SOURCES + main.cpp + qtiffhandler.cpp qtiffhandler_p.h + LIBRARIES # special case + ZLIB::ZLIB # special case + PUBLIC_LIBRARIES # special case + Qt::Gui # special case + TIFF::TIFF # special case +) + +#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: +# OTHER_FILES = "tiff.json" +# PLUGIN_CLASS_NAME = "QTiffPlugin" +# _LOADED = "qt_plugin" + +## Scopes: +##################################################################### + +# special case: remove 3rdparty code diff --git a/src/plugins/imageformats/wbmp/.prev_CMakeLists.txt b/src/plugins/imageformats/wbmp/.prev_CMakeLists.txt new file mode 100644 index 0000000..925cdec --- /dev/null +++ b/src/plugins/imageformats/wbmp/.prev_CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from wbmp.pro. + +##################################################################### +## qwbmp Plugin: +##################################################################### + +add_qt_plugin(qwbmp + TYPE imageformats + SOURCES + main.cpp + qwbmphandler.cpp qwbmphandler_p.h +) + +#### Keys ignored in scope 1:.:.:wbmp.pro:<TRUE>: +# OTHER_FILES = "wbmp.json" +# PLUGIN_CLASS_NAME = "QWbmpPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/wbmp/CMakeLists.txt b/src/plugins/imageformats/wbmp/CMakeLists.txt new file mode 100644 index 0000000..12d7501 --- /dev/null +++ b/src/plugins/imageformats/wbmp/CMakeLists.txt @@ -0,0 +1,19 @@ +# Generated from wbmp.pro. + +##################################################################### +## qwbmp Plugin: +##################################################################### + +add_qt_plugin(qwbmp + TYPE imageformats + SOURCES + main.cpp + qwbmphandler.cpp qwbmphandler_p.h + LIBRARIES # special case + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:.:wbmp.pro:<TRUE>: +# OTHER_FILES = "wbmp.json" +# PLUGIN_CLASS_NAME = "QWbmpPlugin" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/webp/.prev_CMakeLists.txt b/src/plugins/imageformats/webp/.prev_CMakeLists.txt new file mode 100644 index 0000000..eccbe8e --- /dev/null +++ b/src/plugins/imageformats/webp/.prev_CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from webp.pro. + +##################################################################### +## qwebp Plugin: +##################################################################### + +add_qt_plugin(qwebp + TYPE imageformats + SOURCES + main.cpp + qwebphandler.cpp qwebphandler_p.h + PUBLIC_LIBRARIES + WrapWebP::WrapWebP +) + +#### Keys ignored in scope 1:.:.:webp.pro:<TRUE>: +# OTHER_FILES = "webp.json" +# PLUGIN_CLASS_NAME = "QWebpPlugin" +# QT_FOR_CONFIG = "imageformats-private" +# _LOADED = "qt_plugin" diff --git a/src/plugins/imageformats/webp/CMakeLists.txt b/src/plugins/imageformats/webp/CMakeLists.txt new file mode 100644 index 0000000..2f81f42 --- /dev/null +++ b/src/plugins/imageformats/webp/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from webp.pro. + +##################################################################### +## qwebp Plugin: +##################################################################### + +add_qt_plugin(qwebp + TYPE imageformats + SOURCES + main.cpp + qwebphandler.cpp qwebphandler_p.h + PUBLIC_LIBRARIES + WrapWebP::WrapWebP + Qt::Gui # special case +) + +#### Keys ignored in scope 1:.:.:webp.pro:<TRUE>: +# OTHER_FILES = "webp.json" +# PLUGIN_CLASS_NAME = "QWebpPlugin" +# QT_FOR_CONFIG = "imageformats-private" +# _LOADED = "qt_plugin" diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..f695a22 --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,4 @@ +# Generated from tests.pro. + +add_subdirectory(auto) +add_subdirectory(benchmarks) diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 0000000..b671097 --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from auto.pro. + +add_subdirectory(tga) +add_subdirectory(wbmp) +add_subdirectory(dds) +add_subdirectory(icns) +add_subdirectory(jp2) +add_subdirectory(webp) +add_subdirectory(heif) +add_subdirectory(mng) +add_subdirectory(tiff) diff --git a/tests/auto/dds/CMakeLists.txt b/tests/auto/dds/CMakeLists.txt new file mode 100644 index 0000000..357b424 --- /dev/null +++ b/tests/auto/dds/CMakeLists.txt @@ -0,0 +1,69 @@ +# Generated from dds.pro. + +##################################################################### +## tst_qdds Test: +##################################################################### + +add_qt_test(tst_qdds + SOURCES + tst_qdds.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qdds "dds" PREFIX "/" BASE "../../shared/images" FILES + dds/A16B16G16R16.dds + dds/A16B16G16R16F.dds + dds/A1R5G5B5.dds + dds/A2B10G10R10.dds + dds/A2R10G10B10.dds + dds/A2W10V10U10.dds + dds/A32B32G32R32F.dds + dds/A4L4.dds + dds/A4R4G4B4.dds + dds/A8.dds + dds/A8B8G8R8.dds + dds/A8L8.dds + dds/A8R3G3B2.dds + dds/A8R8G8B8.2.dds + dds/A8R8G8B8.dds + dds/ATI2.dds + dds/CxV8U8.dds + dds/DXT1.dds + dds/DXT2.dds + dds/DXT3.dds + dds/DXT4.dds + dds/DXT5.dds + dds/G16R16.dds + dds/G16R16F.dds + dds/G32R32F.dds + dds/G8R8_G8B8.dds + dds/L16.dds + dds/L6V5U5.dds + dds/L8.dds + dds/P4.dds + dds/P8.dds + dds/Q16W16V16U16.dds + dds/Q8W8V8U8.dds + dds/R16F.dds + dds/R32F.dds + dds/R3G3B2.dds + dds/R5G6B5.dds + dds/R8G8B8.dds + dds/R8G8_B8G8.dds + dds/RXGB.dds + dds/UYVY.dds + dds/V16U16.dds + dds/V8U8.dds + dds/X1R5G5B5.dds + dds/X4R4G4B4.dds + dds/X8B8G8R8.dds + dds/X8L8V8U8.dds + dds/X8R8G8B8.dds + dds/YUY2.dds + dds/mipmaps.dds) + + +#### Keys ignored in scope 1:.:.:dds.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/heif/CMakeLists.txt b/tests/auto/heif/CMakeLists.txt new file mode 100644 index 0000000..0412996 --- /dev/null +++ b/tests/auto/heif/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from heif.pro. + +##################################################################### +## tst_qheif Test: +##################################################################### + +add_qt_test(tst_qheif + SOURCES + tst_qheif.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qheif "heif" PREFIX "/" BASE "../../shared/images" FILES + heif/col320x480.heic + heif/newlogoCCW.heic) + + +#### Keys ignored in scope 1:.:.:heif.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/icns/CMakeLists.txt b/tests/auto/icns/CMakeLists.txt new file mode 100644 index 0000000..0d1e34b --- /dev/null +++ b/tests/auto/icns/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from icns.pro. + +##################################################################### +## tst_qicns Test: +##################################################################### + +add_qt_test(tst_qicns + SOURCES + tst_qicns.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qicns "icns" PREFIX "/" BASE "../../shared/images" FILES + icns/test-32bit.icns + icns/test-jp2.icns + icns/test-legacy.icns + icns/test-png.icns + icns/test-variants.icns + icns/test-write-1024.png + icns/test-write-128.png + icns/test-write-16.png + icns/test-write-256.png + icns/test-write-32.png + icns/test-write-512.png + icns/test-write-64.png) + + +#### Keys ignored in scope 1:.:.:icns.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/jp2/CMakeLists.txt b/tests/auto/jp2/CMakeLists.txt new file mode 100644 index 0000000..b2b1563 --- /dev/null +++ b/tests/auto/jp2/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from jp2.pro. + +##################################################################### +## tst_qjp2 Test: +##################################################################### + +add_qt_test(tst_qjp2 + SOURCES + tst_qjp2.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qjp2 "jp2" PREFIX "/" BASE "../../shared/images" FILES + jp2/logo.bmp + jp2/logo.jp2) + + +#### Keys ignored in scope 1:.:.:jp2.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/mng/CMakeLists.txt b/tests/auto/mng/CMakeLists.txt new file mode 100644 index 0000000..a60a2cc --- /dev/null +++ b/tests/auto/mng/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from mng.pro. + +##################################################################### +## tst_qmng Test: +##################################################################### + +add_qt_test(tst_qmng + SOURCES + tst_qmng.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qmng "mng" PREFIX "/" BASE "../../shared/images" FILES + mng/animation.mng + mng/ball.mng + mng/corrupt.mng + mng/dutch.mng + mng/fire.mng) + + +#### Keys ignored in scope 1:.:.:mng.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/tga/CMakeLists.txt b/tests/auto/tga/CMakeLists.txt new file mode 100644 index 0000000..25c1441 --- /dev/null +++ b/tests/auto/tga/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from tga.pro. + +##################################################################### +## tst_qtga Test: +##################################################################### + +add_qt_test(tst_qtga + SOURCES + tst_qtga.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qtga "tga" PREFIX "/" BASE "../../shared/images" FILES + tga/test-flag.tga) + + +#### Keys ignored in scope 1:.:.:tga.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/tiff/CMakeLists.txt b/tests/auto/tiff/CMakeLists.txt new file mode 100644 index 0000000..f804003 --- /dev/null +++ b/tests/auto/tiff/CMakeLists.txt @@ -0,0 +1,71 @@ +# Generated from tiff.pro. + +##################################################################### +## tst_qtiff Test: +##################################################################### + +add_qt_test(tst_qtiff + SOURCES + tst_qtiff.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qtiff "tiff" PREFIX "/" BASE "../../shared/images" FILES + tiff/16bpc.tiff + tiff/colorful.bmp + tiff/corrupt-data.tif + tiff/gray16.tiff + tiff/grayscale-ref.tif + tiff/grayscale.tif + tiff/image.tif + tiff/image_100dpi.tif + tiff/indexed_orientation_1.tiff + tiff/indexed_orientation_2.tiff + tiff/indexed_orientation_3.tiff + tiff/indexed_orientation_4.tiff + tiff/indexed_orientation_5.tiff + tiff/indexed_orientation_6.tiff + tiff/indexed_orientation_7.tiff + tiff/indexed_orientation_8.tiff + tiff/mono_orientation_1.tiff + tiff/mono_orientation_2.tiff + tiff/mono_orientation_3.tiff + tiff/mono_orientation_4.tiff + tiff/mono_orientation_5.tiff + tiff/mono_orientation_6.tiff + tiff/mono_orientation_7.tiff + tiff/mono_orientation_8.tiff + tiff/multipage.tiff + tiff/oddsize_grayscale.tiff + tiff/oddsize_mono.tiff + tiff/original_grayscale.tiff + tiff/original_indexed.tiff + tiff/original_mono.tiff + tiff/original_rgb.tiff + tiff/rgb_orientation_1.tiff + tiff/rgb_orientation_2.tiff + tiff/rgb_orientation_3.tiff + tiff/rgb_orientation_4.tiff + tiff/rgb_orientation_5.tiff + tiff/rgb_orientation_6.tiff + tiff/rgb_orientation_7.tiff + tiff/rgb_orientation_8.tiff + tiff/rgba_adobedeflate_littleendian.tif + tiff/rgba_lzw_littleendian.tif + tiff/rgba_nocompression_bigendian.tif + tiff/rgba_nocompression_littleendian.tif + tiff/rgba_packbits_littleendian.tif + tiff/rgba_zipdeflate_littleendian.tif + tiff/teapot.tiff + tiff/tiled_grayscale.tiff + tiff/tiled_indexed.tiff + tiff/tiled_mono.tiff + tiff/tiled_oddsize_grayscale.tiff + tiff/tiled_oddsize_mono.tiff + tiff/tiled_rgb.tiff) + + +#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/wbmp/CMakeLists.txt b/tests/auto/wbmp/CMakeLists.txt new file mode 100644 index 0000000..2db456b --- /dev/null +++ b/tests/auto/wbmp/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from wbmp.pro. + +##################################################################### +## tst_qwbmp Test: +##################################################################### + +add_qt_test(tst_qwbmp + SOURCES + tst_qwbmp.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qwbmp "wbmp" PREFIX "/" BASE "../../shared/images" FILES + wbmp/qt-logo-big.wbmp + wbmp/qt-logo-small.wbmp) + + +#### Keys ignored in scope 1:.:.:wbmp.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/auto/webp/CMakeLists.txt b/tests/auto/webp/CMakeLists.txt new file mode 100644 index 0000000..165a0a9 --- /dev/null +++ b/tests/auto/webp/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from webp.pro. + +##################################################################### +## tst_qwebp Test: +##################################################################### + +add_qt_test(tst_qwebp + SOURCES + tst_qwebp.cpp + PUBLIC_LIBRARIES + Qt::Gui +) + +# Resources: +add_qt_resource(tst_qwebp "webp" PREFIX "/" FILES + images/kollada.png + images/kollada.webp + images/kollada_animation.webp + images/kollada_lossless.webp + images/kollada_noalpha.webp) + + +#### Keys ignored in scope 1:.:.:webp.pro:<TRUE>: +# CONFIG = "-app_bundle" "testcase" diff --git a/tests/benchmarks/CMakeLists.txt b/tests/benchmarks/CMakeLists.txt new file mode 100644 index 0000000..16d5c86 --- /dev/null +++ b/tests/benchmarks/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from benchmarks.pro. + + +if(ON) + add_subdirectory(mng) + add_subdirectory(tiff) +endif() diff --git a/tests/benchmarks/mng/CMakeLists.txt b/tests/benchmarks/mng/CMakeLists.txt new file mode 100644 index 0000000..ff56666 --- /dev/null +++ b/tests/benchmarks/mng/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from mng.pro. + +##################################################################### +## tst_bench_qmng Binary: +##################################################################### + +add_qt_executable(tst_bench_qmng + GUI + SOURCES + tst_qmng.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test +) + +# Resources: +add_qt_resource(tst_bench_qmng "mng" PREFIX "/" BASE "../../shared/images" FILES + mng/animation.mng + mng/ball.mng + mng/corrupt.mng + mng/dutch.mng + mng/fire.mng) + + +#### Keys ignored in scope 1:.:.:mng.pro:<TRUE>: +# CONFIG = "-app_bundle" diff --git a/tests/benchmarks/tiff/CMakeLists.txt b/tests/benchmarks/tiff/CMakeLists.txt new file mode 100644 index 0000000..6ca9d8a --- /dev/null +++ b/tests/benchmarks/tiff/CMakeLists.txt @@ -0,0 +1,73 @@ +# Generated from tiff.pro. + +##################################################################### +## tst_bench_qtiff Binary: +##################################################################### + +add_qt_executable(tst_bench_qtiff + GUI + SOURCES + tst_qtiff.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Test +) + +# Resources: +add_qt_resource(tst_bench_qtiff "tiff" PREFIX "/" BASE "../../shared/images" FILES + tiff/16bpc.tiff + tiff/colorful.bmp + tiff/corrupt-data.tif + tiff/gray16.tiff + tiff/grayscale-ref.tif + tiff/grayscale.tif + tiff/image.tif + tiff/image_100dpi.tif + tiff/indexed_orientation_1.tiff + tiff/indexed_orientation_2.tiff + tiff/indexed_orientation_3.tiff + tiff/indexed_orientation_4.tiff + tiff/indexed_orientation_5.tiff + tiff/indexed_orientation_6.tiff + tiff/indexed_orientation_7.tiff + tiff/indexed_orientation_8.tiff + tiff/mono_orientation_1.tiff + tiff/mono_orientation_2.tiff + tiff/mono_orientation_3.tiff + tiff/mono_orientation_4.tiff + tiff/mono_orientation_5.tiff + tiff/mono_orientation_6.tiff + tiff/mono_orientation_7.tiff + tiff/mono_orientation_8.tiff + tiff/multipage.tiff + tiff/oddsize_grayscale.tiff + tiff/oddsize_mono.tiff + tiff/original_grayscale.tiff + tiff/original_indexed.tiff + tiff/original_mono.tiff + tiff/original_rgb.tiff + tiff/rgb_orientation_1.tiff + tiff/rgb_orientation_2.tiff + tiff/rgb_orientation_3.tiff + tiff/rgb_orientation_4.tiff + tiff/rgb_orientation_5.tiff + tiff/rgb_orientation_6.tiff + tiff/rgb_orientation_7.tiff + tiff/rgb_orientation_8.tiff + tiff/rgba_adobedeflate_littleendian.tif + tiff/rgba_lzw_littleendian.tif + tiff/rgba_nocompression_bigendian.tif + tiff/rgba_nocompression_littleendian.tif + tiff/rgba_packbits_littleendian.tif + tiff/rgba_zipdeflate_littleendian.tif + tiff/teapot.tiff + tiff/tiled_grayscale.tiff + tiff/tiled_indexed.tiff + tiff/tiled_mono.tiff + tiff/tiled_oddsize_grayscale.tiff + tiff/tiled_oddsize_mono.tiff + tiff/tiled_rgb.tiff) + + +#### Keys ignored in scope 1:.:.:tiff.pro:<TRUE>: +# CONFIG = "-app_bundle" |