Split examples so that build works without qtdeclarative

Change-Id: I98507808b43b116b1950fd60df54704562a234ce
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
This commit is contained in:
Jean-Michaël Celerier 2020-02-26 12:48:53 +01:00
parent 29e1e59600
commit 3b3c743340
6 changed files with 134 additions and 100 deletions

View File

@ -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

View File

@ -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) {

View File

@ -6,6 +6,10 @@ contains(QT_CONFIG, private_tests) {
qtorusgeometry \
qforwardrenderer \
qfirstpersoncameracontroller \
qorbitcameracontroller \
qorbitcameracontroller
}
qtHaveModule(quick) {
SUBDIRS += \
qtext2dentity
}

View File

@ -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

View File

@ -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,27 +129,32 @@ QT_FOR_CONFIG += 3drender-private
qtConfig(qt3d-opengl-renderer):qtConfig(private_tests) {
SUBDIRS += \
opengl \
scene2d
opengl
qtConfig(qt3d-extras) {
qtHaveModule(quick) {
SUBDIRS += \
qmaterial \
geometryloaders \
picking \
boundingsphere \
qdefaultmeshes \
pickboundingvolumejob \
gltfplugins \
updatemeshtrianglelistjob \
updateshaderdatatransformjob
}
SUBDIRS += \
qmaterial \
geometryloaders \
picking \
qdefaultmeshes \
gltfplugins
}
qtConfig(qt3d-input) {
qtHaveModule(quick) {
SUBDIRS += \
qscene2d \
scene2d
}
}
qtConfig(qt3d-simd-avx2): SUBDIRS += alignedresourcesmanagers-avx
qtConfig(qt3d-simd-sse2):!qtConfig(qt3d-simd-avx2): SUBDIRS += alignedresourcesmanagers-sse

View File

@ -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 \
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 \
}