From 3b3c743340909fabd08bcdec78802fc58c779932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 26 Feb 2020 12:48:53 +0100 Subject: Split examples so that build works without qtdeclarative Change-Id: I98507808b43b116b1950fd60df54704562a234ce Reviewed-by: Paul Lemire --- examples/qt3d/qt3d.pro | 52 +++++++------- tests/auto/auto.pro | 6 +- tests/auto/extras/extras.pro | 6 +- tests/auto/render/opengl/opengl.pro | 5 +- tests/auto/render/render.pro | 31 ++++++--- tests/manual/manual.pro | 134 +++++++++++++++++++----------------- 6 files changed, 134 insertions(+), 100 deletions(-) diff --git a/examples/qt3d/qt3d.pro b/examples/qt3d/qt3d.pro index 91163a0d1..52ae5389c 100644 --- a/examples/qt3d/qt3d.pro +++ b/examples/qt3d/qt3d.pro @@ -1,30 +1,8 @@ TEMPLATE = subdirs SUBDIRS += \ - simple-qml \ simple-cpp \ - multiviewport \ - wireframe \ - shadow-map-qml \ - wave \ - scene3d \ - controls \ - anaglyph-rendering \ - planets-qml \ - instanced-arrays-qml \ - lights \ - compute-particles \ - 3d-text \ - qardboard \ - advancedcustommaterial \ - simplecustommaterial \ - scene2d \ - phong-cubes \ - pbr-materials \ - controlsunderlay \ - scene3dview - -qtHaveModule(multimedia): SUBDIRS += audio-visualizer-qml + 3d-text # qmake seems to break in some CI configurations, disable this for now #SUBDIRS += qgltf @@ -37,5 +15,33 @@ qtHaveModule(widgets) { qtHaveModule(quickwidgets): SUBDIRS += widgets-scene3d } +qtHaveModule(quick) { + qtHaveModule(multimedia) { + SUBDIRS += audio-visualizer-qml + } + + SUBDIRS += \ + simple-qml \ + shadow-map-qml \ + instanced-arrays-qml \ + planets-qml \ + advancedcustommaterial \ + anaglyph-rendering \ + compute-particles \ + phong-cubes \ + lights \ + scene3dview \ + controlsunderlay \ + simplecustommaterial \ + qardboard \ + pbr-materials \ + scene2d \ + multiviewport \ + wireframe \ + wave \ + scene3d \ + controls +} + EXAMPLE_FILES += \ exampleresources diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 971edcb39..75553c902 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -15,7 +15,11 @@ qtConfig(qt3d-animation): SUBDIRS += animation qtConfig(qt3d-extras): SUBDIRS += extras qtConfig(qt3d-render) { SUBDIRS += geometryloaders - qtConfig(qt3d-input): SUBDIRS += quick3d + qtConfig(qt3d-input) { + qtHaveModule(quick) { + SUBDIRS += quick3d + } + } } for(subdir, SUBDIRS) { diff --git a/tests/auto/extras/extras.pro b/tests/auto/extras/extras.pro index e5ae28e97..a9fd78369 100644 --- a/tests/auto/extras/extras.pro +++ b/tests/auto/extras/extras.pro @@ -6,6 +6,10 @@ contains(QT_CONFIG, private_tests) { qtorusgeometry \ qforwardrenderer \ qfirstpersoncameracontroller \ - qorbitcameracontroller \ + qorbitcameracontroller +} + +qtHaveModule(quick) { + SUBDIRS += \ qtext2dentity } diff --git a/tests/auto/render/opengl/opengl.pro b/tests/auto/render/opengl/opengl.pro index 5299ebd36..fead9b5ff 100644 --- a/tests/auto/render/opengl/opengl.pro +++ b/tests/auto/render/opengl/opengl.pro @@ -6,7 +6,6 @@ SUBDIRS += \ graphicshelpergl3_2 \ graphicshelpergl2 \ glshadermanager \ - materialparametergathererjob \ textures \ renderer \ renderviewutils \ @@ -16,4 +15,8 @@ SUBDIRS += \ qgraphicsutils \ computecommand +qtHaveModule(quick) { + SUBDIRS += \ + materialparametergathererjob +} !macos: SUBDIRS += graphicshelpergl4 diff --git a/tests/auto/render/render.pro b/tests/auto/render/render.pro index f8011b2cf..09dbe68a7 100644 --- a/tests/auto/render/render.pro +++ b/tests/auto/render/render.pro @@ -97,7 +97,6 @@ qtConfig(private_tests) { qraycaster \ raycaster \ qscreenraycaster \ - raycastingjob \ qcamera \ qsetfence \ qwaitfence \ @@ -117,6 +116,11 @@ qtConfig(private_tests) { trianglesextractor \ triangleboundingvolume \ } + + qtHaveModule(quick) { + SUBDIRS += \ + raycastingjob + } } # Tests related to the OpenGL renderer @@ -125,26 +129,31 @@ QT_FOR_CONFIG += 3drender-private qtConfig(qt3d-opengl-renderer):qtConfig(private_tests) { SUBDIRS += \ - opengl \ - scene2d + opengl qtConfig(qt3d-extras) { + qtHaveModule(quick) { + SUBDIRS += \ + boundingsphere \ + pickboundingvolumejob \ + updatemeshtrianglelistjob \ + updateshaderdatatransformjob + } + SUBDIRS += \ qmaterial \ geometryloaders \ picking \ - boundingsphere \ qdefaultmeshes \ - pickboundingvolumejob \ - gltfplugins \ - updatemeshtrianglelistjob \ - updateshaderdatatransformjob + gltfplugins } qtConfig(qt3d-input) { - SUBDIRS += \ - qscene2d \ - scene2d + qtHaveModule(quick) { + SUBDIRS += \ + qscene2d \ + scene2d + } } qtConfig(qt3d-simd-avx2): SUBDIRS += alignedresourcesmanagers-avx diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro index 2f630e0d9..119c4f653 100644 --- a/tests/manual/manual.pro +++ b/tests/manual/manual.pro @@ -1,84 +1,27 @@ TEMPLATE = subdirs SUBDIRS += \ - assimp \ bigscene-cpp \ - bigmodel-qml \ - bigscene-instanced-qml \ - clip-planes-qml \ component-changes \ custom-mesh-cpp \ custom-mesh-cpp-indirect \ - custom-mesh-qml \ custom-mesh-update-data-cpp \ - custom-mesh-update-data-qml \ cylinder-cpp \ cylinder-parent-test \ - cylinder-qml \ deferred-renderer-cpp \ - deferred-renderer-qml \ - downloading \ - dragging \ - dynamicscene-cpp \ - enabled-qml \ - gltf \ - gooch-qml \ - keyboardinput-qml \ - loader-qml \ - lod \ - mouseinput-qml \ - multiplewindows-qml \ - picking-qml \ - plasma \ - pointlinesize \ - scene3d-loader \ - simple-shaders-qml \ - skybox \ - tessellation-modes \ - transforms-qml \ - spritegrid \ - transparency-qml \ - transparency-qml-scene3d \ - rendercapture-qml \ - additional-attributes-qml \ - dynamic-model-loader-qml \ - buffercapture-qml \ - render-qml-to-texture \ - render-qml-to-texture-qml \ - video-texture-qml \ - animation-keyframe-simple \ - animation-keyframe-blendtree \ - distancefieldtext \ - mesh-morphing \ - anim-viewer \ - animation-keyframe-programmatic \ - layerfilter-qml \ - skinned-mesh \ - rigged-simple \ - proximityfilter \ - rendercapture-qml-fbo \ - blitframebuffer-qml \ - raycasting-qml \ - shared_texture_image \ - texture_property_updates \ raster-cpp \ - raster-qml \ qtbug-72236 \ - qtbug-76766 \ - shader-image-qml \ - scene3d-in-sync \ - compressed_textures \ - subtree-enabler-qml \ - scene3d-visibility \ manual-renderloop -!macos:!uikit: SUBDIRS += compute-manual - qtHaveModule(multimedia): { SUBDIRS += \ - sharedtexture \ - sharedtextureqml + sharedtexture + + qtHaveModule(quick) { + SUBDIRS += \ + sharedtextureqml + } } qtHaveModule(widgets): { @@ -88,3 +31,68 @@ qtHaveModule(widgets): { rendercapture-cpp \ texture-updates-cpp } + +qtHaveModule(quick) { + !macos:!uikit: SUBDIRS += compute-manual + + SUBDIRS += \ + assimp \ + animation-keyframe-simple \ + animation-keyframe-blendtree \ + animation-keyframe-programmatic \ + bigmodel-qml \ + bigscene-instanced-qml \ + clip-planes-qml \ + custom-mesh-qml \ + custom-mesh-update-data-qml \ + cylinder-qml \ + deferred-renderer-qml \ + downloading \ + dynamicscene-cpp \ + dragging \ + enabled-qml \ + gltf \ + gooch-qml \ + keyboardinput-qml \ + lod \ + loader-qml \ + mouseinput-qml \ + multiplewindows-qml \ + plasma \ + pointlinesize \ + scene3d-loader \ + picking-qml \ + skybox \ + simple-shaders-qml \ + transparency-qml \ + transparency-qml-scene3d \ + rendercapture-qml \ + additional-attributes-qml \ + dynamic-model-loader-qml \ + buffercapture-qml \ + render-qml-to-texture \ + render-qml-to-texture-qml \ + video-texture-qml \ + transforms-qml \ + layerfilter-qml \ + tessellation-modes \ + rendercapture-qml-fbo \ + blitframebuffer-qml \ + raycasting-qml \ + raster-qml \ + shader-image-qml \ + spritegrid \ + subtree-enabler-qml \ + distancefieldtext \ + mesh-morphing \ + anim-viewer \ + skinned-mesh \ + rigged-simple \ + proximityfilter \ + scene3d-visibility \ + shared_texture_image \ + texture_property_updates \ + qtbug-76766 \ + scene3d-in-sync \ + compressed_textures \ +} -- cgit v1.2.3