diff options
Diffstat (limited to 'examples/opengl')
-rw-r--r-- | examples/opengl/2dpainting/2dpainting.qbs | 28 | ||||
-rw-r--r-- | examples/opengl/contextinfo/contextinfo.qbs | 24 | ||||
-rw-r--r-- | examples/opengl/cube/cube.qbs | 26 | ||||
-rw-r--r-- | examples/opengl/hellogl2/hellogl2.qbs | 28 | ||||
-rw-r--r-- | examples/opengl/hellogles3/hellogles3.qbs | 24 | ||||
-rw-r--r-- | examples/opengl/hellowindow/hellowindow.qbs | 23 | ||||
-rw-r--r-- | examples/opengl/opengl.qbs | 19 | ||||
-rw-r--r-- | examples/opengl/paintedwindow/paintedwindow.qbs | 21 | ||||
-rw-r--r-- | examples/opengl/qopenglwidget/qopenglwidget.qbs | 27 | ||||
-rw-r--r-- | examples/opengl/qopenglwindow/qopenglwindow.qbs | 24 | ||||
-rw-r--r-- | examples/opengl/textures/textures.qbs | 25 | ||||
-rw-r--r-- | examples/opengl/threadedqopenglwidget/threadedqopenglwidget.qbs | 24 |
12 files changed, 293 insertions, 0 deletions
diff --git a/examples/opengl/2dpainting/2dpainting.qbs b/examples/opengl/2dpainting/2dpainting.qbs new file mode 100644 index 0000000000..f245996efc --- /dev/null +++ b/examples/opengl/2dpainting/2dpainting.qbs @@ -0,0 +1,28 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "2dpainting" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "glwidget.cpp", + "glwidget.h", + "helper.cpp", + "helper.h", + "main.cpp", + "widget.cpp", + "widget.h", + "window.cpp", + "window.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "2dpainting") + } +} diff --git a/examples/opengl/contextinfo/contextinfo.qbs b/examples/opengl/contextinfo/contextinfo.qbs new file mode 100644 index 0000000000..7a42c3b438 --- /dev/null +++ b/examples/opengl/contextinfo/contextinfo.qbs @@ -0,0 +1,24 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "contextinfo" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "main.cpp", + "renderwindow.cpp", + "renderwindow.h", + "widget.cpp", + "widget.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "contextinfo") + } +} diff --git a/examples/opengl/cube/cube.qbs b/examples/opengl/cube/cube.qbs new file mode 100644 index 0000000000..88df75e35c --- /dev/null +++ b/examples/opengl/cube/cube.qbs @@ -0,0 +1,26 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "cube" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "geometryengine.cpp", + "geometryengine.h", + "main.cpp", + "mainwidget.cpp", + "mainwidget.h", + "shaders.qrc", + "textures.qrc", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "cube") + } +} diff --git a/examples/opengl/hellogl2/hellogl2.qbs b/examples/opengl/hellogl2/hellogl2.qbs new file mode 100644 index 0000000000..3d15addd64 --- /dev/null +++ b/examples/opengl/hellogl2/hellogl2.qbs @@ -0,0 +1,28 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "hellogl2" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "glwidget.cpp", + "glwidget.h", + "logo.cpp", + "logo.h", + "main.cpp", + "mainwindow.cpp", + "mainwindow.h", + "window.cpp", + "window.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "hellogl2") + } +} diff --git a/examples/opengl/hellogles3/hellogles3.qbs b/examples/opengl/hellogles3/hellogles3.qbs new file mode 100644 index 0000000000..dbe1b58432 --- /dev/null +++ b/examples/opengl/hellogles3/hellogles3.qbs @@ -0,0 +1,24 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "hellogles3" + condition: Qt.gui.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + + files: [ + "../hellogl2/logo.cpp", + "../hellogl2/logo.h", + "glwindow.cpp", + "glwindow.h", + "hellogles3.qrc", + "main.cpp", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "hellogles3") + } +} diff --git a/examples/opengl/hellowindow/hellowindow.qbs b/examples/opengl/hellowindow/hellowindow.qbs new file mode 100644 index 0000000000..9f1ba84dd2 --- /dev/null +++ b/examples/opengl/hellowindow/hellowindow.qbs @@ -0,0 +1,23 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "hellowindow" + condition: Qt.gui.present && Qt.gui.config.opengl + + Depends { name: "Qt.core-private" } + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.gui-private"; required: false } + + files: [ + "hellowindow.cpp", + "hellowindow.h", + "main.cpp", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "hellowindow") + } +} diff --git a/examples/opengl/opengl.qbs b/examples/opengl/opengl.qbs new file mode 100644 index 0000000000..980bf647c5 --- /dev/null +++ b/examples/opengl/opengl.qbs @@ -0,0 +1,19 @@ +import qbs + +Project { + name: "opengl" + + references: [ + "2dpainting", + "contextinfo", + "cube", + "hellogl2", + "hellogles3", + "hellowindow", + "paintedwindow", + "qopenglwidget", + "qopenglwindow", + "textures", + "threadedqopenglwidget", + ] +} diff --git a/examples/opengl/paintedwindow/paintedwindow.qbs b/examples/opengl/paintedwindow/paintedwindow.qbs new file mode 100644 index 0000000000..91d3bd28f3 --- /dev/null +++ b/examples/opengl/paintedwindow/paintedwindow.qbs @@ -0,0 +1,21 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "paintedwindow" + condition: Qt.gui.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + + files: [ + "main.cpp", + "paintedwindow.cpp", + "paintedwindow.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "paintedwindow") + } +} diff --git a/examples/opengl/qopenglwidget/qopenglwidget.qbs b/examples/opengl/qopenglwidget/qopenglwidget.qbs new file mode 100644 index 0000000000..214e74678d --- /dev/null +++ b/examples/opengl/qopenglwidget/qopenglwidget.qbs @@ -0,0 +1,27 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "qopenglwidget" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "bubble.cpp", + "bubble.h", + "glwidget.cpp", + "glwidget.h", + "main.cpp", + "mainwindow.cpp", + "mainwindow.h", + "texture.qrc", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "qopenglwidget") + } +} diff --git a/examples/opengl/qopenglwindow/qopenglwindow.qbs b/examples/opengl/qopenglwindow/qopenglwindow.qbs new file mode 100644 index 0000000000..4bcfb0d730 --- /dev/null +++ b/examples/opengl/qopenglwindow/qopenglwindow.qbs @@ -0,0 +1,24 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "qopenglwindow" + condition: Qt.gui.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + + cpp.includePaths: base.concat(".") + + files: [ + "background_renderer.cpp", + "background_renderer.h", + "main.cpp", + "shaders.qrc", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "qopenglwindow") + } +} diff --git a/examples/opengl/textures/textures.qbs b/examples/opengl/textures/textures.qbs new file mode 100644 index 0000000000..be603b3884 --- /dev/null +++ b/examples/opengl/textures/textures.qbs @@ -0,0 +1,25 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "textures" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "glwidget.cpp", + "glwidget.h", + "main.cpp", + "textures.qrc", + "window.cpp", + "window.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "textures") + } +} diff --git a/examples/opengl/threadedqopenglwidget/threadedqopenglwidget.qbs b/examples/opengl/threadedqopenglwidget/threadedqopenglwidget.qbs new file mode 100644 index 0000000000..d48e10ebb5 --- /dev/null +++ b/examples/opengl/threadedqopenglwidget/threadedqopenglwidget.qbs @@ -0,0 +1,24 @@ +import qbs +import qbs.FileInfo + +CppApplication { + name: "threadedqopenglwidget" + condition: Qt.widgets.present && Qt.gui.config.opengl + + Depends { name: "Qt.gui"; required: false } + Depends { name: "Qt.widgets"; required: false } + + files: [ + "glwidget.cpp", + "glwidget.h", + "main.cpp", + "mainwindow.cpp", + "mainwindow.h", + ] + + Group { + fileTagsFilter: ["application"] + qbs.install: true + qbs.installDir: FileInfo.joinPaths(Qt.core.examplesInstallDir, "opengl", "threadedqopenglwidget") + } +} |