Commit 6cb20536 authored by Christian Kandeler's avatar Christian Kandeler

Fix qbs build with Qt that does not have the SVG module.

This now works the same way as with qmake.

Change-Id: I8e6b7f32ffff19e6f4fe9d83ffe804984e33f298
Reviewed-by: default avatarOliver Wolff <oliver.wolff@theqtcompany.com>
parent 109ce6ef
......@@ -3,11 +3,17 @@ import qbs 1.0
QtcPlugin {
name: "ImageViewer"
Depends { name: "Qt"; submodules: ["widgets", "svg"] }
Depends { name: "Qt.svg"; required: false }
Depends { name: "Qt.widgets" }
Depends { name: "Utils" }
Depends { name: "Core" }
Properties {
condition: !Qt.svg.present
cpp.defines: base.concat("QT_NO_SVG")
}
files: [
"imageview.cpp",
"imageview.h",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment