summaryrefslogtreecommitdiff
path: root/examples/widgets/painting/pathstroke/pathstroke.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/painting/pathstroke/pathstroke.qbs')
-rw-r--r--examples/widgets/painting/pathstroke/pathstroke.qbs36
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/widgets/painting/pathstroke/pathstroke.qbs b/examples/widgets/painting/pathstroke/pathstroke.qbs
new file mode 100644
index 0000000000..90cb968d9a
--- /dev/null
+++ b/examples/widgets/painting/pathstroke/pathstroke.qbs
@@ -0,0 +1,36 @@
+import qbs
+import qbs.FileInfo
+
+import "../shared/shared.qbs" as SharedSources
+
+CppApplication {
+ name: "pathstroke"
+ condition: Qt.widgets.present
+
+ Depends { name: "Qt.gui"; required: false }
+ Depends { name: "Qt.opengl"; required: false }
+ Depends { name: "Qt.widgets"; required: false }
+
+ property stringList openglDefines: []
+ Properties {
+ condition: Qt.opengl.present || Qt.gui.config.opengles2
+ openglDefines: ["QT_OPENGL_SUPPORT"]
+ }
+ cpp.defines: base.concat(openglDefines)
+ cpp.includePaths: ["../shared"]
+
+ SharedSources { }
+ files: [
+ "main.cpp",
+ "pathstroke.cpp",
+ "pathstroke.h",
+ "pathstroke.qrc",
+ ]
+
+ Group {
+ fileTagsFilter: ["application"]
+ qbs.install: true
+ qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "widgets", "painting",
+ "pathstroke")
+ }
+}