diff options
-rw-r--r-- | .prev_CMakeLists.txt | 15 | ||||
-rw-r--r-- | CMakeLists.txt | 14 | ||||
-rw-r--r-- | coin/module_config.yaml | 12 | ||||
-rw-r--r-- | dependencies.yaml | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/plugins/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/plugins/iconengines/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/plugins/iconengines/svgiconengine/CMakeLists.txt | 24 | ||||
-rw-r--r-- | src/plugins/imageformats/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/plugins/imageformats/svg/CMakeLists.txt | 20 | ||||
-rw-r--r-- | src/svg/.prev_CMakeLists.txt | 52 | ||||
-rw-r--r-- | src/svg/CMakeLists.txt | 54 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 8 | ||||
-rw-r--r-- | tests/auto/.prev_CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/auto/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/qicon_svg/CMakeLists.txt | 40 | ||||
-rw-r--r-- | tests/auto/qsvgdevice/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/qsvggenerator/CMakeLists.txt | 31 | ||||
-rw-r--r-- | tests/auto/qsvgplugin/CMakeLists.txt | 42 | ||||
-rw-r--r-- | tests/auto/qsvgrenderer/CMakeLists.txt | 31 |
20 files changed, 392 insertions, 4 deletions
diff --git a/.prev_CMakeLists.txt b/.prev_CMakeLists.txt new file mode 100644 index 0000000..ee686dc --- /dev/null +++ b/.prev_CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qtsvg.pro. + +cmake_minimum_required(VERSION 3.15.0) + +project(QtSvg + VERSION 6.0.0 + DESCRIPTION "Qt Svg Libraries" + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core SET_ME_TO_SOMETHING_USEFUL) +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) + +qt_build_repo() diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7b8f368 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,14 @@ +# Generated from qtsvg.pro. + +cmake_minimum_required(VERSION 3.15.0) + +project(QtSvg + VERSION 6.0.0 + DESCRIPTION "Qt SVG Libraries" # special case + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Widgets) # special case +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Xml) # special case for tests +qt_build_repo() diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 0000000..7f31a55 --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,12 @@ +version: 2 +accept_configuration: + condition: property + property: features + not_contains_value: Disable + +instructions: + Build: + - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml" + + Test: + - !include "{{qt/qtbase}}/coin_module_test_template_v2.yaml" diff --git a/dependencies.yaml b/dependencies.yaml deleted file mode 100644 index aa79f55..0000000 --- a/dependencies.yaml +++ /dev/null @@ -1,4 +0,0 @@ -dependencies: - ../qtbase: - ref: dfaa61482c483117b2d9728c0e9487fc2f8196c9 - required: true diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..acf82c0 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(svg) +add_subdirectory(plugins) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt new file mode 100644 index 0000000..ca95765 --- /dev/null +++ b/src/plugins/CMakeLists.txt @@ -0,0 +1,2 @@ +add_subdirectory(iconengines) +add_subdirectory(imageformats) diff --git a/src/plugins/iconengines/CMakeLists.txt b/src/plugins/iconengines/CMakeLists.txt new file mode 100644 index 0000000..6a2b160 --- /dev/null +++ b/src/plugins/iconengines/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(svgiconengine) diff --git a/src/plugins/iconengines/svgiconengine/CMakeLists.txt b/src/plugins/iconengines/svgiconengine/CMakeLists.txt new file mode 100644 index 0000000..2ddb15c --- /dev/null +++ b/src/plugins/iconengines/svgiconengine/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from svgiconengine.pro. + +##################################################################### +## qsvgicon Plugin: +##################################################################### + +qt_add_plugin(qsvgicon + TYPE iconengines + CLASS_NAME QSvgIconPlugin + SOURCES + main.cpp + qsvgiconengine.cpp qsvgiconengine.h + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Svg +) + +#### Keys ignored in scope 1:.:.:svgiconengine.pro:<TRUE>: +# OTHER_FILES = "qsvgiconengine.json" "qsvgiconengine-nocompress.json" +# PLUGIN_EXTENDS = "svg" diff --git a/src/plugins/imageformats/CMakeLists.txt b/src/plugins/imageformats/CMakeLists.txt new file mode 100644 index 0000000..d0c989a --- /dev/null +++ b/src/plugins/imageformats/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(svg) diff --git a/src/plugins/imageformats/svg/CMakeLists.txt b/src/plugins/imageformats/svg/CMakeLists.txt new file mode 100644 index 0000000..d7818c9 --- /dev/null +++ b/src/plugins/imageformats/svg/CMakeLists.txt @@ -0,0 +1,20 @@ +# Generated from svg.pro. + +##################################################################### +## qsvg Plugin: +##################################################################### + +qt_add_plugin(qsvg + TYPE imageformats + CLASS_NAME QSvgPlugin + SOURCES + main.cpp + qsvgiohandler.cpp qsvgiohandler.h + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Svg +) + +#### Keys ignored in scope 1:.:.:svg.pro:<TRUE>: +# PLUGIN_EXTENDS = "svg" diff --git a/src/svg/.prev_CMakeLists.txt b/src/svg/.prev_CMakeLists.txt new file mode 100644 index 0000000..b0bb9b6 --- /dev/null +++ b/src/svg/.prev_CMakeLists.txt @@ -0,0 +1,52 @@ +# Generated from svg.pro. + +##################################################################### +## Svg Module: +##################################################################### + +qt_add_module(Svg + SOURCES + qgraphicssvgitem.cpp qgraphicssvgitem.h + qsvgfont.cpp qsvgfont_p.h + qsvggenerator.cpp qsvggenerator.h + qsvggraphics.cpp qsvggraphics_p.h + qsvghandler.cpp qsvghandler_p.h + qsvgnode.cpp qsvgnode_p.h + qsvgrenderer.cpp qsvgrenderer.h + qsvgstructure.cpp qsvgstructure_p.h + qsvgstyle.cpp qsvgstyle_p.h + qsvgtinydocument.cpp qsvgtinydocument_p.h + qsvgwidget.cpp qsvgwidget.h + qtsvgglobal.h + DEFINES + QT_NO_USING_NAMESPACE + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + ZLIB::ZLIB + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui +) + +## Scopes: +##################################################################### + +qt_extend_target(Svg CONDITION TARGET Qt::Widgets + LIBRARIES + Qt::WidgetsPrivate + PUBLIC_LIBRARIES + Qt::Widgets +) + +qt_extend_target(Svg CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i386") + LINK_OPTIONS + "/BASE:0x66000000" +) + +#### Keys ignored in scope 4:.:.:svg.pro:solaris-cc_x_: +# QMAKE_CXXFLAGS_RELEASE = "--O2" +qt_add_docs(Svg + doc/qtsvg.qdocconf +) + diff --git a/src/svg/CMakeLists.txt b/src/svg/CMakeLists.txt new file mode 100644 index 0000000..0906f1d --- /dev/null +++ b/src/svg/CMakeLists.txt @@ -0,0 +1,54 @@ +# Generated from svg.pro. + +##################################################################### +## Svg Module: +##################################################################### + +find_package(ZLIB MODULE REQUIRED) # special case + +qt_add_module(Svg + SOURCES + qgraphicssvgitem.cpp qgraphicssvgitem.h + qsvgfont.cpp qsvgfont_p.h + qsvggenerator.cpp qsvggenerator.h + qsvggraphics.cpp qsvggraphics_p.h + qsvghandler.cpp qsvghandler_p.h + qsvgnode.cpp qsvgnode_p.h + qsvgrenderer.cpp qsvgrenderer.h + qsvgstructure.cpp qsvgstructure_p.h + qsvgstyle.cpp qsvgstyle_p.h + qsvgtinydocument.cpp qsvgtinydocument_p.h + qsvgwidget.cpp qsvgwidget.h + qtsvgglobal.h + DEFINES + QT_NO_USING_NAMESPACE + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + ZLIB::ZLIB + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui +) + +## Scopes: +##################################################################### + +qt_extend_target(Svg CONDITION TARGET Qt::Widgets + LIBRARIES + Qt::WidgetsPrivate + PUBLIC_LIBRARIES + Qt::Widgets +) + +qt_extend_target(Svg CONDITION MSVC AND (TEST_architecture_arch STREQUAL "i386") + LINK_OPTIONS + "/BASE:0x66000000" +) + +#### Keys ignored in scope 4:.:.:svg.pro:solaris-cc_x_: +# QMAKE_CXXFLAGS_RELEASE = "--O2" +qt_add_docs(Svg + doc/qtsvg.qdocconf +) + diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..67abeef --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,8 @@ +# special case begin +if(QT_BUILD_STANDALONE_TESTS) + qt_find_package(Qt6 REQUIRED COMPONENTS BuildInternals Core Test) + qt_find_package(Qt6 COMPONENTS Svg Widgets Xml) +endif() +# special case end + +qt_build_tests() diff --git a/tests/auto/.prev_CMakeLists.txt b/tests/auto/.prev_CMakeLists.txt new file mode 100644 index 0000000..d33db21 --- /dev/null +++ b/tests/auto/.prev_CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from auto.pro. + +if(TARGET Qt::Widgets) + add_subdirectory(qsvgdevice) + add_subdirectory(qsvggenerator) + add_subdirectory(qsvgplugin) + add_subdirectory(qicon_svg) + add_subdirectory(cmake) + add_subdirectory(installed_cmake) +endif() +if(TARGET Qt::Widgets AND NOT ANDROID) + add_subdirectory(qsvgrenderer) +endif() diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 0000000..31b62c6 --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from auto.pro. + +if(TARGET Qt::Widgets) + add_subdirectory(qsvgdevice) + if(TARGET Qt::Xml) # special case + add_subdirectory(qsvggenerator) # special case + endif() # special case + add_subdirectory(qsvgplugin) + add_subdirectory(qicon_svg) + # add_subdirectory(cmake) # special case remove + # add_subdirectory(installed_cmake) # special case remove +endif() +if(TARGET Qt::Widgets AND NOT ANDROID) + add_subdirectory(qsvgrenderer) +endif() diff --git a/tests/auto/qicon_svg/CMakeLists.txt b/tests/auto/qicon_svg/CMakeLists.txt new file mode 100644 index 0000000..7373cc7 --- /dev/null +++ b/tests/auto/qicon_svg/CMakeLists.txt @@ -0,0 +1,40 @@ +# Generated from qicon_svg.pro. + +##################################################################### +## tst_qicon_svg Test: +##################################################################### + +# Collect test data +file(GLOB_RECURSE test_data_glob + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + icons/*) +list(APPEND test_data ${test_data_glob}) + +qt_add_test(tst_qicon_svg + SOURCES + tst_qicon_svg.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Svg + TESTDATA ${test_data} +) + +# Resources: +set(tst_qicon_svg_resource_files + "./icons/heart.svg" + "./icons/heart.svgz" + "./icons/image.png" + "./icons/rect.svg" + "./icons/rect_size_100percent.svg" + "./icons/trash.svg" +) + +qt_add_resource(tst_qicon_svg "tst_qicon_svg" + PREFIX + "/" + FILES + ${tst_qicon_svg_resource_files} +) + diff --git a/tests/auto/qsvgdevice/CMakeLists.txt b/tests/auto/qsvgdevice/CMakeLists.txt new file mode 100644 index 0000000..479bd17 --- /dev/null +++ b/tests/auto/qsvgdevice/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qsvgdevice.pro. + +##################################################################### +## tst_qsvgdevice Test: +##################################################################### + +qt_add_test(tst_qsvgdevice + SOURCES + tst_qsvgdevice.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/auto/qsvggenerator/CMakeLists.txt b/tests/auto/qsvggenerator/CMakeLists.txt new file mode 100644 index 0000000..e86ca91 --- /dev/null +++ b/tests/auto/qsvggenerator/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from qsvggenerator.pro. + +##################################################################### +## tst_qsvggenerator Test: +##################################################################### + +qt_add_test(tst_qsvggenerator + SOURCES + tst_qsvggenerator.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Svg + Qt::Widgets + Qt::Xml +) + +# Resources: +set(qmake_immediate_resource_files + "referenceSvgs/fileName_output.svg" + "referenceSvgs/radial_gradient.svg" +) + +qt_add_resource(tst_qsvggenerator "qmake_immediate" + PREFIX + "/" + FILES + ${qmake_immediate_resource_files} +) + diff --git a/tests/auto/qsvgplugin/CMakeLists.txt b/tests/auto/qsvgplugin/CMakeLists.txt new file mode 100644 index 0000000..673f39d --- /dev/null +++ b/tests/auto/qsvgplugin/CMakeLists.txt @@ -0,0 +1,42 @@ +# Generated from qsvgplugin.pro. + +##################################################################### +## tst_qsvgplugin Test: +##################################################################### + +qt_add_test(tst_qsvgplugin + SOURCES + tst_qsvgplugin.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Svg + Qt::Widgets +) + +# Resources: +set(resources_resource_files + "imageInclude.svg" + "imageIncludeA.svg" + "square.svg" + "square_size.svg" + "square_size_viewbox.svg" + "square_viewbox.svg" + "tall.svg" + "tall_size.svg" + "tall_size_viewbox.svg" + "tall_viewbox.svg" + "wide.svg" + "wide_size.svg" + "wide_size_viewbox.svg" + "wide_viewbox.svg" +) + +qt_add_resource(tst_qsvgplugin "resources" + PREFIX + "/" + FILES + ${resources_resource_files} +) + diff --git a/tests/auto/qsvgrenderer/CMakeLists.txt b/tests/auto/qsvgrenderer/CMakeLists.txt new file mode 100644 index 0000000..43a3720 --- /dev/null +++ b/tests/auto/qsvgrenderer/CMakeLists.txt @@ -0,0 +1,31 @@ +# Generated from qsvgrenderer.pro. + +##################################################################### +## tst_qsvgrenderer Test: +##################################################################### + +qt_add_test(tst_qsvgrenderer + SOURCES + tst_qsvgrenderer.cpp + DEFINES + SRCDIR=\\\"${CMAKE_CURRENT_SOURCE_DIR}/\\\" + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Svg + Qt::Widgets +) + +# Resources: +set(resources_resource_files + "heart.svgz" +) + +qt_add_resource(tst_qsvgrenderer "resources" + PREFIX + "/" + FILES + ${resources_resource_files} +) + |