diff options
Diffstat (limited to 'src')
45 files changed, 2702 insertions, 2 deletions
diff --git a/src/3rdparty/assimp/assimp.cmake b/src/3rdparty/assimp/assimp.cmake new file mode 100644 index 000000000..a72914774 --- /dev/null +++ b/src/3rdparty/assimp/assimp.cmake @@ -0,0 +1,567 @@ + +# special case begin +if(NOT QT_FEATURE_system_zlib) + find_package(Qt6 COMPONENTS Zlib) +elseif(NOT TARGET ZLIB::ZLIB) + qt_find_package(ZLIB PROVIDED_TARGETS ZLIB::ZLIB) +endif() +# special case end + +function(qt3d_extend_target_for_assimp target) + set(assimpDir ${PROJECT_SOURCE_DIR}/src/3rdparty/assimp) + qt_extend_target(${target} CONDITION QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + LIBRARIES + WrapAssimp::WrapAssimp + ) + + qt_extend_target(${target} CONDITION NOT QT_FEATURE_system_assimp OR (CMAKE_CROSSCOMPILING AND host_build) + SOURCES + ${assimpDir}/src/code/3DS/3DSExporter.h + ${assimpDir}/src/code/3DS/3DSHelper.h + ${assimpDir}/src/code/3DS/3DSLoader.h + ${assimpDir}/src/code/3MF/3MFXmlTags.h + ${assimpDir}/src/code/3MF/D3MFExporter.h + ${assimpDir}/src/code/3MF/D3MFImporter.h + ${assimpDir}/src/code/3MF/D3MFOpcPackage.h + ${assimpDir}/src/code/AC/ACLoader.h + ${assimpDir}/src/code/ASE/ASELoader.h + ${assimpDir}/src/code/ASE/ASEParser.h + ${assimpDir}/src/code/Assbin/AssbinExporter.h + ${assimpDir}/src/code/Assbin/AssbinLoader.h + ${assimpDir}/src/code/Assjson/cencode.h + ${assimpDir}/src/code/Assjson/mesh_splitter.h + ${assimpDir}/src/code/Assxml/AssxmlExporter.h + ${assimpDir}/src/code/B3D/B3DImporter.h + ${assimpDir}/src/code/BVH/BVHLoader.h + ${assimpDir}/src/code/Blender/BlenderBMesh.h + ${assimpDir}/src/code/Blender/BlenderCustomData.h + ${assimpDir}/src/code/Blender/BlenderDNA.h + ${assimpDir}/src/code/Blender/BlenderIntermediate.h + ${assimpDir}/src/code/Blender/BlenderLoader.h + ${assimpDir}/src/code/Blender/BlenderModifier.h + ${assimpDir}/src/code/Blender/BlenderScene.h + ${assimpDir}/src/code/Blender/BlenderSceneGen.h + ${assimpDir}/src/code/Blender/BlenderTessellator.h + ${assimpDir}/src/code/C4D/C4DImporter.h + ${assimpDir}/src/code/CApi/CInterfaceIOWrapper.h + ${assimpDir}/src/code/COB/COBLoader.h + ${assimpDir}/src/code/COB/COBScene.h + ${assimpDir}/src/code/CSM/CSMLoader.h + ${assimpDir}/src/code/Collada/ColladaExporter.h + ${assimpDir}/src/code/Collada/ColladaHelper.h + ${assimpDir}/src/code/Collada/ColladaLoader.h + ${assimpDir}/src/code/Collada/ColladaParser.h + ${assimpDir}/src/code/Common/BaseProcess.h + ${assimpDir}/src/code/Common/DefaultProgressHandler.h + ${assimpDir}/src/code/Common/FileLogStream.h + ${assimpDir}/src/code/Common/FileSystemFilter.h + ${assimpDir}/src/code/Common/IFF.h + ${assimpDir}/src/code/Common/Importer.h + ${assimpDir}/src/code/Common/PolyTools.h + ${assimpDir}/src/code/Common/ScenePreprocessor.h + ${assimpDir}/src/code/Common/ScenePrivate.h + ${assimpDir}/src/code/Common/SplitByBoneCountProcess.h + ${assimpDir}/src/code/Common/StdOStreamLogStream.h + ${assimpDir}/src/code/Common/TargetAnimation.h + ${assimpDir}/src/code/Common/VertexTriangleAdjacency.h + ${assimpDir}/src/code/Common/Win32DebugLogStream.h + ${assimpDir}/src/code/Common/assbin_chunks.h + ${assimpDir}/src/code/Common/simd.h + ${assimpDir}/src/code/DXF/DXFHelper.h + ${assimpDir}/src/code/DXF/DXFLoader.h + ${assimpDir}/src/code/FBX/FBXCommon.h + ${assimpDir}/src/code/FBX/FBXCompileConfig.h + ${assimpDir}/src/code/FBX/FBXConverter.h + ${assimpDir}/src/code/FBX/FBXDocument.h + ${assimpDir}/src/code/FBX/FBXDocumentUtil.h + ${assimpDir}/src/code/FBX/FBXExportNode.h + ${assimpDir}/src/code/FBX/FBXExportProperty.h + ${assimpDir}/src/code/FBX/FBXExporter.h + ${assimpDir}/src/code/FBX/FBXImportSettings.h + ${assimpDir}/src/code/FBX/FBXImporter.h + ${assimpDir}/src/code/FBX/FBXMeshGeometry.h + ${assimpDir}/src/code/FBX/FBXParser.h + ${assimpDir}/src/code/FBX/FBXProperties.h + ${assimpDir}/src/code/FBX/FBXTokenizer.h + ${assimpDir}/src/code/FBX/FBXUtil.h + ${assimpDir}/src/code/HMP/HMPFileData.h + ${assimpDir}/src/code/HMP/HMPLoader.h + ${assimpDir}/src/code/HMP/HalfLifeFileData.h + ${assimpDir}/src/code/Importer/IFC/IFCLoader.h + ${assimpDir}/src/code/Importer/IFC/IFCReaderGen_2x3.h + ${assimpDir}/src/code/Importer/IFC/IFCReaderGen_4.h + ${assimpDir}/src/code/Importer/IFC/IFCUtil.h + ${assimpDir}/src/code/Importer/STEPParser/STEPFileEncoding.h + ${assimpDir}/src/code/Importer/STEPParser/STEPFileReader.h + ${assimpDir}/src/code/Importer/StepFile/StepFileImporter.h + ${assimpDir}/src/code/Importer/StepFile/StepReaderGen.h + ${assimpDir}/src/code/Irr/IRRLoader.h + ${assimpDir}/src/code/Irr/IRRMeshLoader.h + ${assimpDir}/src/code/Irr/IRRShared.h + ${assimpDir}/src/code/LWO/LWOAnimation.h + ${assimpDir}/src/code/LWO/LWOFileData.h + ${assimpDir}/src/code/LWO/LWOLoader.h + ${assimpDir}/src/code/LWS/LWSLoader.h + ${assimpDir}/src/code/MD2/MD2FileData.h + ${assimpDir}/src/code/MD2/MD2Loader.h + ${assimpDir}/src/code/MD2/MD2NormalTable.h + ${assimpDir}/src/code/MD3/MD3FileData.h + ${assimpDir}/src/code/MD3/MD3Loader.h + ${assimpDir}/src/code/MD4/MD4FileData.h + ${assimpDir}/src/code/MD5/MD5Loader.h + ${assimpDir}/src/code/MD5/MD5Parser.h + ${assimpDir}/src/code/MDC/MDCFileData.h + ${assimpDir}/src/code/MDC/MDCLoader.h + ${assimpDir}/src/code/MDC/MDCNormalTable.h + ${assimpDir}/src/code/MDL/MDLDefaultColorMap.h + ${assimpDir}/src/code/MDL/MDLFileData.h + ${assimpDir}/src/code/MDL/MDLLoader.h + ${assimpDir}/src/code/MMD/MMDCpp14.h + ${assimpDir}/src/code/MMD/MMDImporter.h + ${assimpDir}/src/code/MMD/MMDPmdParser.h + ${assimpDir}/src/code/MMD/MMDPmxParser.h + ${assimpDir}/src/code/MMD/MMDVmdParser.h + ${assimpDir}/src/code/MS3D/MS3DLoader.h + ${assimpDir}/src/code/Material/MaterialSystem.h + ${assimpDir}/src/code/NDO/NDOLoader.h + ${assimpDir}/src/code/NFF/NFFLoader.h + ${assimpDir}/src/code/OFF/OFFLoader.h + ${assimpDir}/src/code/Obj/ObjExporter.h + ${assimpDir}/src/code/Obj/ObjFileData.h + ${assimpDir}/src/code/Obj/ObjFileImporter.h + ${assimpDir}/src/code/Obj/ObjFileMtlImporter.h + ${assimpDir}/src/code/Obj/ObjFileParser.h + ${assimpDir}/src/code/Obj/ObjTools.h + ${assimpDir}/src/code/Ogre/OgreBinarySerializer.h + ${assimpDir}/src/code/Ogre/OgreImporter.h + ${assimpDir}/src/code/Ogre/OgreParsingUtils.h + ${assimpDir}/src/code/Ogre/OgreStructs.h + ${assimpDir}/src/code/Ogre/OgreXmlSerializer.h + ${assimpDir}/src/code/OpenGEX/OpenGEXExporter.h + ${assimpDir}/src/code/OpenGEX/OpenGEXImporter.h + ${assimpDir}/src/code/OpenGEX/OpenGEXStructs.h + ${assimpDir}/src/code/Ply/PlyExporter.h + ${assimpDir}/src/code/Ply/PlyLoader.h + ${assimpDir}/src/code/Ply/PlyParser.h + ${assimpDir}/src/code/PostProcessing/CalcTangentsProcess.h + ${assimpDir}/src/code/PostProcessing/ComputeUVMappingProcess.h + ${assimpDir}/src/code/PostProcessing/ConvertToLHProcess.h + ${assimpDir}/src/code/PostProcessing/DeboneProcess.h + ${assimpDir}/src/code/PostProcessing/DropFaceNormalsProcess.h + ${assimpDir}/src/code/PostProcessing/EmbedTexturesProcess.h + ${assimpDir}/src/code/PostProcessing/FindDegenerates.h + ${assimpDir}/src/code/PostProcessing/FindInstancesProcess.h + ${assimpDir}/src/code/PostProcessing/FindInvalidDataProcess.h + ${assimpDir}/src/code/PostProcessing/FixNormalsStep.h + ${assimpDir}/src/code/PostProcessing/GenBoundingBoxesProcess.h + ${assimpDir}/src/code/PostProcessing/GenFaceNormalsProcess.h + ${assimpDir}/src/code/PostProcessing/GenVertexNormalsProcess.h + ${assimpDir}/src/code/PostProcessing/ImproveCacheLocality.h + ${assimpDir}/src/code/PostProcessing/JoinVerticesProcess.h + ${assimpDir}/src/code/PostProcessing/LimitBoneWeightsProcess.h + ${assimpDir}/src/code/PostProcessing/MakeVerboseFormat.h + ${assimpDir}/src/code/PostProcessing/OptimizeGraph.h + ${assimpDir}/src/code/PostProcessing/OptimizeMeshes.h + ${assimpDir}/src/code/PostProcessing/PretransformVertices.h + ${assimpDir}/src/code/PostProcessing/ProcessHelper.h + ${assimpDir}/src/code/PostProcessing/RemoveRedundantMaterials.h + ${assimpDir}/src/code/PostProcessing/RemoveVCProcess.h + ${assimpDir}/src/code/PostProcessing/ScaleProcess.h + ${assimpDir}/src/code/PostProcessing/SortByPTypeProcess.h + ${assimpDir}/src/code/PostProcessing/SplitLargeMeshes.h + ${assimpDir}/src/code/PostProcessing/TextureTransform.h + ${assimpDir}/src/code/PostProcessing/TriangulateProcess.h + ${assimpDir}/src/code/PostProcessing/ValidateDataStructure.h + ${assimpDir}/src/code/Q3BSP/Q3BSPFileData.h + ${assimpDir}/src/code/Q3BSP/Q3BSPFileImporter.h + ${assimpDir}/src/code/Q3BSP/Q3BSPFileParser.h + ${assimpDir}/src/code/Q3D/Q3DLoader.h + ${assimpDir}/src/code/Raw/RawLoader.h + ${assimpDir}/src/code/SIB/SIBImporter.h + ${assimpDir}/src/code/SMD/SMDLoader.h + ${assimpDir}/src/code/STL/STLExporter.h + ${assimpDir}/src/code/STL/STLLoader.h + ${assimpDir}/src/code/Step/STEPFile.h + ${assimpDir}/src/code/Step/StepExporter.h + ${assimpDir}/src/code/Terragen/TerragenLoader.h + ${assimpDir}/src/code/Unreal/UnrealLoader.h + ${assimpDir}/src/code/X/XFileExporter.h + ${assimpDir}/src/code/X/XFileHelper.h + ${assimpDir}/src/code/X/XFileImporter.h + ${assimpDir}/src/code/X/XFileParser.h + ${assimpDir}/src/code/XGL/XGLLoader.h + ${assimpDir}/src/code/glTF/glTFAsset.h + ${assimpDir}/src/code/glTF/glTFAssetWriter.h + ${assimpDir}/src/code/glTF/glTFCommon.h + ${assimpDir}/src/code/glTF/glTFExporter.h + ${assimpDir}/src/code/glTF/glTFImporter.h + ${assimpDir}/src/code/glTF2/glTF2Asset.h + ${assimpDir}/src/code/glTF2/glTF2AssetWriter.h + ${assimpDir}/src/code/glTF2/glTF2Exporter.h + ${assimpDir}/src/code/glTF2/glTF2Importer.h + ${assimpDir}/src/code/res/resource.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcAdjacencyInfo.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcArithmeticCodec.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcBinaryStream.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcCommon.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcDVEncodeParams.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcDynamicVector.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcDynamicVectorDecoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcDynamicVectorEncoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcFIFO.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcIndexedFaceSet.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcSC3DMCDecoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcSC3DMCEncodeParams.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcSC3DMCEncoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcTimer.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcTriangleFans.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcTriangleListDecoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcTriangleListEncoder.h + ${assimpDir}/src/contrib/Open3DGC/o3dgcVector.h + ${assimpDir}/src/contrib/clipper/clipper.hpp + ${assimpDir}/src/contrib/irrXML/CXMLReaderImpl.h + ${assimpDir}/src/contrib/irrXML/heapsort.h + ${assimpDir}/src/contrib/irrXML/irrArray.h + ${assimpDir}/src/contrib/irrXML/irrString.h + ${assimpDir}/src/contrib/irrXML/irrTypes.h + ${assimpDir}/src/contrib/irrXML/irrXML.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/DDLNode.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/OpenDDLCommon.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/OpenDDLExport.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/OpenDDLParser.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/OpenDDLParserUtils.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/OpenDDLStream.h + ${assimpDir}/src/contrib/openddlparser/include/openddlparser/Value.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/common/shapes.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/common/utils.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/poly2tri.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/advancing_front.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/cdt.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/sweep.h + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/sweep_context.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/allocators.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/document.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/encodedstream.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/encodings.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/error/en.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/error/error.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/filereadstream.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/filewritestream.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/fwd.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/biginteger.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/diyfp.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/dtoa.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/ieee754.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/itoa.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/meta.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/pow10.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/regex.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/stack.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/strfunc.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/strtod.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/internal/swap.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/istreamwrapper.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/memorybuffer.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/memorystream.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/msinttypes/inttypes.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/msinttypes/stdint.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/ostreamwrapper.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/pointer.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/prettywriter.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/rapidjson.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/reader.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/schema.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/stream.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/stringbuffer.h + ${assimpDir}/src/contrib/rapidjson/include/rapidjson/writer.h + ${assimpDir}/src/contrib/unzip/crypt.h + ${assimpDir}/src/contrib/unzip/ioapi.h + ${assimpDir}/src/contrib/unzip/unzip.h + ${assimpDir}/src/contrib/utf8cpp/source/utf8.h + ${assimpDir}/src/contrib/utf8cpp/source/utf8/checked.h + ${assimpDir}/src/contrib/utf8cpp/source/utf8/core.h + ${assimpDir}/src/contrib/utf8cpp/source/utf8/unchecked.h + ${assimpDir}/src/include/assimp/Compiler/poppack1.h + ${assimpDir}/src/include/assimp/Compiler/pstdint.h + ${assimpDir}/src/include/assimp/Compiler/pushpack1.h + ${assimpDir}/src/include/assimp/DefaultIOStream.h + ${assimpDir}/src/include/assimp/DefaultIOSystem.h + ${assimpDir}/src/include/assimp/DefaultLogger.hpp + ${assimpDir}/src/include/assimp/Defines.h + ${assimpDir}/src/include/assimp/Exporter.hpp + ${assimpDir}/src/include/assimp/IOStream.hpp + ${assimpDir}/src/include/assimp/IOSystem.hpp + ${assimpDir}/src/include/assimp/Importer.hpp + ${assimpDir}/src/include/assimp/LogStream.hpp + ${assimpDir}/src/include/assimp/Logger.hpp + ${assimpDir}/src/include/assimp/NullLogger.hpp + ${assimpDir}/src/include/assimp/ProgressHandler.hpp + ${assimpDir}/src/include/assimp/SceneCombiner.h + ${assimpDir}/src/include/assimp/ai_assert.h + ${assimpDir}/src/include/assimp/anim.h + ${assimpDir}/src/include/assimp/camera.h + ${assimpDir}/src/include/assimp/cexport.h + ${assimpDir}/src/include/assimp/cfileio.h + ${assimpDir}/src/include/assimp/cimport.h + ${assimpDir}/src/include/assimp/color4.h + ${assimpDir}/src/include/assimp/config.h + ${assimpDir}/src/include/assimp/defs.h + ${assimpDir}/src/include/assimp/importerdesc.h + ${assimpDir}/src/include/assimp/light.h + ${assimpDir}/src/include/assimp/material.h + ${assimpDir}/src/include/assimp/matrix3x3.h + ${assimpDir}/src/include/assimp/matrix4x4.h + ${assimpDir}/src/include/assimp/mesh.h + ${assimpDir}/src/include/assimp/metadata.h + ${assimpDir}/src/include/assimp/port/AndroidJNI/AndroidJNIIOSystem.h + ${assimpDir}/src/include/assimp/postprocess.h + ${assimpDir}/src/include/assimp/quaternion.h + ${assimpDir}/src/include/assimp/scene.h + ${assimpDir}/src/include/assimp/texture.h + ${assimpDir}/src/include/assimp/types.h + ${assimpDir}/src/include/assimp/vector2.h + ${assimpDir}/src/include/assimp/vector3.h + ${assimpDir}/src/include/assimp/version.h + ${assimpDir}/src/code/Common/Assimp.cpp + ${assimpDir}/src/code/Common/DefaultLogger.cpp + ${assimpDir}/src/code/Common/BaseImporter.cpp + ${assimpDir}/src/code/Common/BaseProcess.cpp + ${assimpDir}/src/code/Common/PostStepRegistry.cpp + ${assimpDir}/src/code/Common/ImporterRegistry.cpp + ${assimpDir}/src/code/Common/DefaultIOStream.cpp + ${assimpDir}/src/code/Common/DefaultIOSystem.cpp + ${assimpDir}/src/code/CApi/CInterfaceIOWrapper.cpp + ${assimpDir}/src/code/Common/Importer.cpp + ${assimpDir}/src/code/Common/SGSpatialSort.cpp + ${assimpDir}/src/code/Common/VertexTriangleAdjacency.cpp + ${assimpDir}/src/code/Common/SpatialSort.cpp + ${assimpDir}/src/code/Common/SceneCombiner.cpp + ${assimpDir}/src/code/Common/ScenePreprocessor.cpp + ${assimpDir}/src/code/Common/SkeletonMeshBuilder.cpp + ${assimpDir}/src/code/Common/SplitByBoneCountProcess.cpp + ${assimpDir}/src/code/Common/StandardShapes.cpp + ${assimpDir}/src/code/Common/TargetAnimation.cpp + ${assimpDir}/src/code/Common/RemoveComments.cpp + ${assimpDir}/src/code/Common/Subdivision.cpp + ${assimpDir}/src/code/Common/scene.cpp + ${assimpDir}/src/code/Common/Bitmap.cpp + ${assimpDir}/src/code/Common/Version.cpp + ${assimpDir}/src/code/Common/CreateAnimMesh.cpp + ${assimpDir}/src/code/Common/simd.cpp + ${assimpDir}/src/code/Common/ZipArchiveIOSystem.cpp + ${assimpDir}/src/code/Collada/ColladaLoader.cpp + ${assimpDir}/src/code/Collada/ColladaParser.cpp + ${assimpDir}/src/code/Material/MaterialSystem.cpp + ${assimpDir}/src/code/Obj/ObjFileImporter.cpp + ${assimpDir}/src/code/Obj/ObjFileMtlImporter.cpp + ${assimpDir}/src/code/Obj/ObjFileParser.cpp + ${assimpDir}/src/code/Blender/BlenderLoader.cpp + ${assimpDir}/src/code/Blender/BlenderDNA.cpp + ${assimpDir}/src/code/Blender/BlenderScene.cpp + ${assimpDir}/src/code/Blender/BlenderModifier.cpp + ${assimpDir}/src/code/Blender/BlenderBMesh.cpp + ${assimpDir}/src/code/Blender/BlenderTessellator.cpp + ${assimpDir}/src/code/Blender/BlenderCustomData.cpp + ${assimpDir}/src/code/FBX/FBXImporter.cpp + ${assimpDir}/src/code/FBX/FBXParser.cpp + ${assimpDir}/src/code/FBX/FBXTokenizer.cpp + ${assimpDir}/src/code/FBX/FBXConverter.cpp + ${assimpDir}/src/code/FBX/FBXUtil.cpp + ${assimpDir}/src/code/FBX/FBXDocument.cpp + ${assimpDir}/src/code/FBX/FBXProperties.cpp + ${assimpDir}/src/code/FBX/FBXMeshGeometry.cpp + ${assimpDir}/src/code/FBX/FBXMaterial.cpp + ${assimpDir}/src/code/FBX/FBXModel.cpp + ${assimpDir}/src/code/FBX/FBXAnimation.cpp + ${assimpDir}/src/code/FBX/FBXNodeAttribute.cpp + ${assimpDir}/src/code/FBX/FBXDeformer.cpp + ${assimpDir}/src/code/FBX/FBXBinaryTokenizer.cpp + ${assimpDir}/src/code/FBX/FBXDocumentUtil.cpp + ${assimpDir}/src/code/PostProcessing/CalcTangentsProcess.cpp + ${assimpDir}/src/code/PostProcessing/ComputeUVMappingProcess.cpp + ${assimpDir}/src/code/PostProcessing/ConvertToLHProcess.cpp + ${assimpDir}/src/code/PostProcessing/EmbedTexturesProcess.cpp + ${assimpDir}/src/code/PostProcessing/FindDegenerates.cpp + ${assimpDir}/src/code/PostProcessing/FindInstancesProcess.cpp + ${assimpDir}/src/code/PostProcessing/FindInvalidDataProcess.cpp + ${assimpDir}/src/code/PostProcessing/FixNormalsStep.cpp + ${assimpDir}/src/code/PostProcessing/DropFaceNormalsProcess.cpp + ${assimpDir}/src/code/PostProcessing/GenBoundingBoxesProcess.cpp + ${assimpDir}/src/code/PostProcessing/GenFaceNormalsProcess.cpp + ${assimpDir}/src/code/PostProcessing/GenVertexNormalsProcess.cpp + ${assimpDir}/src/code/PostProcessing/PretransformVertices.cpp + ${assimpDir}/src/code/PostProcessing/ImproveCacheLocality.cpp + ${assimpDir}/src/code/PostProcessing/JoinVerticesProcess.cpp + ${assimpDir}/src/code/PostProcessing/LimitBoneWeightsProcess.cpp + ${assimpDir}/src/code/PostProcessing/RemoveRedundantMaterials.cpp + ${assimpDir}/src/code/PostProcessing/RemoveVCProcess.cpp + ${assimpDir}/src/code/PostProcessing/SortByPTypeProcess.cpp + ${assimpDir}/src/code/PostProcessing/SplitLargeMeshes.cpp + ${assimpDir}/src/code/PostProcessing/TextureTransform.cpp + ${assimpDir}/src/code/PostProcessing/TriangulateProcess.cpp + ${assimpDir}/src/code/PostProcessing/ValidateDataStructure.cpp + ${assimpDir}/src/code/PostProcessing/OptimizeGraph.cpp + ${assimpDir}/src/code/PostProcessing/OptimizeMeshes.cpp + ${assimpDir}/src/code/PostProcessing/DeboneProcess.cpp + ${assimpDir}/src/code/PostProcessing/ProcessHelper.cpp + ${assimpDir}/src/code/PostProcessing/MakeVerboseFormat.cpp + ${assimpDir}/src/code/PostProcessing/ScaleProcess.cpp + ${assimpDir}/src/code/glTF/glTFImporter.cpp + ${assimpDir}/src/code/glTF/glTFCommon.cpp + ${assimpDir}/src/code/glTF2/glTF2Importer.cpp + ${assimpDir}/src/contrib/Open3DGC/o3dgcArithmeticCodec.cpp + ${assimpDir}/src/contrib/Open3DGC/o3dgcDynamicVectorDecoder.cpp + ${assimpDir}/src/contrib/Open3DGC/o3dgcDynamicVectorEncoder.cpp + ${assimpDir}/src/contrib/Open3DGC/o3dgcTools.cpp + ${assimpDir}/src/contrib/Open3DGC/o3dgcTriangleFans.cpp + ${assimpDir}/src/contrib/clipper/clipper.cpp + ${assimpDir}/src/contrib/irrXML/irrXML.cpp + ${assimpDir}/src/contrib/openddlparser/code/DDLNode.cpp + ${assimpDir}/src/contrib/openddlparser/code/OpenDDLCommon.cpp + ${assimpDir}/src/contrib/openddlparser/code/OpenDDLExport.cpp + ${assimpDir}/src/contrib/openddlparser/code/OpenDDLParser.cpp + ${assimpDir}/src/contrib/openddlparser/code/OpenDDLStream.cpp + ${assimpDir}/src/contrib/openddlparser/code/Value.cpp + ${assimpDir}/src/contrib/poly2tri/poly2tri/common/shapes.cc + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/advancing_front.cc + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/cdt.cc + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/sweep.cc + ${assimpDir}/src/contrib/poly2tri/poly2tri/sweep/sweep_context.cc + ${assimpDir}/src/contrib/unzip/ioapi.c + ${assimpDir}/src/contrib/unzip/unzip.c + ${assimpDir}/src/contrib/zip/src/zip.c + DEFINES + ASSIMP_BUILD_BOOST_WORKAROUND + ASSIMP_BUILD_NO_3DS_IMPORTER + ASSIMP_BUILD_NO_3D_IMPORTER + ASSIMP_BUILD_NO_3MF_IMPORTER + ASSIMP_BUILD_NO_AC_IMPORTER + ASSIMP_BUILD_NO_AMF_IMPORTER + ASSIMP_BUILD_NO_ASE_IMPORTER + ASSIMP_BUILD_NO_ASSBIN_IMPORTER + ASSIMP_BUILD_NO_B3D_IMPORTER + ASSIMP_BUILD_NO_BVH_IMPORTER + ASSIMP_BUILD_NO_C4D_IMPORTER + ASSIMP_BUILD_NO_COB_IMPORTER + ASSIMP_BUILD_NO_COMPRESSED_IFC + ASSIMP_BUILD_NO_CSM_IMPORTER + ASSIMP_BUILD_NO_DXF_IMPORTER + ASSIMP_BUILD_NO_EXPORT + ASSIMP_BUILD_NO_HMP_IMPORTER + ASSIMP_BUILD_NO_IFC_IMPORTER + ASSIMP_BUILD_NO_IRRMESH_IMPORTER + ASSIMP_BUILD_NO_IRR_IMPORTER + ASSIMP_BUILD_NO_LWO_IMPORTER + ASSIMP_BUILD_NO_LWS_IMPORTER + ASSIMP_BUILD_NO_MD2_IMPORTER + ASSIMP_BUILD_NO_MD3_IMPORTER + ASSIMP_BUILD_NO_MD5_IMPORTER + ASSIMP_BUILD_NO_MDC_IMPORTER + ASSIMP_BUILD_NO_MDL_IMPORTER + ASSIMP_BUILD_NO_MMD_IMPORTER + ASSIMP_BUILD_NO_MS3D_IMPORTER + ASSIMP_BUILD_NO_NDO_IMPORTER + ASSIMP_BUILD_NO_NFF_IMPORTER + ASSIMP_BUILD_NO_OFF_IMPORTER + ASSIMP_BUILD_NO_OGRE_IMPORTER + ASSIMP_BUILD_NO_OPENGEX_IMPORTER + ASSIMP_BUILD_NO_OWN_ZLIB + ASSIMP_BUILD_NO_PLY_IMPORTER + ASSIMP_BUILD_NO_Q3BSP_IMPORTER + ASSIMP_BUILD_NO_Q3D_IMPORTER + ASSIMP_BUILD_NO_RAW_IMPORTER + ASSIMP_BUILD_NO_SIB_IMPORTER + ASSIMP_BUILD_NO_SMD_IMPORTER + ASSIMP_BUILD_NO_STEP_IMPORTER + ASSIMP_BUILD_NO_STL_IMPORTER + ASSIMP_BUILD_NO_TERRAGEN_IMPORTER + ASSIMP_BUILD_NO_X3D_IMPORTER + ASSIMP_BUILD_NO_XGL_IMPORTER + ASSIMP_BUILD_NO_X_IMPORTER + OPENDDL_STATIC_LIBARY + NOUNCRYPT + INCLUDE_DIRECTORIES + ${assimpDir} + ${assimpDir}/.. + ${assimpDir}/contrib/unzip + ${assimpDir}/src + ${assimpDir}/src/code + ${assimpDir}/src/code/Blender + ${assimpDir}/src/code/CApi + ${assimpDir}/src/code/Collada + ${assimpDir}/src/code/Common + ${assimpDir}/src/code/FBX + ${assimpDir}/src/code/Material + ${assimpDir}/src/code/Obj + ${assimpDir}/src/code/PostProcessing + ${assimpDir}/src/code/glTF + ${assimpDir}/src/code/glTF2 + ${assimpDir}/src/contrib/irrXML + ${assimpDir}/src/contrib/openddlparser/include + ${assimpDir}/src/contrib/poly2tri + ${assimpDir}/src/contrib/rapidjson/include + ${assimpDir}/src/contrib/utf8cpp/source + ${assimpDir}/src/include + ${assimpDir}/src/include/assimp/Compiler + ${assimpDir}/unzip + ) + + qt_extend_target(${target} CONDITION CMAKE_BUILD_TYPE STREQUAL Debug AND (CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_system_assimp) AND (host_build OR NOT QT_FEATURE_system_assimp) + DEFINES + _DEBUG + ) + + qt_extend_target(${target} CONDITION WIN32 AND (CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_system_assimp) AND (host_build OR NOT QT_FEATURE_system_assimp) + DEFINES + _CRT_SECURE_NO_WARNINGS + ) + + qt_extend_target(${target} CONDITION QT_FEATURE_system_zlib AND NOT QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + LIBRARIES + ZLIB::ZLIB + ) + + qt_extend_target(${target} CONDITION (CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_system_assimp) AND (CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_system_zlib) AND (host_build OR NOT QT_FEATURE_system_assimp) AND (host_build OR NOT QT_FEATURE_system_zlib) + LIBRARIES + Qt::ZlibPrivate + ) + + # special case begin + qt_extend_target(${target} CONDITION ICC AND NOT QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + COMPILE_OPTIONS + "-wd310" "-wd68" "-wd858" + ) + + qt_extend_target(${target} CONDITION (GCC OR CLANG) AND NOT QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + COMPILE_OPTIONS + "-Wno-ignored-qualifiers" + "-Wno-unused-parameter" + "-Wno-unused-variable" + "-Wno-deprecated-declarations" + "-Wno-unused-function" + "-Wno-reorder" + ) + + qt_extend_target(${target} CONDITION MSVC AND NOT QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + COMPILE_OPTIONS + "-wd4100" + "-wd4189" + "-wd4267" + "-wd4996" + "-wd4828" + ) + + qt_extend_target(${target} CONDITION CLANG AND NOT QT_FEATURE_system_assimp AND (NOT CMAKE_CROSSCOMPILING OR NOT host_build) + COMPILE_OPTIONS + "-Wno-unused-private-field" + ) + # special case end + + qt_extend_target(${target} CONDITION MSVC AND (CMAKE_CROSSCOMPILING OR NOT QT_FEATURE_system_assimp) AND (host_build OR NOT QT_FEATURE_system_assimp) + DEFINES + _CRT_SECURE_NO_WARNINGS + _SCL_SECURE_NO_WARNINGS + COMPILE_OPTIONS + /bigobj + ) +endfunction()
\ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 000000000..6ce9c87f7 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from src.pro. +add_subdirectory(core) +add_subdirectory(render) +add_subdirectory(logic) +add_subdirectory(input) +add_subdirectory(animation) +add_subdirectory(extras) +add_subdirectory(doc) + +if(TARGET Qt::Quick) + # Quick3D libs + add_subdirectory(quick3d/quick3d) + add_subdirectory(quick3d/quick3drender) + add_subdirectory(quick3d/quick3dinput) + add_subdirectory(quick3d/quick3danimation) + add_subdirectory(quick3d/quick3dextras) + add_subdirectory(quick3d/quick3dscene2d) + +# # Quick3D imports + add_subdirectory(quick3d/imports/core) + add_subdirectory(quick3d/imports/render) + add_subdirectory(quick3d/imports/scene3d) + add_subdirectory(quick3d/imports/input) + add_subdirectory(quick3d/imports/logic) + add_subdirectory(quick3d/imports/animation) + add_subdirectory(quick3d/imports/extras) + add_subdirectory(quick3d/imports/scene2d) +endif() + +## Plugins +add_subdirectory(plugins/sceneparsers) +add_subdirectory(plugins/geometryloaders) +add_subdirectory(plugins/renderers) + +if(TARGET Qt::Quick) + add_subdirectory(plugins/renderplugins) +endif() diff --git a/src/animation/CMakeLists.txt b/src/animation/CMakeLists.txt new file mode 100644 index 000000000..d62d2299a --- /dev/null +++ b/src/animation/CMakeLists.txt @@ -0,0 +1,88 @@ +# Generated from animation.pro. + +##################################################################### +## 3DAnimation Module: +##################################################################### + +qt_add_module(3DAnimation + SOURCES + animationlogging.cpp animationlogging_p.h + backend/abstractevaluateclipanimatorjob.cpp backend/abstractevaluateclipanimatorjob_p.h + backend/additiveclipblend.cpp backend/additiveclipblend_p.h + backend/animationclip.cpp backend/animationclip_p.h + backend/animationutils.cpp backend/animationutils_p.h + backend/backendnode.cpp backend/backendnode_p.h + backend/bezierevaluator.cpp backend/bezierevaluator_p.h + backend/blendedclipanimator.cpp backend/blendedclipanimator_p.h + backend/buildblendtreesjob.cpp backend/buildblendtreesjob_p.h + backend/channelmapper.cpp backend/channelmapper_p.h + backend/channelmapping.cpp backend/channelmapping_p.h + backend/clipanimator.cpp backend/clipanimator_p.h + backend/clipblendnode.cpp backend/clipblendnode_p.h + backend/clipblendnodevisitor.cpp backend/clipblendnodevisitor_p.h + backend/clipblendvalue.cpp backend/clipblendvalue_p.h + backend/clock.cpp backend/clock_p.h + backend/evaluateblendclipanimatorjob.cpp backend/evaluateblendclipanimatorjob_p.h + backend/evaluateclipanimatorjob.cpp backend/evaluateclipanimatorjob_p.h + backend/fcurve.cpp backend/fcurve_p.h + backend/findrunningclipanimatorsjob.cpp backend/findrunningclipanimatorsjob_p.h + backend/functionrangefinder.cpp backend/functionrangefinder_p.h + backend/gltfimporter.cpp backend/gltfimporter_p.h + backend/handle_types_p.h + backend/handler.cpp backend/handler_p.h + backend/keyframe_p.h + backend/lerpclipblend.cpp backend/lerpclipblend_p.h + backend/loadanimationclipjob.cpp backend/loadanimationclipjob_p.h + backend/managers.cpp backend/managers_p.h + backend/nodefunctor_p.h + backend/skeleton.cpp backend/skeleton_p.h + frontend/qabstractanimation.cpp frontend/qabstractanimation.h frontend/qabstractanimation_p.h + frontend/qabstractanimationclip.cpp frontend/qabstractanimationclip.h frontend/qabstractanimationclip_p.h + frontend/qabstractchannelmapping.cpp frontend/qabstractchannelmapping.h frontend/qabstractchannelmapping_p.h + frontend/qabstractclipanimator.cpp frontend/qabstractclipanimator.h frontend/qabstractclipanimator_p.h + frontend/qabstractclipblendnode.cpp frontend/qabstractclipblendnode.h frontend/qabstractclipblendnode_p.h + frontend/qadditiveclipblend.cpp frontend/qadditiveclipblend.h frontend/qadditiveclipblend_p.h + frontend/qanimationaspect.cpp frontend/qanimationaspect.h frontend/qanimationaspect_p.h + frontend/qanimationcallback.h + frontend/qanimationclip.cpp frontend/qanimationclip.h frontend/qanimationclip_p.h + frontend/qanimationclipdata.cpp frontend/qanimationclipdata.h + frontend/qanimationcliploader.cpp frontend/qanimationcliploader.h + frontend/qanimationcontroller.cpp frontend/qanimationcontroller.h frontend/qanimationcontroller_p.h + frontend/qanimationgroup.cpp frontend/qanimationgroup.h frontend/qanimationgroup_p.h + frontend/qblendedclipanimator.cpp frontend/qblendedclipanimator.h frontend/qblendedclipanimator_p.h + frontend/qcallbackmapping.cpp frontend/qcallbackmapping.h frontend/qcallbackmapping_p.h + frontend/qchannel.cpp frontend/qchannel.h + frontend/qchannelcomponent.cpp frontend/qchannelcomponent.h + frontend/qchannelmapper.cpp frontend/qchannelmapper.h frontend/qchannelmapper_p.h + frontend/qchannelmapping.cpp frontend/qchannelmapping.h frontend/qchannelmapping_p.h + frontend/qclipanimator.cpp frontend/qclipanimator.h frontend/qclipanimator_p.h + frontend/qclipblendvalue.cpp frontend/qclipblendvalue.h frontend/qclipblendvalue_p.h + frontend/qclock.cpp frontend/qclock.h frontend/qclock_p.h + frontend/qkeyframe.cpp frontend/qkeyframe.h + frontend/qkeyframeanimation.cpp frontend/qkeyframeanimation.h frontend/qkeyframeanimation_p.h + frontend/qlerpclipblend.cpp frontend/qlerpclipblend.h frontend/qlerpclipblend_p.h + frontend/qmorphinganimation.cpp frontend/qmorphinganimation.h frontend/qmorphinganimation_p.h + frontend/qmorphtarget.cpp frontend/qmorphtarget.h frontend/qmorphtarget_p.h + frontend/qskeletonmapping.cpp frontend/qskeletonmapping.h frontend/qskeletonmapping_p.h + frontend/qvertexblendanimation.cpp frontend/qvertexblendanimation.h frontend/qvertexblendanimation_p.h + job_common_p.h + qt3danimation_global.h qt3danimation_global_p.h + DEFINES + QT3DANIMATION_LIBRARY + INCLUDE_DIRECTORIES + backend + frontend + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate +) + +#### Keys ignored in scope 1:.:.:animation.pro:<TRUE>: +# MODULE = "3DAnimation" diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt new file mode 100644 index 000000000..570233ac3 --- /dev/null +++ b/src/core/CMakeLists.txt @@ -0,0 +1,132 @@ +# Generated from core.pro. + +##################################################################### +## Qt::3DCore Module: +##################################################################### + +qt_add_module(3DCore + SOURCES + aspect/qcoreaspect.cpp aspect/qcoreaspect.h aspect/qcoreaspect_p.h + aspects/aspectcommanddebugger.cpp aspects/aspectcommanddebugger_p.h + aspects/qabstractaspect.cpp aspects/qabstractaspect.h aspects/qabstractaspect_p.h + aspects/qaspectengine.cpp aspects/qaspectengine.h aspects/qaspectengine_p.h + aspects/qaspectfactory.cpp aspects/qaspectfactory_p.h + aspects/qaspectmanager.cpp aspects/qaspectmanager_p.h + corelogging.cpp corelogging_p.h + geometry/bufferutils_p.h + geometry/buffervisitor_p.h + geometry/qabstractfunctor.cpp geometry/qabstractfunctor.h + geometry/qattribute.cpp geometry/qattribute.h geometry/qattribute_p.h + geometry/qboundingvolume.cpp geometry/qboundingvolume.h geometry/qboundingvolume_p.h + geometry/qbuffer.cpp geometry/qbuffer.h geometry/qbuffer_p.h + geometry/qgeometry.cpp geometry/qgeometry.h geometry/qgeometry_p.h + geometry/qgeometryfactory_p.h + geometry/qgeometryview.cpp geometry/qgeometryview.h geometry/qgeometryview_p.h + jobs/calcboundingvolumejob.cpp jobs/calcboundingvolumejob_p.h + jobs/job_common_p.h + jobs/qabstractaspectjobmanager.cpp jobs/qabstractaspectjobmanager_p.h + jobs/qaspectjob.cpp jobs/qaspectjob.h jobs/qaspectjob_p.h + jobs/qaspectjobmanager.cpp jobs/qaspectjobmanager_p.h + jobs/qaspectjobproviderinterface_p.h + jobs/qthreadpooler.cpp jobs/qthreadpooler_p.h + jobs/task.cpp jobs/task_p.h + nodes/propertychangehandler.cpp nodes/propertychangehandler_p.h + nodes/qabstractnodefactory.cpp nodes/qabstractnodefactory_p.h + nodes/qbackendnode.cpp nodes/qbackendnode.h nodes/qbackendnode_p.h + nodes/qcomponent.cpp nodes/qcomponent.h nodes/qcomponent_p.h + nodes/qdestructionidandtypecollector.cpp nodes/qdestructionidandtypecollector_p.h + nodes/qentity.cpp nodes/qentity.h nodes/qentity_p.h + nodes/qnode.cpp nodes/qnode.h nodes/qnode_p.h + nodes/qnodeid.cpp nodes/qnodeid.h + nodes/qnodevisitor.cpp nodes/qnodevisitor_p.h + qabstractfrontendnodemanager.cpp qabstractfrontendnodemanager.h + qchangearbiter.cpp qchangearbiter_p.h + qscene.cpp qscene_p.h + qscheduler.cpp qscheduler_p.h + qt3dcore_global.h qt3dcore_global_p.h + qtickclock.cpp qtickclock_p.h + qurlhelper.cpp qurlhelper_p.h + resources/qframeallocator.cpp resources/qframeallocator_p.h + resources/qframeallocator_p_p.h + resources/qhandle_p.h + resources/qloadgltf_p.h + resources/qresourcemanager.cpp resources/qresourcemanager_p.h + services/nullservices_p.h + services/qabstractframeadvanceservice.cpp services/qabstractframeadvanceservice_p.h + services/qabstractframeadvanceservice_p_p.h + services/qabstractserviceprovider_p.h + services/qdownloadhelperservice.cpp services/qdownloadhelperservice_p.h + services/qdownloadnetworkworker.cpp services/qdownloadnetworkworker_p.h + services/qeventfilterservice.cpp services/qeventfilterservice_p.h + services/qopenglinformationservice.cpp services/qopenglinformationservice_p.h + services/qopenglinformationservice_p_p.h + services/qservicelocator.cpp services/qservicelocator_p.h + services/qsysteminformationservice.cpp services/qsysteminformationservice_p.h + services/qsysteminformationservice_p_p.h + services/qtickclockservice.cpp services/qtickclockservice_p.h + transforms/matrix4x4_p.h + transforms/qabstractskeleton.cpp transforms/qabstractskeleton.h transforms/qabstractskeleton_p.h + transforms/qarmature.cpp transforms/qarmature.h transforms/qarmature_p.h + transforms/qjoint.cpp transforms/qjoint.h transforms/qjoint_p.h + transforms/qmath3d_p.h + transforms/qskeleton.cpp transforms/qskeleton.h transforms/qskeleton_p.h + transforms/qskeletonloader.cpp transforms/qskeletonloader.h transforms/qskeletonloader_p.h + transforms/qtransform.cpp transforms/qtransform.h transforms/qtransform_p.h + transforms/sqt_p.h + transforms/vector3d_p.h + transforms/vector4d_p.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + aspect + aspects + geometry + jobs + nodes + services + transforms + LIBRARIES + Qt::Concurrent + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Core + Qt::Gui + Qt::Network + PRIVATE_MODULE_INTERFACE + Qt::Concurrent + Qt::CorePrivate + Qt::GuiPrivate +) + +qt_extend_target(3DCore CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) + +if(QT_FEATURE_qt3d_simd_sse2) + qt_add_simd_part(3DCore SIMD sse2 + SOURCES + transforms/matrix4x4_sse.cpp transforms/matrix4x4_sse_p.h + ) +endif() + +if(QT_FEATURE_qt3d_simd_sse2 AND NOT QT_FEATURE_qt3d_simd_avx2) + qt_add_simd_part(3DCore SIMD sse2 + SOURCES + transforms/vector3d_sse.cpp transforms/vector3d_sse_p.h + transforms/vector4d_sse.cpp transforms/vector4d_sse_p.h + ) +endif() + +if(QT_FEATURE_qt3d_simd_avx2) + qt_add_simd_part(3DCore SIMD avx2 + SOURCES + transforms/matrix4x4_avx2.cpp transforms/matrix4x4_avx2_p.h + transforms/vector3d_sse.cpp transforms/vector3d_sse_p.h + transforms/vector4d_sse.cpp transforms/vector4d_sse_p.h + ) +endif() diff --git a/src/core/configure.cmake b/src/core/configure.cmake new file mode 100644 index 000000000..77743dacf --- /dev/null +++ b/src/core/configure.cmake @@ -0,0 +1,75 @@ +#### Inputs + +# input assimp +set(INPUT_assimp "undefined" CACHE STRING "") +set_property(CACHE INPUT_assimp PROPERTY STRINGS undefined qt system no) + + + +#### Libraries + + + +#### Tests + + + +#### Features + +qt_feature("qt3d_render" PUBLIC + SECTION "Aspects" + LABEL "Render aspect" + PURPOSE "Use the 3D Render Aspect library" +) + +qt_feature("qt3d_input" PUBLIC + SECTION "Aspects" + LABEL "Input aspect" + PURPOSE "Use the 3D Input Aspect library" +) + +qt_feature("qt3d_logic" PUBLIC + SECTION "Aspects" + LABEL "Logic aspect" + PURPOSE "Use the 3D Logic Aspect library" +) + +qt_feature("qt3d_extras" PUBLIC + SECTION "Aspects" + LABEL "Extras aspect" + PURPOSE "Use the 3D Extra library" + CONDITION QT_FEATURE_qt3d_render AND QT_FEATURE_qt3d_input AND QT_FEATURE_qt3d_logic +) + +qt_feature("qt3d_animation" PUBLIC + SECTION "Aspects" + LABEL "Animation aspect" + PURPOSE "Use the 3D Animation Aspect library" + CONDITION QT_FEATURE_qt3d_render +) + +qt_feature("qt3d_simd_sse2" PRIVATE + LABEL "Use SSE2 instructions" + PURPOSE "Use SSE2 SIMD instructions to accelerate matrix operations" + AUTODETECT QT_FEATURE_sse2 + ENABLE INPUT_qt3d_simd STREQUAL 'sse2' OR INPUT_qt3d_simd STREQUAL 'avx2' + DISABLE INPUT_qt3d_simd STREQUAL 'no' OR ( TEST_architecture_arch STREQUAL i386 ) +) + +qt_feature("qt3d_simd_avx2" PRIVATE + LABEL "Use AVX2 instructions" + PURPOSE "Use AVX2 SIMD instructions to accelerate matrix operations" + AUTODETECT TEST_arch_${TEST_architecture_arch}_subarch_avx2 + ENABLE INPUT_qt3d_simd STREQUAL 'avx2' + DISABLE INPUT_qt3d_simd STREQUAL 'sse2' OR INPUT_qt3d_simd STREQUAL 'no' OR ( TEST_architecture_arch STREQUAL i386 ) +) + +qt_configure_add_summary_section(NAME "Qt3D Core") +qt_configure_add_summary_entry(ARGS "qt3d_simd_sse2") +qt_configure_add_summary_entry(ARGS "qt3d_simd_avx2") +qt_configure_add_summary_entry(ARGS "qt3d_animation") +qt_configure_add_summary_entry(ARGS "qt3d_extras") +qt_configure_add_summary_entry(ARGS "qt3d_input") +qt_configure_add_summary_entry(ARGS "qt3d_logic") +qt_configure_add_summary_entry(ARGS "qt3d_render") +qt_configure_end_summary_section() # end of "Qt3D" section diff --git a/src/doc/CMakeLists.txt b/src/doc/CMakeLists.txt new file mode 100644 index 000000000..21a0ea140 --- /dev/null +++ b/src/doc/CMakeLists.txt @@ -0,0 +1,2 @@ +# Generated from doc.pro. + diff --git a/src/extras/CMakeLists.txt b/src/extras/CMakeLists.txt new file mode 100644 index 000000000..ec53dd79f --- /dev/null +++ b/src/extras/CMakeLists.txt @@ -0,0 +1,148 @@ +# Generated from extras.pro. + +##################################################################### +## Qt::3DExtras Module: +##################################################################### + +qt_add_module(3DExtras + SOURCES + 3dtext/qextrudedtextgeometry.cpp 3dtext/qextrudedtextgeometry.h 3dtext/qextrudedtextgeometry_p.h + 3dtext/qextrudedtextmesh.cpp 3dtext/qextrudedtextmesh.h + defaults/qabstractcameracontroller.cpp defaults/qabstractcameracontroller.h defaults/qabstractcameracontroller_p.h + defaults/qabstractspritesheet.cpp defaults/qabstractspritesheet.h defaults/qabstractspritesheet_p.h + defaults/qdiffusemapmaterial.cpp defaults/qdiffusemapmaterial.h defaults/qdiffusemapmaterial_p.h + defaults/qdiffusespecularmapmaterial.cpp defaults/qdiffusespecularmapmaterial.h defaults/qdiffusespecularmapmaterial_p.h + defaults/qdiffusespecularmaterial.cpp defaults/qdiffusespecularmaterial.h defaults/qdiffusespecularmaterial_p.h + defaults/qfirstpersoncameracontroller.cpp defaults/qfirstpersoncameracontroller.h + defaults/qforwardrenderer.cpp defaults/qforwardrenderer.h defaults/qforwardrenderer_p.h + defaults/qgoochmaterial.cpp defaults/qgoochmaterial.h defaults/qgoochmaterial_p.h + defaults/qmetalroughmaterial.cpp defaults/qmetalroughmaterial.h defaults/qmetalroughmaterial_p.h + defaults/qmorphphongmaterial.cpp defaults/qmorphphongmaterial.h defaults/qmorphphongmaterial_p.h + defaults/qnormaldiffusemapalphamaterial.cpp defaults/qnormaldiffusemapalphamaterial.h defaults/qnormaldiffusemapalphamaterial_p.h + defaults/qnormaldiffusemapmaterial.cpp defaults/qnormaldiffusemapmaterial.h defaults/qnormaldiffusemapmaterial_p.h + defaults/qnormaldiffusespecularmapmaterial.cpp defaults/qnormaldiffusespecularmapmaterial.h defaults/qnormaldiffusespecularmapmaterial_p.h + defaults/qorbitcameracontroller.cpp defaults/qorbitcameracontroller.h defaults/qorbitcameracontroller_p.h + defaults/qpervertexcolormaterial.cpp defaults/qpervertexcolormaterial.h defaults/qpervertexcolormaterial_p.h + defaults/qphongalphamaterial.cpp defaults/qphongalphamaterial.h defaults/qphongalphamaterial_p.h + defaults/qphongmaterial.cpp defaults/qphongmaterial.h defaults/qphongmaterial_p.h + defaults/qskyboxentity.cpp defaults/qskyboxentity.h defaults/qskyboxentity_p.h + defaults/qspritegrid.cpp defaults/qspritegrid.h defaults/qspritegrid_p.h + defaults/qspritesheet.cpp defaults/qspritesheet.h defaults/qspritesheet_p.h + defaults/qspritesheetitem.cpp defaults/qspritesheetitem.h defaults/qspritesheetitem_p.h + defaults/qt3dwindow.cpp defaults/qt3dwindow.h defaults/qt3dwindow_p.h + defaults/qtexturematerial.cpp defaults/qtexturematerial.h defaults/qtexturematerial_p.h + geometries/qconegeometry.cpp geometries/qconegeometry.h geometries/qconegeometry_p.h + geometries/qconemesh.cpp geometries/qconemesh.h + geometries/qcuboidgeometry.cpp geometries/qcuboidgeometry.h geometries/qcuboidgeometry_p.h + geometries/qcuboidmesh.cpp geometries/qcuboidmesh.h + geometries/qcylindergeometry.cpp geometries/qcylindergeometry.h geometries/qcylindergeometry_p.h + geometries/qcylindermesh.cpp geometries/qcylindermesh.h + geometries/qplanegeometry.cpp geometries/qplanegeometry.h geometries/qplanegeometry_p.h + geometries/qplanemesh.cpp geometries/qplanemesh.h + geometries/qspheregeometry.cpp geometries/qspheregeometry.h geometries/qspheregeometry_p.h + geometries/qspheremesh.cpp geometries/qspheremesh.h + geometries/qtorusgeometry.cpp geometries/qtorusgeometry.h geometries/qtorusgeometry_p.h + geometries/qtorusmesh.cpp geometries/qtorusmesh.h + qt3dextras_global.h + text/areaallocator.cpp text/areaallocator_p.h + text/distancefieldtextrenderer.cpp text/distancefieldtextrenderer_p.h + text/distancefieldtextrenderer_p_p.h + text/qdistancefieldglyphcache.cpp text/qdistancefieldglyphcache_p.h + text/qtext2dentity.cpp text/qtext2dentity.h text/qtext2dentity_p.h + text/qtext2dmaterial.cpp text/qtext2dmaterial_p.h + text/qtext2dmaterial_p_p.h + text/qtextureatlas.cpp text/qtextureatlas_p.h + text/qtextureatlas_p_p.h + DEFINES + QT3DEXTRAS_LIBRARY + INCLUDE_DIRECTORIES + 3dtext + defaults + geometries + text + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DInput + 3DLogic + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate +) + +# Resources: +set(extras_resource_files + "shaders/es2/coordinatesystems.inc" + "shaders/es2/default.vert" + "shaders/es2/distancefieldtext.frag" + "shaders/es2/distancefieldtext.vert" + "shaders/es2/gooch.frag" + "shaders/es2/gooch.vert" + "shaders/es2/light.inc.frag" + "shaders/es2/light.inc.frag100" + "shaders/es2/morphphong.vert" + "shaders/es2/pervertexcolor.frag" + "shaders/es2/pervertexcolor.vert" + "shaders/es2/phong.inc.frag" + "shaders/es2/phong.inc.frag100" + "shaders/es2/skybox.frag" + "shaders/es2/skybox.vert" + "shaders/es2/unlittexture.frag" + "shaders/es2/unlittexture.vert" + "shaders/es3/coordinatesystems.inc" + "shaders/es3/default.vert" + "shaders/es3/light.inc.frag" + "shaders/es3/metalrough.inc.frag" + "shaders/gl3/coordinatesystems.inc" + "shaders/gl3/default.vert" + "shaders/gl3/distancefieldtext.frag" + "shaders/gl3/distancefieldtext.vert" + "shaders/gl3/gooch.frag" + "shaders/gl3/gooch.vert" + "shaders/gl3/light.inc.frag" + "shaders/gl3/metalrough.inc.frag" + "shaders/gl3/morphphong.vert" + "shaders/gl3/pervertexcolor.frag" + "shaders/gl3/pervertexcolor.vert" + "shaders/gl3/phong.inc.frag" + "shaders/gl3/skybox.frag" + "shaders/gl3/skybox.vert" + "shaders/gl3/unlittexture.frag" + "shaders/gl3/unlittexture.vert" + "shaders/graphs/metalrough.frag.json" + "shaders/graphs/phong.frag.json" + "shaders/graphs/phong.graph" + "shaders/rhi/coordinatesystems.inc" + "shaders/rhi/default.vert" + "shaders/rhi/defaultuniforms.inc" + "shaders/rhi/distancefieldtext.frag" + "shaders/rhi/distancefieldtext.vert" + "shaders/rhi/gooch.frag" + "shaders/rhi/gooch.vert" + "shaders/rhi/light.inc.frag" + "shaders/rhi/metalrough.inc.frag" + "shaders/rhi/morphphong.vert" + "shaders/rhi/pervertexcolor.frag" + "shaders/rhi/pervertexcolor.vert" + "shaders/rhi/phong.inc.frag" + "shaders/rhi/skybox.frag" + "shaders/rhi/skybox.vert" + "shaders/rhi/unlittexture.frag" + "shaders/rhi/unlittexture.vert" +) + +qt_add_resource(3DExtras "extras" + PREFIX + "/" + FILES + ${extras_resource_files} +) + + +#### Keys ignored in scope 1:.:.:extras.pro:<TRUE>: +# MODULE = "3DExtras" diff --git a/src/input/CMakeLists.txt b/src/input/CMakeLists.txt new file mode 100644 index 000000000..d1038028e --- /dev/null +++ b/src/input/CMakeLists.txt @@ -0,0 +1,106 @@ +# Generated from input.pro. + +##################################################################### +## Qt::3DInput Module: +##################################################################### + +qt_add_module(3DInput + PLUGIN_TYPES Qt::3DInputdevices + SOURCES + backend/abstractactioninput.cpp backend/abstractactioninput_p.h + backend/abstractaxisinput.cpp backend/abstractaxisinput_p.h + backend/action.cpp backend/action_p.h + backend/actioninput.cpp backend/actioninput_p.h + backend/analogaxisinput.cpp backend/analogaxisinput_p.h + backend/assignkeyboardfocusjob.cpp backend/assignkeyboardfocusjob_p.h + backend/axis.cpp backend/axis_p.h + backend/axisaccumulator.cpp backend/axisaccumulator_p.h + backend/axisaccumulatorjob.cpp backend/axisaccumulatorjob_p.h + backend/axissetting.cpp backend/axissetting_p.h + backend/backendnode.cpp backend/backendnode_p.h + backend/buttonaxisinput.cpp backend/buttonaxisinput_p.h + backend/eventsourcesetterhelper.cpp backend/eventsourcesetterhelper_p.h + backend/genericdevicebackendnode.cpp backend/genericdevicebackendnode_p.h + backend/handle_types_p.h + backend/inputbackendnodefunctor_p.h + backend/inputchord.cpp backend/inputchord_p.h + backend/inputhandler.cpp backend/inputhandler_p.h + backend/inputmanagers_p.h + backend/inputsequence.cpp backend/inputsequence_p.h + backend/inputsettings.cpp backend/inputsettings_p.h + backend/job_common_p.h + backend/keyboarddevice.cpp backend/keyboarddevice_p.h + backend/keyboardeventfilter.cpp backend/keyboardeventfilter_p.h + backend/keyboardhandler.cpp backend/keyboardhandler_p.h + backend/keyboardmousegenericdeviceintegration.cpp backend/keyboardmousegenericdeviceintegration_p.h + backend/keyeventdispatcherjob.cpp backend/keyeventdispatcherjob_p.h + backend/loadproxydevicejob.cpp backend/loadproxydevicejob_p.h + backend/logicaldevice.cpp backend/logicaldevice_p.h + backend/mousedevice.cpp backend/mousedevice_p.h + backend/mouseeventdispatcherjob.cpp backend/mouseeventdispatcherjob_p.h + backend/mouseeventfilter.cpp backend/mouseeventfilter_p.h + backend/mousehandler.cpp backend/mousehandler_p.h + backend/movingaverage.cpp backend/movingaverage_p.h + backend/physicaldeviceproxy.cpp backend/physicaldeviceproxy_p.h + backend/qabstractphysicaldevicebackendnode.cpp backend/qabstractphysicaldevicebackendnode_p.h + backend/qabstractphysicaldevicebackendnode_p_p.h + backend/updateaxisactionjob.cpp backend/updateaxisactionjob_p.h + backend/utils_p.h + frontend/qabstractactioninput.cpp frontend/qabstractactioninput.h frontend/qabstractactioninput_p.h + frontend/qabstractaxisinput.cpp frontend/qabstractaxisinput.h frontend/qabstractaxisinput_p.h + frontend/qabstractphysicaldevice.cpp frontend/qabstractphysicaldevice.h frontend/qabstractphysicaldevice_p.h + frontend/qabstractphysicaldeviceproxy.cpp frontend/qabstractphysicaldeviceproxy_p.h + frontend/qabstractphysicaldeviceproxy_p_p.h + frontend/qaction.cpp frontend/qaction.h frontend/qaction_p.h + frontend/qactioninput.cpp frontend/qactioninput.h frontend/qactioninput_p.h + frontend/qanalogaxisinput.cpp frontend/qanalogaxisinput.h frontend/qanalogaxisinput_p.h + frontend/qaxis.cpp frontend/qaxis.h frontend/qaxis_p.h + frontend/qaxisaccumulator.cpp frontend/qaxisaccumulator.h frontend/qaxisaccumulator_p.h + frontend/qaxissetting.cpp frontend/qaxissetting.h frontend/qaxissetting_p.h + frontend/qbuttonaxisinput.cpp frontend/qbuttonaxisinput.h frontend/qbuttonaxisinput_p.h + frontend/qgenericinputdevice.cpp frontend/qgenericinputdevice_p.h + frontend/qinputaspect.cpp frontend/qinputaspect.h frontend/qinputaspect_p.h + frontend/qinputchord.cpp frontend/qinputchord.h frontend/qinputchord_p.h + frontend/qinputdeviceintegration.cpp frontend/qinputdeviceintegration_p.h + frontend/qinputdeviceintegration_p_p.h + frontend/qinputdeviceintegrationfactory.cpp frontend/qinputdeviceintegrationfactory_p.h + frontend/qinputdeviceplugin.cpp frontend/qinputdeviceplugin_p.h + frontend/qinputsequence.cpp frontend/qinputsequence.h frontend/qinputsequence_p.h + frontend/qinputsettings.cpp frontend/qinputsettings.h frontend/qinputsettings_p.h + frontend/qkeyboarddevice.cpp frontend/qkeyboarddevice.h frontend/qkeyboarddevice_p.h + frontend/qkeyboardhandler.cpp frontend/qkeyboardhandler.h frontend/qkeyboardhandler_p.h + frontend/qkeyevent.cpp frontend/qkeyevent.h + frontend/qlogicaldevice.cpp frontend/qlogicaldevice.h frontend/qlogicaldevice_p.h + frontend/qmousedevice.cpp frontend/qmousedevice.h frontend/qmousedevice_p.h + frontend/qmouseevent.cpp frontend/qmouseevent.h + frontend/qmousehandler.cpp frontend/qmousehandler.h frontend/qmousehandler_p.h + qt3dinput_global.h qt3dinput_global_p.h + DEFINES + QT3DINPUT_LIBRARY + INCLUDE_DIRECTORIES + backend + frontend + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::3DCorePrivate + Qt::Core + Qt::Gui + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate +) + +#### Keys ignored in scope 1:.:.:input.pro:<TRUE>: +# MODULE = "3DInput" + +## Scopes: +##################################################################### + +qt_extend_target(3DInput CONDITION TARGET Qt::Gamepad + SOURCES + frontend/qgamepadinput.cpp frontend/qgamepadinput_p.h + DEFINES + HAVE_QGAMEPAD + PUBLIC_LIBRARIES + Qt::Gamepad +) diff --git a/src/logic/CMakeLists.txt b/src/logic/CMakeLists.txt new file mode 100644 index 000000000..753c2c504 --- /dev/null +++ b/src/logic/CMakeLists.txt @@ -0,0 +1,47 @@ +# Generated from logic.pro. + +##################################################################### +## 3DLogic Module: +##################################################################### + +qt_add_module(3DLogic + SOURCES + callbackjob.cpp callbackjob_p.h + executor.cpp executor_p.h + handle_types_p.h + handler.cpp handler_p.h + job_common_p.h + manager.cpp manager_p.h + managers_p.h + qframeaction.cpp qframeaction.h qframeaction_p.h + qlogicaspect.cpp qlogicaspect.h qlogicaspect_p.h + qt3dlogic_global.h + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::Core + Qt::Gui + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::GuiPrivate +) + +#### Keys ignored in scope 1:.:.:logic.pro:<TRUE>: +# MODULE = "3DLogic" + +## Scopes: +##################################################################### + +qt_extend_target(3DLogic CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/plugins/geometryloaders/CMakeLists.txt b/src/plugins/geometryloaders/CMakeLists.txt new file mode 100644 index 000000000..d2ccc5ae5 --- /dev/null +++ b/src/plugins/geometryloaders/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from geometryloaders.pro. + +qt_feature_module_begin( + NO_MODULE + PUBLIC_FILE "qtgeometryloaders-config.h" + PRIVATE_FILE "qtgeometryloaders-config_p.h" +) +include(configure.cmake) +qt_feature_module_end(NO_MODULE) + +add_subdirectory(gltf) +if(QT_FEATURE_regularexpression) + add_subdirectory(default) +endif() +if(QT_FEATURE_qt3d_fbxsdk) + add_subdirectory(fbx) +endif() diff --git a/src/plugins/geometryloaders/configure.cmake b/src/plugins/geometryloaders/configure.cmake new file mode 100644 index 000000000..d6b257fc2 --- /dev/null +++ b/src/plugins/geometryloaders/configure.cmake @@ -0,0 +1,32 @@ +#### Inputs + +# input fbxsdk +set(INPUT_fbxsdk "undefined" CACHE STRING "") +set_property(CACHE INPUT_fbxsdk PROPERTY STRINGS undefined no system) + + +#### Libraries + +#qt_find_package(WrapAssimp 5 PROVIDED_TARGETS WrapAssimp::WrapAssimp) + +qt_config_compile_test("qt3d_fbxsdk" + LABEL "Autodesk FBX" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../config.tests/fbx" +# LIBRARIES WrapAssimp::WrapAssimp +# PACKAGES PACKAGE WrapAssimp 5 + ) +#### Tests + + + +#### Features + +qt_feature("qt3d_fbxsdk" PRIVATE + LABEL "Autodesk FBX" + CONDITION libs.fbx #OR FIXME +) +qt_feature_definition("qt3d_fbxsdk" "QT_3DGEOMETRYLOADERS_FBX") + +qt_configure_add_summary_section(NAME "Qt3D Geometry Loaders") +qt_configure_add_summary_entry(ARGS "qt3d_fbxsdk") +qt_configure_end_summary_section() # end of "Qt3D" section diff --git a/src/plugins/geometryloaders/default/CMakeLists.txt b/src/plugins/geometryloaders/default/CMakeLists.txt new file mode 100644 index 000000000..54a37ece0 --- /dev/null +++ b/src/plugins/geometryloaders/default/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from default.pro. + +##################################################################### +## DefaultGeometryLoaderPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(DefaultGeometryLoaderPlugin + OUTPUT_NAME defaultgeometryloader + TYPE geometryloaders + SOURCES + basegeometryloader.cpp basegeometryloader_p.h + main.cpp + objgeometryloader.cpp + plygeometryloader.cpp + stlgeometryloader.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:default.pro:<TRUE>: +# DISTFILES = "default.json" diff --git a/src/plugins/geometryloaders/fbx/CMakeLists.txt b/src/plugins/geometryloaders/fbx/CMakeLists.txt new file mode 100644 index 000000000..a9d037a8d --- /dev/null +++ b/src/plugins/geometryloaders/fbx/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from fbx.pro. + +##################################################################### +## fbxGeometryLoaderPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(fbxGeometryLoaderPlugin + OUTPUT_NAME fbxgeometryloader + TYPE geometryloaders + SOURCES + fbxgeometryloader.cpp fbxgeometryloader.h + main.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + fbx +) + +#### Keys ignored in scope 1:.:.:fbx.pro:<TRUE>: +# DISTFILES = "fbx.json" diff --git a/src/plugins/geometryloaders/gltf/CMakeLists.txt b/src/plugins/geometryloaders/gltf/CMakeLists.txt new file mode 100644 index 000000000..aa8f80c19 --- /dev/null +++ b/src/plugins/geometryloaders/gltf/CMakeLists.txt @@ -0,0 +1,24 @@ +# Generated from gltf.pro. + +##################################################################### +## GLTFGeometryLoaderPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(GLTFGeometryLoaderPlugin + OUTPUT_NAME gltfgeometryloader + TYPE geometryloaders + SOURCES + gltfgeometryloader.cpp gltfgeometryloader.h + main.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:gltf.pro:<TRUE>: +# DISTFILES = "gltf.json" diff --git a/src/plugins/renderers/CMakeLists.txt b/src/plugins/renderers/CMakeLists.txt new file mode 100644 index 000000000..59952e2e2 --- /dev/null +++ b/src/plugins/renderers/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from renderers.pro. + +if(QT_FEATURE_qt3d_opengl_renderer) + add_subdirectory(opengl) +endif() +if(QT_FEATURE_qt3d_rhi_renderer AND TARGET Qt::ShaderTools) + add_subdirectory(rhi) +endif() diff --git a/src/plugins/renderers/dummy/CMakeLists.txt b/src/plugins/renderers/dummy/CMakeLists.txt new file mode 100644 index 000000000..2e0fea2af --- /dev/null +++ b/src/plugins/renderers/dummy/CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from dummy.pro. + +##################################################################### +## dummy Binary: +##################################################################### + +qt_add_executable(dummy + GUI + PUBLIC_LIBRARIES + Qt::Gui +) diff --git a/src/plugins/renderers/opengl/CMakeLists.txt b/src/plugins/renderers/opengl/CMakeLists.txt new file mode 100644 index 000000000..42aa8f0e2 --- /dev/null +++ b/src/plugins/renderers/opengl/CMakeLists.txt @@ -0,0 +1,112 @@ +# Generated from opengl.pro. + +##################################################################### +## OpenGLRendererPlugin Plugin: +##################################################################### + +add_library(OpenGLRendererLib STATIC + graphicshelpers/graphicscontext.cpp graphicshelpers/graphicscontext_p.h + graphicshelpers/graphicshelperes2.cpp graphicshelpers/graphicshelperes2_p.h + graphicshelpers/graphicshelperes3.cpp graphicshelpers/graphicshelperes3_p.h + graphicshelpers/graphicshelperes3_1.cpp graphicshelpers/graphicshelperes3_1_p.h + graphicshelpers/graphicshelperes3_2.cpp graphicshelpers/graphicshelperes3_2_p.h + graphicshelpers/graphicshelpergl2.cpp graphicshelpers/graphicshelpergl2_p.h + graphicshelpers/graphicshelpergl3_2.cpp graphicshelpers/graphicshelpergl3_2_p.h + graphicshelpers/graphicshelpergl3_3.cpp graphicshelpers/graphicshelpergl3_3_p.h + graphicshelpers/graphicshelpergl4.cpp graphicshelpers/graphicshelpergl4_p.h + graphicshelpers/graphicshelperinterface_p.h + graphicshelpers/imagesubmissioncontext.cpp graphicshelpers/imagesubmissioncontext_p.h + graphicshelpers/qgraphicsutils_p.h + graphicshelpers/submissioncontext.cpp graphicshelpers/submissioncontext_p.h + graphicshelpers/texturesubmissioncontext.cpp graphicshelpers/texturesubmissioncontext_p.h + io/glbuffer.cpp io/glbuffer_p.h + jobs/filtercompatibletechniquejob.cpp jobs/filtercompatibletechniquejob_p.h + jobs/materialparametergathererjob.cpp jobs/materialparametergathererjob_p.h + jobs/renderviewcommandbuilderjob.cpp jobs/renderviewcommandbuilderjob_p.h + jobs/renderviewcommandupdaterjob.cpp jobs/renderviewcommandupdaterjob_p.h + jobs/renderviewinitializerjob.cpp jobs/renderviewinitializerjob_p.h + jobs/renderviewjobutils.cpp jobs/renderviewjobutils_p.h + managers/gl_handle_types_p.h + managers/glresourcemanagers.cpp managers/glresourcemanagers_p.h + renderer/commandexecuter.cpp renderer/commandexecuter_p.h + renderer/frameprofiler_p.h + renderer/glfence_p.h + renderer/gllights.cpp renderer/gllights_p.h + renderer/glshader.cpp renderer/glshader_p.h + renderer/logging.cpp renderer/logging_p.h + renderer/openglvertexarrayobject.cpp renderer/openglvertexarrayobject_p.h + renderer/rendercommand.cpp renderer/rendercommand_p.h + renderer/renderer.cpp renderer/renderer_p.h + renderer/renderercache_p.h + renderer/renderqueue.cpp renderer/renderqueue_p.h + renderer/renderview.cpp renderer/renderview_p.h + renderer/renderviewbuilder.cpp renderer/renderviewbuilder_p.h + renderer/shaderparameterpack.cpp renderer/shaderparameterpack_p.h + renderer/shadervariables_p.h + textures/gltexture.cpp textures/gltexture_p.h + textures/renderbuffer.cpp textures/renderbuffer_p.h +) + +target_include_directories(OpenGLRendererLib PUBLIC + graphicshelpers + io + jobs + managers + renderer + textures +) + +target_link_libraries(OpenGLRendererLib + PRIVATE + Qt::OpenGLExtensions + PUBLIC + Qt::3DCore + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::OpenGL + Qt::OpenGLPrivate +) + +target_compile_definitions(OpenGLRendererLib PRIVATE + BUILD_QT3D_MODULE + QT_BUILDING_QT + QT_NO_FOREACH +) + +qt_extend_target(OpenGLRendererLib CONDITION NOT INTEGRITY + SOURCES + debug/imguirenderer.cpp debug/imguirenderer_p.h + ${PROJECT_SOURCE_DIR}/src/3rdparty/imgui/imgui.cpp + ${PROJECT_SOURCE_DIR}/src/3rdparty/imgui/imgui_draw.cpp + ${PROJECT_SOURCE_DIR}/src/3rdparty/imgui/imgui_widgets.cpp + INCLUDE_DIRECTORIES + debug + ${PROJECT_SOURCE_DIR}/src/3rdparty/imgui +) + + +qt_internal_add_plugin(OpenGLRendererPlugin + OUTPUT_NAME openglrenderer + TYPE renderers + SOURCES + main.cpp + LIBRARIES + OpenGLRendererLib +) + +## Scopes: +##################################################################### + +qt_extend_target(OpenGLRendererPlugin CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/plugins/renderers/opengl/debug/imguirenderer.cpp b/src/plugins/renderers/opengl/debug/imguirenderer.cpp index 9445eb418..c2ec6152a 100644 --- a/src/plugins/renderers/opengl/debug/imguirenderer.cpp +++ b/src/plugins/renderers/opengl/debug/imguirenderer.cpp @@ -163,6 +163,8 @@ ImGuiRenderer::ImGuiRenderer(Qt3DRender::Render::OpenGL::Renderer *renderer) m_jobsRange.first = m_jobsRange.second = 0.f; } +ImGuiRenderer::~ImGuiRenderer() = default; + void ImGuiRenderer::renderDebugOverlay(const QVector<RenderView *> &renderViews, const RenderView *renderView, int jobsInLastFrame) { if (!newFrame(renderView)) diff --git a/src/plugins/renderers/opengl/debug/imguirenderer_p.h b/src/plugins/renderers/opengl/debug/imguirenderer_p.h index 33a7af282..b4b43dc72 100644 --- a/src/plugins/renderers/opengl/debug/imguirenderer_p.h +++ b/src/plugins/renderers/opengl/debug/imguirenderer_p.h @@ -81,10 +81,10 @@ namespace Debug { #define IMGUI_PERF_LOG_SIZE 30 -class ImGuiRenderer : public QObject { - Q_OBJECT +class Q_AUTOTEST_EXPORT ImGuiRenderer : public QObject { public: ImGuiRenderer(Qt3DRender::Render::OpenGL::Renderer *renderer); + ~ImGuiRenderer(); void processEvent(QEvent *event); void renderDebugOverlay(const QVector<Render::OpenGL::RenderView *> &renderViews, const Render::OpenGL::RenderView *renderView, int jobsInLastFrame); diff --git a/src/plugins/renderers/opengl/opengl.cmake b/src/plugins/renderers/opengl/opengl.cmake new file mode 100644 index 000000000..2eb35f6d9 --- /dev/null +++ b/src/plugins/renderers/opengl/opengl.cmake @@ -0,0 +1,9 @@ +function(qt3d_setup_opengl_renderer_target target) + + set(glplugindir ${PROJECT_SOURCE_DIR}/src/plugins/renderers/opengl) + target_link_libraries(${target} + PRIVATE + OpenGLRendererLib + ) + +endfunction() diff --git a/src/plugins/renderers/rhi/CMakeLists.txt b/src/plugins/renderers/rhi/CMakeLists.txt new file mode 100644 index 000000000..62bb695a8 --- /dev/null +++ b/src/plugins/renderers/rhi/CMakeLists.txt @@ -0,0 +1,73 @@ +# Generated from rhi.pro. + +##################################################################### +## RhiRendererPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(RhiRendererPlugin + OUTPUT_NAME rhirenderer + TYPE renderers + SOURCES + graphicshelpers/submissioncontext.cpp graphicshelpers/submissioncontext_p.h + io/rhibuffer.cpp io/rhibuffer_p.h + jobs/filtercompatibletechniquejob.cpp jobs/filtercompatibletechniquejob_p.h + jobs/materialparametergathererjob.cpp jobs/materialparametergathererjob_p.h + jobs/renderviewcommandbuilderjob.cpp jobs/renderviewcommandbuilderjob_p.h + jobs/renderviewcommandupdaterjob.cpp jobs/renderviewcommandupdaterjob_p.h + jobs/renderviewinitializerjob.cpp jobs/renderviewinitializerjob_p.h + jobs/renderviewjobutils.cpp jobs/renderviewjobutils_p.h + main.cpp + managers/rhihandle_types_p.h + managers/rhiresourcemanagers.cpp managers/rhiresourcemanagers_p.h + renderer/commandexecuter.cpp renderer/commandexecuter_p.h + renderer/logging.cpp renderer/logging_p.h + renderer/rendercommand.cpp renderer/rendercommand_p.h + renderer/renderer.cpp renderer/renderer_p.h + renderer/renderercache_p.h + renderer/renderqueue.cpp renderer/renderqueue_p.h + renderer/renderview.cpp renderer/renderview_p.h + renderer/renderviewbuilder.cpp renderer/renderviewbuilder_p.h + renderer/rhigraphicspipeline.cpp renderer/rhigraphicspipeline_p.h + renderer/rhishader.cpp renderer/rhishader_p.h + renderer/shaderparameterpack.cpp renderer/shaderparameterpack_p.h + renderer/shadervariables_p.h + textures/renderbuffer.cpp textures/renderbuffer_p.h + textures/texture.cpp textures/texture_p.h + DEFINES + QT_BUILDING_QT + QT_NO_FOREACH QT_NO_FOREACH + INCLUDE_DIRECTORIES + ${CMAKE_CURRENT_SOURCE_DIR} + graphicshelpers + io + jobs + managers + renderer + textures + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::GuiPrivate + Qt::ShaderTools + Qt::ShaderToolsPrivate +) + +#### Keys ignored in scope 1:.:.:rhi.pro:<TRUE>: +# DISTFILES = "rhirenderer.json" + +## Scopes: +##################################################################### + +qt_extend_target(RhiRendererPlugin CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/plugins/renderplugins/CMakeLists.txt b/src/plugins/renderplugins/CMakeLists.txt new file mode 100644 index 000000000..42389e72a --- /dev/null +++ b/src/plugins/renderplugins/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from renderplugins.pro. + +add_subdirectory(scene2d) diff --git a/src/plugins/renderplugins/scene2d/CMakeLists.txt b/src/plugins/renderplugins/scene2d/CMakeLists.txt new file mode 100644 index 000000000..bb1c4599d --- /dev/null +++ b/src/plugins/renderplugins/scene2d/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from scene2d.pro. + +##################################################################### +## Scene2DPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(Scene2DPlugin + OUTPUT_NAME scene2d + TYPE renderplugins + SOURCES + main.cpp + scene2dplugin.cpp scene2dplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DExtras + Qt::3DQuickScene2D + Qt::3DQuickScene2DPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:scene2d.pro:<TRUE>: +# DISTFILES = "scene2dplugin.json" diff --git a/src/plugins/sceneparsers/CMakeLists.txt b/src/plugins/sceneparsers/CMakeLists.txt new file mode 100644 index 000000000..d6e3834f9 --- /dev/null +++ b/src/plugins/sceneparsers/CMakeLists.txt @@ -0,0 +1,17 @@ +# Generated from sceneparsers.pro. + +qt_feature_module_begin( + NO_MODULE + PUBLIC_FILE "qtsceneparsers-config.h" + PRIVATE_FILE "qtsceneparsers-config_p.h" +) +include(configure.cmake) +qt_feature_module_end(NO_MODULE) + +add_subdirectory(gltf) +if((GCC AND QT_COMPILER_VERSION_MAJOR STRGREATER 4) OR (QT_FEATURE_assimp AND NOT IOS AND NOT TVOS AND NOT qcc AND (CLANG OR QT_FEATURE_system_assimp OR android-clang OR win32-msvc))) + add_subdirectory(assimp) +endif() +if(QT_FEATURE_regularexpression AND QT_FEATURE_temporaryfile) + add_subdirectory(gltfexport) +endif() diff --git a/src/plugins/sceneparsers/assimp/CMakeLists.txt b/src/plugins/sceneparsers/assimp/CMakeLists.txt new file mode 100644 index 000000000..63c1453aa --- /dev/null +++ b/src/plugins/sceneparsers/assimp/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from assimp.pro. + +##################################################################### +## AssimpSceneImportPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(AssimpSceneImportPlugin + OUTPUT_NAME assimpsceneimport + TYPE sceneparsers + EXCEPTIONS # special case + SOURCES + assimphelpers.cpp assimphelpers.h + assimpimporter.cpp assimpimporter.h + main.cpp + PUBLIC_LIBRARIES + Qt::3DAnimation + Qt::3DCore + Qt::3DCorePrivate + Qt::3DExtras + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:assimp.pro:<TRUE>: +# DISTFILES = "assimp.json" + +## Scopes: +##################################################################### +include(../../../3rdparty/assimp/assimp.cmake) +qt3d_extend_target_for_assimp(AssimpSceneImportPlugin) diff --git a/src/plugins/sceneparsers/configure.cmake b/src/plugins/sceneparsers/configure.cmake new file mode 100644 index 000000000..ab92ee0a2 --- /dev/null +++ b/src/plugins/sceneparsers/configure.cmake @@ -0,0 +1,39 @@ + + +#### Inputs + +# input assimp +set(INPUT_assimp "undefined" CACHE STRING "") +set_property(CACHE INPUT_assimp PROPERTY STRINGS undefined no qt system) + + +#### Libraries + +qt_find_package(WrapAssimp 5 PROVIDED_TARGETS WrapAssimp::WrapAssimp) + +qt_config_compile_test("assimp" + LABEL "Assimp" + PROJECT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../../config.tests/assimp" + LIBRARIES WrapAssimp::WrapAssimp + PACKAGES PACKAGE WrapAssimp 5) + +#### Tests + + + +#### Features + +qt_feature("assimp" PUBLIC PRIVATE + LABEL "Assimp" +) +qt_feature_definition("assimp" "QT_NO_ASSIMP" NEGATE VALUE "1") +qt_feature("system-assimp" PRIVATE + LABEL "System Assimp" + CONDITION QT_FEATURE_assimp AND TEST_assimp + ENABLE INPUT_assimp STREQUAL 'system' + DISABLE INPUT_assimp STREQUAL 'qt' +) +qt_configure_add_summary_section(NAME "Qt3D Scene Parsers") +qt_configure_add_summary_entry(ARGS "assimp") +qt_configure_add_summary_entry(ARGS "system-assimp") +qt_configure_end_summary_section() # end of "Qt3D" section diff --git a/src/plugins/sceneparsers/gltf/CMakeLists.txt b/src/plugins/sceneparsers/gltf/CMakeLists.txt new file mode 100644 index 000000000..a2e8aaf25 --- /dev/null +++ b/src/plugins/sceneparsers/gltf/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from gltf.pro. + +##################################################################### +## GLTFSceneImportPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(GLTFSceneImportPlugin + OUTPUT_NAME gltfsceneimport + TYPE sceneparsers + SOURCES + gltfimporter.cpp gltfimporter.h + main.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DExtras + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:gltf.pro:<TRUE>: +# DISTFILES = "gltf.json" diff --git a/src/plugins/sceneparsers/gltfexport/CMakeLists.txt b/src/plugins/sceneparsers/gltfexport/CMakeLists.txt new file mode 100644 index 000000000..6a2473a36 --- /dev/null +++ b/src/plugins/sceneparsers/gltfexport/CMakeLists.txt @@ -0,0 +1,25 @@ +# Generated from gltfexport.pro. + +##################################################################### +## GLTFSceneExportPlugin Plugin: +##################################################################### + +qt_internal_add_plugin(GLTFSceneExportPlugin + OUTPUT_NAME gltfsceneexport + TYPE sceneparsers + SOURCES + gltfexporter.cpp gltfexporter.h + main.cpp + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DExtras + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui +) + +#### Keys ignored in scope 1:.:.:gltfexport.pro:<TRUE>: +# DISTFILES = "gltfexport.json" diff --git a/src/quick3d/imports/animation/CMakeLists.txt b/src/quick3d/imports/animation/CMakeLists.txt new file mode 100644 index 000000000..0991bd68c --- /dev/null +++ b/src/quick3d/imports/animation/CMakeLists.txt @@ -0,0 +1,34 @@ +# Generated from importsanimation.pro. + +##################################################################### +## quick3danimationplugin Plugin: +##################################################################### + +qt_add_qml_module(quick3danimationplugin + URI "Qt3D.Animation" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DAnimationPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3danimationplugin.cpp qt3dquick3danimationplugin.h + PUBLIC_LIBRARIES + 3DAnimation + Qt::3DCore + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DQuickAnimation + Qt::3DQuickAnimationPrivate + Qt::3DQuickRender + Qt::3DRender + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:importsanimation.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Animation" diff --git a/src/quick3d/imports/core/CMakeLists.txt b/src/quick3d/imports/core/CMakeLists.txt new file mode 100644 index 000000000..147668e9b --- /dev/null +++ b/src/quick3d/imports/core/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from importscore.pro. + +##################################################################### +## quick3dcoreplugin Plugin: +##################################################################### + +qt_add_qml_module(quick3dcoreplugin + URI "Qt3D.Core" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DCorePlugin + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3dcoreplugin.cpp qt3dquick3dcoreplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DQuick + Qt::3DQuickPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml + Qt::QmlPrivate + Qt::Quick + Qt::QuickPrivate +) + +#### Keys ignored in scope 1:.:.:importscore.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Core" diff --git a/src/quick3d/imports/extras/CMakeLists.txt b/src/quick3d/imports/extras/CMakeLists.txt new file mode 100644 index 000000000..a18244aca --- /dev/null +++ b/src/quick3d/imports/extras/CMakeLists.txt @@ -0,0 +1,38 @@ +# Generated from importsextras.pro. + +##################################################################### +## quick3dextrasplugin Plugin: +##################################################################### + +qt_add_qml_module(quick3dextrasplugin + URI "Qt3D.Extras" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DExtrasPlugin + DEPENDENCIES + Qt3D.Logic/2.0 + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3dextrasplugin.cpp qt3dquick3dextrasplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DExtras + 3DLogic + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DQuickExtras + Qt::3DQuickExtrasPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml + Qt::QmlPrivate + Qt::Quick + Qt::QuickPrivate +) + +#### Keys ignored in scope 1:.:.:importsextras.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Extras" diff --git a/src/quick3d/imports/input/CMakeLists.txt b/src/quick3d/imports/input/CMakeLists.txt new file mode 100644 index 000000000..564667403 --- /dev/null +++ b/src/quick3d/imports/input/CMakeLists.txt @@ -0,0 +1,37 @@ +# Generated from importsinput.pro. + +##################################################################### +## quick3dinputplugin Plugin: +##################################################################### + +qt_add_qml_module(quick3dinputplugin + URI "Qt3D.Input" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DInputPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3dinputplugin.cpp qt3dquick3dinputplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DInput + Qt::3DInputPrivate + Qt::3DQuickInputPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml +) + +#### Keys ignored in scope 1:.:.:importsinput.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Input" + +## Scopes: +##################################################################### + +qt_extend_target(quick3dinputplugin CONDITION TARGET Qt::Gamepad + DEFINES + HAVE_QGAMEPAD +) diff --git a/src/quick3d/imports/logic/CMakeLists.txt b/src/quick3d/imports/logic/CMakeLists.txt new file mode 100644 index 000000000..be22f48f1 --- /dev/null +++ b/src/quick3d/imports/logic/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated from importslogic.pro. + +##################################################################### +## quick3dlogicplugin Plugin: +##################################################################### + +qt_add_qml_module(quick3dlogicplugin + URI "Qt3D.Logic" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DLogicPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3dlogicplugin.cpp qt3dquick3dlogicplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + 3DLogic + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml +) + +#### Keys ignored in scope 1:.:.:importslogic.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Logic" diff --git a/src/quick3d/imports/render/CMakeLists.txt b/src/quick3d/imports/render/CMakeLists.txt new file mode 100644 index 000000000..34b688e41 --- /dev/null +++ b/src/quick3d/imports/render/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from importsrender.pro. + +##################################################################### +## quick3drenderplugin: +##################################################################### + +qt_add_qml_module(quick3drenderplugin + URI "Qt3D.Render" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME Qt3DQuick3DRenderPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qt3dquick3drenderplugin.cpp qt3dquick3drenderplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DQuickRenderPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::CorePrivate + Qt::Gui + Qt::Qml + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:importsrender.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "Qt3D/Render" diff --git a/src/quick3d/imports/scene2d/CMakeLists.txt b/src/quick3d/imports/scene2d/CMakeLists.txt new file mode 100644 index 000000000..ada9d3d86 --- /dev/null +++ b/src/quick3d/imports/scene2d/CMakeLists.txt @@ -0,0 +1,32 @@ +# Generated from importsscene2d.pro. + +##################################################################### +## qtquickscene2dplugin Plugin: +##################################################################### + +qt_add_qml_module(qtquickscene2dplugin + URI "QtQuick.Scene2D" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME QtQuickScene2DPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qtquickscene2dplugin.cpp qtquickscene2dplugin.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DInput + 3DLogic + Qt::3DQuickScene2D + Qt::3DQuickScene2DPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:importsscene2d.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "QtQuick/Scene2D" diff --git a/src/quick3d/imports/scene3d/CMakeLists.txt b/src/quick3d/imports/scene3d/CMakeLists.txt new file mode 100644 index 000000000..f836c7c33 --- /dev/null +++ b/src/quick3d/imports/scene3d/CMakeLists.txt @@ -0,0 +1,53 @@ +# Generated from importsscene3d.pro. + +##################################################################### +## qtquickscene3dplugin Plugin: +##################################################################### + +qt_add_qml_module(qtquickscene3dplugin + URI "QtQuick.Scene3D" + VERSION "2.${CMAKE_PROJECT_VERSION_MINOR}" + CLASSNAME QtQuickScene3DPlugin + SKIP_TYPE_REGISTRATION + SOURCES + qtquickscene3dplugin.cpp qtquickscene3dplugin.h + scene3ditem.cpp scene3ditem_p.h + scene3dlogging.cpp scene3dlogging_p.h + scene3drenderer.cpp scene3drenderer_p.h + scene3dsgmaterial.cpp scene3dsgmaterial_p.h + scene3dsgmaterialshader.cpp scene3dsgmaterialshader_p.h + scene3dsgnode.cpp scene3dsgnode_p.h + scene3dview.cpp scene3dview_p.h + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick +) + +#### Keys ignored in scope 1:.:.:importsscene3d.pro:<TRUE>: +# CXX_MODULE = "qml" +# IMPORT_VERSION = "2.$$QT_MINOR_VERSION" +# OTHER_FILES = "qmldir" +# TARGETPATH = "QtQuick/Scene3D" + +## Scopes: +##################################################################### + +qt_extend_target(qtquickscene3dplugin CONDITION QT_FEATURE_qt3d_input + PUBLIC_LIBRARIES + Qt::3DInput +) + +qt_extend_target(qtquickscene3dplugin CONDITION QT_FEATURE_qt3d_logic + PUBLIC_LIBRARIES + 3DLogic +) + +qt_extend_target(qtquickscene3dplugin CONDITION QT_FEATURE_qt3d_animation + PUBLIC_LIBRARIES + 3DAnimation +) diff --git a/src/quick3d/quick3d/CMakeLists.txt b/src/quick3d/quick3d/CMakeLists.txt new file mode 100644 index 000000000..bbcb0e2fd --- /dev/null +++ b/src/quick3d/quick3d/CMakeLists.txt @@ -0,0 +1,57 @@ +# Generated from quick3d.pro. + +##################################################################### +## Qt::3DQuick Module: +##################################################################### + +qt_add_module(3DQuick + SOURCES + items/quick3dbuffer.cpp items/quick3dbuffer_p.h + items/quick3dentity.cpp items/quick3dentity_p.h + items/quick3dentityloader.cpp items/quick3dentityloader_p.h + items/quick3dentityloader_p_p.h + items/quick3dgeometry.cpp items/quick3dgeometry_p.h + items/quick3djoint.cpp items/quick3djoint_p.h + items/quick3dnode.cpp items/quick3dnode_p.h + items/quick3dnodeinstantiator.cpp items/quick3dnodeinstantiator_p.h + items/quick3dnodev9.cpp items/quick3dnodev9_p.h + qqmlaspectengine.cpp qqmlaspectengine.h qqmlaspectengine_p.h + qquaternionanimation.cpp qquaternionanimation_p.h + qt3dquick_global.cpp qt3dquick_global.h qt3dquick_global_p.h + qt3dquicknodefactory.cpp qt3dquicknodefactory_p.h + qt3dquickvaluetypes.cpp qt3dquickvaluetypes_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::Core + Qt::Gui + Qt::Qml + Qt::Quick + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::GuiPrivate + Qt::QmlPrivate + Qt::QuickPrivate +) + +#### Keys ignored in scope 1:.:.:quick3d.pro:<TRUE>: +# MODULE = "3DQuick" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuick CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/quick3d/quick3danimation/CMakeLists.txt b/src/quick3d/quick3danimation/CMakeLists.txt new file mode 100644 index 000000000..ab34453f4 --- /dev/null +++ b/src/quick3d/quick3danimation/CMakeLists.txt @@ -0,0 +1,52 @@ +# Generated from quick3danimation.pro. + +##################################################################### +## Qt::3DQuickAnimation Module: +##################################################################### + +qt_add_module(3DQuickAnimation + SOURCES + items/quick3danimationcontroller.cpp items/quick3danimationcontroller_p.h + items/quick3danimationgroup.cpp items/quick3danimationgroup_p.h + items/quick3dchannelmapper.cpp items/quick3dchannelmapper_p.h + items/quick3dkeyframeanimation.cpp items/quick3dkeyframeanimation_p.h + items/quick3dmorphinganimation.cpp items/quick3dmorphinganimation_p.h + items/quick3dmorphtarget.cpp items/quick3dmorphtarget_p.h + items/quick3dvertexblendanimation.cpp items/quick3dvertexblendanimation_p.h + qt3dquickanimation_global.cpp qt3dquickanimation_global.h qt3dquickanimation_global_p.h + qt3dquickanimationnodefactory.cpp qt3dquickanimationnodefactory_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + 3DAnimation + Qt::3DCore + Qt::3DCorePrivate + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:quick3danimation.pro:<TRUE>: +# MODULE = "3dquickanimation" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuickAnimation CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/quick3d/quick3dextras/CMakeLists.txt b/src/quick3d/quick3dextras/CMakeLists.txt new file mode 100644 index 000000000..475878ccc --- /dev/null +++ b/src/quick3d/quick3dextras/CMakeLists.txt @@ -0,0 +1,52 @@ +# Generated from quick3dextras.pro. + +##################################################################### +## Qt::3DQuickExtras Module: +##################################################################### + +qt_add_module(3DQuickExtras + SOURCES + items/quick3dlevelofdetailloader.cpp items/quick3dlevelofdetailloader_p.h + items/quick3dlevelofdetailloader_p_p.h + items/quick3dspritesheet.cpp items/quick3dspritesheet_p.h + qt3dquickextras_global.cpp qt3dquickextras_global.h qt3dquickextras_global_p.h + qt3dquickextrasnodefactory.cpp qt3dquickextrasnodefactory_p.h + qt3dquickwindow.cpp qt3dquickwindow.h qt3dquickwindow_p.h + qt3dquickwindowlogging.cpp qt3dquickwindowlogging_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DExtras + Qt::3DExtrasPrivate + Qt::3DInput + 3DLogic + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:quick3dextras.pro:<TRUE>: +# MODULE = "3DQuickExtras" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuickExtras CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/quick3d/quick3dinput/CMakeLists.txt b/src/quick3d/quick3dinput/CMakeLists.txt new file mode 100644 index 000000000..6537b80b7 --- /dev/null +++ b/src/quick3d/quick3dinput/CMakeLists.txt @@ -0,0 +1,50 @@ +# Generated from quick3dinput.pro. + +##################################################################### +## Qt::3DQuickInput Module: +##################################################################### + +qt_add_module(3DQuickInput + SOURCES + items/quick3daction.cpp items/quick3daction_p.h + items/quick3daxis.cpp items/quick3daxis_p.h + items/quick3dinputchord.cpp items/quick3dinputchord_p.h + items/quick3dinputsequence.cpp items/quick3dinputsequence_p.h + items/quick3dlogicaldevice.cpp items/quick3dlogicaldevice_p.h + items/quick3dphysicaldevice.cpp items/quick3dphysicaldevice_p.h + qt3dquickinput_global.cpp qt3dquickinput_global.h qt3dquickinput_global_p.h + qt3dquickinputnodefactory.cpp qt3dquickinputnodefactory_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DInput + Qt::3DInputPrivate + Qt::3DQuick + Qt::3DQuickPrivate + Qt::Core + Qt::Gui + Qt::Qml + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:quick3dinput.pro:<TRUE>: +# MODULE = "3DQuickInput" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuickInput CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/quick3d/quick3drender/CMakeLists.txt b/src/quick3d/quick3drender/CMakeLists.txt new file mode 100644 index 000000000..4e52b3a6a --- /dev/null +++ b/src/quick3d/quick3drender/CMakeLists.txt @@ -0,0 +1,66 @@ +# Generated from quick3drender.pro. + +##################################################################### +## Qt::3DQuickRender Module: +##################################################################### + +qt_add_module(3DQuickRender + SOURCES + items/quick3deffect.cpp items/quick3deffect_p.h + items/quick3dlayerfilter.cpp items/quick3dlayerfilter_p.h + items/quick3dmaterial.cpp items/quick3dmaterial_p.h + items/quick3dmemorybarrier.cpp items/quick3dmemorybarrier_p.h + items/quick3dparameter.cpp items/quick3dparameter_p.h + items/quick3dparameter_p_p.h + items/quick3draycaster.cpp items/quick3draycaster_p.h + items/quick3draycaster_p_p.h + items/quick3drenderpass.cpp items/quick3drenderpass_p.h + items/quick3drenderpassfilter.cpp items/quick3drenderpassfilter_p.h + items/quick3drendertargetoutput.cpp items/quick3drendertargetoutput_p.h + items/quick3drendertargetselector.cpp items/quick3drendertargetselector_p.h + items/quick3dscene.cpp items/quick3dscene_p.h + items/quick3dscreenraycaster.cpp items/quick3dscreenraycaster_p.h + items/quick3dscreenraycaster_p_p.h + items/quick3dshaderdata.cpp items/quick3dshaderdata_p.h + items/quick3dshaderdataarray.cpp items/quick3dshaderdataarray_p.h + items/quick3dstateset.cpp items/quick3dstateset_p.h + items/quick3dtechnique.cpp items/quick3dtechnique_p.h + items/quick3dtechniquefilter.cpp items/quick3dtechniquefilter_p.h + items/quick3dtexture.cpp items/quick3dtexture_p.h + items/quick3dviewport.cpp items/quick3dviewport_p.h + qt3dquickrender_global.cpp qt3dquickrender_global.h qt3dquickrender_global_p.h + qt3dquickrendernodefactory.cpp qt3dquickrendernodefactory_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:quick3drender.pro:<TRUE>: +# MODULE = "3DQuickRender" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuickRender CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/quick3d/quick3dscene2d/CMakeLists.txt b/src/quick3d/quick3dscene2d/CMakeLists.txt new file mode 100644 index 000000000..978824897 --- /dev/null +++ b/src/quick3d/quick3dscene2d/CMakeLists.txt @@ -0,0 +1,51 @@ +# Generated from quick3dscene2d.pro. + +##################################################################### +## Qt::3DQuickScene2D Module: +##################################################################### + +qt_add_module(3DQuickScene2D + SOURCES + items/qscene2d.cpp items/qscene2d.h items/qscene2d_p.h + items/qt3dquick3dscene2d.cpp items/qt3dquick3dscene2d_p.h + items/scene2d.cpp items/scene2d_p.h + items/scene2devent_p.h + items/scene2dmanager.cpp items/scene2dmanager_p.h + items/scene2dsharedobject.cpp items/scene2dsharedobject_p.h + qt3dquickscene2d_global.cpp qt3dquickscene2d_global.h qt3dquickscene2d_global_p.h + qt3dquickscene2d_logging.cpp qt3dquickscene2d_logging_p.h + qt3dquickscene2dnodefactory.cpp qt3dquickscene2dnodefactory_p.h + INCLUDE_DIRECTORIES + items + LIBRARIES + Qt::CorePrivate + Qt::QmlPrivate + PUBLIC_LIBRARIES + Qt::3DCore + Qt::3DCorePrivate + Qt::3DQuick + Qt::3DQuickPrivate + Qt::3DRender + Qt::3DRenderPrivate + Qt::Core + Qt::Gui + Qt::Qml + PRIVATE_MODULE_INTERFACE + Qt::CorePrivate + Qt::QmlPrivate +) + +#### Keys ignored in scope 1:.:.:quick3dscene2d.pro:<TRUE>: +# MODULE = "3dquickscene2d" + +## Scopes: +##################################################################### + +qt_extend_target(3DQuickScene2D CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) diff --git a/src/render/CMakeLists.txt b/src/render/CMakeLists.txt new file mode 100644 index 000000000..793545d7d --- /dev/null +++ b/src/render/CMakeLists.txt @@ -0,0 +1,335 @@ +# Generated from render.pro. + +##################################################################### +## 3drender Module: +##################################################################### + +qt_add_module(3DRender + PLUGIN_TYPES sceneparsers geometryloaders renderplugins renderers + SOURCES + aligned_malloc_p.h + backend/abstractrenderer_p.h + backend/apishadermanager_p.h + backend/attachmentpack.cpp backend/attachmentpack_p.h + backend/backendnode.cpp backend/backendnode_p.h + backend/boundingvolumedebug.cpp backend/boundingvolumedebug_p.h + backend/bufferutils_p.h + backend/buffervisitor_p.h + backend/cameralens.cpp backend/cameralens_p.h + backend/computecommand.cpp backend/computecommand_p.h + backend/entity.cpp backend/entity_p.h + backend/entity_p_p.h + backend/entityaccumulator.cpp backend/entityaccumulator_p.h + backend/entityvisitor.cpp backend/entityvisitor_p.h + backend/handle_types_p.h + backend/layer.cpp backend/layer_p.h + backend/levelofdetail.cpp backend/levelofdetail_p.h + backend/managers.cpp backend/managers_p.h + backend/nodefunctor_p.h + backend/nodemanagers.cpp backend/nodemanagers_p.h + backend/offscreensurfacehelper.cpp backend/offscreensurfacehelper_p.h + backend/parameterpack.cpp backend/parameterpack_p.h + backend/platformsurfacefilter.cpp backend/platformsurfacefilter_p.h + backend/pointsvisitor.cpp backend/pointsvisitor_p.h + backend/rendersettings.cpp backend/rendersettings_p.h + backend/rendertarget.cpp backend/rendertarget_p.h + backend/rendertargetoutput.cpp backend/rendertargetoutput_p.h + backend/renderthread.cpp backend/renderthread_p.h + backend/resourceaccessor.cpp backend/resourceaccessor_p.h + backend/segmentsvisitor.cpp backend/segmentsvisitor_p.h + backend/stringtoint.cpp backend/stringtoint_p.h + backend/transform.cpp backend/transform_p.h + backend/triangleboundingvolume.cpp backend/triangleboundingvolume_p.h + backend/trianglesvisitor.cpp backend/trianglesvisitor_p.h + backend/uniform.cpp backend/uniform_p.h + backend/visitorutils_p.h + framegraph/blitframebuffer.cpp framegraph/blitframebuffer_p.h + framegraph/buffercapture.cpp framegraph/buffercapture_p.h + framegraph/cameraselectornode.cpp framegraph/cameraselectornode_p.h + framegraph/clearbuffers.cpp framegraph/clearbuffers_p.h + framegraph/debugoverlay.cpp framegraph/debugoverlay_p.h + framegraph/dispatchcompute.cpp framegraph/dispatchcompute_p.h + framegraph/framegraphnode.cpp framegraph/framegraphnode_p.h + framegraph/framegraphvisitor.cpp framegraph/framegraphvisitor_p.h + framegraph/frustumculling.cpp framegraph/frustumculling_p.h + framegraph/layerfilternode.cpp framegraph/layerfilternode_p.h + framegraph/memorybarrier.cpp framegraph/memorybarrier_p.h + framegraph/nodraw.cpp framegraph/nodraw_p.h + framegraph/nopicking.cpp framegraph/nopicking_p.h + framegraph/proximityfilter.cpp framegraph/proximityfilter_p.h + framegraph/qblitframebuffer.cpp framegraph/qblitframebuffer.h framegraph/qblitframebuffer_p.h + framegraph/qbuffercapture.cpp framegraph/qbuffercapture.h framegraph/qbuffercapture_p.h + framegraph/qcameraselector.cpp framegraph/qcameraselector.h framegraph/qcameraselector_p.h + framegraph/qclearbuffers.cpp framegraph/qclearbuffers.h framegraph/qclearbuffers_p.h + framegraph/qdebugoverlay.cpp framegraph/qdebugoverlay.h framegraph/qdebugoverlay_p.h + framegraph/qdispatchcompute.cpp framegraph/qdispatchcompute.h framegraph/qdispatchcompute_p.h + framegraph/qframegraphnode.cpp framegraph/qframegraphnode.h framegraph/qframegraphnode_p.h + framegraph/qfrustumculling.cpp framegraph/qfrustumculling.h + framegraph/qlayerfilter.cpp framegraph/qlayerfilter.h framegraph/qlayerfilter_p.h + framegraph/qmemorybarrier.cpp framegraph/qmemorybarrier.h framegraph/qmemorybarrier_p.h + framegraph/qnodraw.cpp framegraph/qnodraw.h + framegraph/qnopicking.cpp framegraph/qnopicking.h + framegraph/qproximityfilter.cpp framegraph/qproximityfilter.h framegraph/qproximityfilter_p.h + framegraph/qrendercapture.cpp framegraph/qrendercapture.h framegraph/qrendercapture_p.h + framegraph/qrenderpassfilter.cpp framegraph/qrenderpassfilter.h framegraph/qrenderpassfilter_p.h + framegraph/qrenderstateset.cpp framegraph/qrenderstateset.h framegraph/qrenderstateset_p.h + framegraph/qrendersurfaceselector.cpp framegraph/qrendersurfaceselector.h framegraph/qrendersurfaceselector_p.h + framegraph/qrendertargetselector.cpp framegraph/qrendertargetselector.h framegraph/qrendertargetselector_p.h + framegraph/qsetfence.cpp framegraph/qsetfence.h framegraph/qsetfence_p.h + framegraph/qsortpolicy.cpp framegraph/qsortpolicy.h framegraph/qsortpolicy_p.h + framegraph/qsubtreeenabler.cpp framegraph/qsubtreeenabler.h framegraph/qsubtreeenabler_p.h + framegraph/qtechniquefilter.cpp framegraph/qtechniquefilter.h framegraph/qtechniquefilter_p.h + framegraph/qviewport.cpp framegraph/qviewport.h framegraph/qviewport_p.h + framegraph/qwaitfence.cpp framegraph/qwaitfence.h framegraph/qwaitfence_p.h + framegraph/rendercapture.cpp framegraph/rendercapture_p.h + framegraph/renderpassfilternode.cpp framegraph/renderpassfilternode_p.h + framegraph/rendersurfaceselector.cpp framegraph/rendersurfaceselector_p.h + framegraph/rendertargetselectornode.cpp framegraph/rendertargetselectornode_p.h + framegraph/setfence.cpp framegraph/setfence_p.h + framegraph/sortpolicy.cpp framegraph/sortpolicy_p.h + framegraph/statesetnode.cpp framegraph/statesetnode_p.h + framegraph/subtreeenabler.cpp framegraph/subtreeenabler_p.h + framegraph/techniquefilternode.cpp framegraph/techniquefilternode_p.h + framegraph/viewportnode.cpp framegraph/viewportnode_p.h + framegraph/waitfence.cpp framegraph/waitfence_p.h + frontend/qcamera.cpp frontend/qcamera.h frontend/qcamera_p.h + frontend/qcameralens.cpp frontend/qcameralens.h frontend/qcameralens_p.h + frontend/qcomputecommand.cpp frontend/qcomputecommand.h frontend/qcomputecommand_p.h + frontend/qlayer.cpp frontend/qlayer.h frontend/qlayer_p.h + frontend/qlevelofdetail.cpp frontend/qlevelofdetail.h frontend/qlevelofdetail_p.h + frontend/qlevelofdetailboundingsphere.cpp frontend/qlevelofdetailboundingsphere.h + frontend/qlevelofdetailswitch.cpp frontend/qlevelofdetailswitch.h frontend/qlevelofdetailswitch_p.h + frontend/qpickingsettings.cpp frontend/qpickingsettings.h frontend/qpickingsettings_p.h + frontend/qrenderapi.h + frontend/qrenderaspect.cpp frontend/qrenderaspect.h frontend/qrenderaspect_p.h + frontend/qrendercapabilities.cpp frontend/qrendercapabilities.h frontend/qrendercapabilities_p.h + frontend/qrenderplugin_p.h + frontend/qrenderpluginfactory.cpp frontend/qrenderpluginfactory_p.h + frontend/qrenderpluginfactoryif.cpp frontend/qrenderpluginfactoryif_p.h + frontend/qrendersettings.cpp frontend/qrendersettings.h frontend/qrendersettings_p.h + frontend/qrendertarget.cpp frontend/qrendertarget.h frontend/qrendertarget_p.h + frontend/qrendertargetoutput.cpp frontend/qrendertargetoutput.h frontend/qrendertargetoutput_p.h + frontend/sphere.cpp frontend/sphere_p.h + geometry/armature.cpp geometry/armature_p.h + geometry/attribute.cpp geometry/attribute_p.h + geometry/buffer.cpp geometry/buffer_p.h + geometry/buffermanager.cpp geometry/buffermanager_p.h + geometry/geometry.cpp geometry/geometry_p.h + geometry/geometryrenderer.cpp geometry/geometryrenderer_p.h + geometry/geometryrenderermanager.cpp geometry/geometryrenderermanager_p.h + geometry/gltfskeletonloader.cpp geometry/gltfskeletonloader_p.h + geometry/joint.cpp geometry/joint_p.h + geometry/pickingproxy.cpp geometry/pickingproxy_p.h + geometry/qgeometryrenderer.cpp geometry/qgeometryrenderer.h geometry/qgeometryrenderer_p.h + geometry/qmesh.cpp geometry/qmesh.h geometry/qmesh_p.h + geometry/qpickingproxy.cpp geometry/qpickingproxy.h geometry/qpickingproxy_p.h + geometry/skeleton.cpp geometry/skeleton_p.h + geometry/skeletondata.cpp geometry/skeletondata_p.h + io/qaxisalignedboundingbox.cpp io/qaxisalignedboundingbox_p.h + io/qgeometryloaderfactory.cpp io/qgeometryloaderfactory_p.h + io/qgeometryloaderinterface_p.h + io/qsceneexporter.cpp io/qsceneexporter_p.h + io/qsceneexportfactory.cpp io/qsceneexportfactory_p.h + io/qsceneexportplugin.cpp io/qsceneexportplugin_p.h + io/qsceneimporter.cpp io/qsceneimporter_p.h + io/qsceneimportfactory.cpp io/qsceneimportfactory_p.h + io/qsceneimportplugin.cpp io/qsceneimportplugin_p.h + io/qsceneloader.cpp io/qsceneloader.h io/qsceneloader_p.h + io/scene.cpp io/scene_p.h + io/scenemanager.cpp io/scenemanager_p.h + jobs/abstractpickingjob.cpp jobs/abstractpickingjob_p.h + jobs/calcboundingvolumejob.cpp jobs/calcboundingvolumejob_p.h + jobs/computefilteredboundingvolumejob.cpp jobs/computefilteredboundingvolumejob_p.h + jobs/expandboundingvolumejob.cpp jobs/expandboundingvolumejob_p.h + jobs/filterentitybycomponentjob_p.h + jobs/filterlayerentityjob.cpp jobs/filterlayerentityjob_p.h + jobs/filterproximitydistancejob.cpp jobs/filterproximitydistancejob_p.h + jobs/framecleanupjob.cpp jobs/framecleanupjob_p.h + jobs/frustumcullingjob.cpp jobs/frustumcullingjob_p.h + jobs/genericlambdajob_p.h + jobs/job_common_p.h + jobs/lightgatherer.cpp jobs/lightgatherer_p.h + jobs/loadgeometryjob.cpp jobs/loadgeometryjob_p.h + jobs/loadscenejob.cpp jobs/loadscenejob_p.h + jobs/loadskeletonjob.cpp jobs/loadskeletonjob_p.h + jobs/pickboundingvolumejob.cpp jobs/pickboundingvolumejob_p.h + jobs/pickboundingvolumeutils.cpp jobs/pickboundingvolumeutils_p.h + jobs/raycastingjob.cpp jobs/raycastingjob_p.h + jobs/sendbuffercapturejob.cpp jobs/sendbuffercapturejob_p.h + jobs/updateentitylayersjob.cpp jobs/updateentitylayersjob_p.h + jobs/updatelevelofdetailjob.cpp jobs/updatelevelofdetailjob_p.h + jobs/updateshaderdatatransformjob.cpp jobs/updateshaderdatatransformjob_p.h + jobs/updateskinningpalettejob.cpp jobs/updateskinningpalettejob_p.h + jobs/updatetreeenabledjob.cpp jobs/updatetreeenabledjob_p.h + jobs/updateworldboundingvolumejob.cpp jobs/updateworldboundingvolumejob_p.h + jobs/updateworldtransformjob.cpp jobs/updateworldtransformjob_p.h + lights/environmentlight.cpp lights/environmentlight_p.h + lights/light.cpp lights/light_p.h + lights/lightsource.cpp lights/lightsource_p.h + lights/qabstractlight.cpp lights/qabstractlight.h lights/qabstractlight_p.h + lights/qdirectionallight.cpp lights/qdirectionallight.h lights/qdirectionallight_p.h + lights/qenvironmentlight.cpp lights/qenvironmentlight.h lights/qenvironmentlight_p.h + lights/qpointlight.cpp lights/qpointlight.h lights/qpointlight_p.h + lights/qspotlight.cpp lights/qspotlight.h lights/qspotlight_p.h + materialsystem/effect.cpp materialsystem/effect_p.h + materialsystem/filterkey.cpp materialsystem/filterkey_p.h + materialsystem/material.cpp materialsystem/material_p.h + materialsystem/parameter.cpp materialsystem/parameter_p.h + materialsystem/qeffect.cpp materialsystem/qeffect.h materialsystem/qeffect_p.h + materialsystem/qfilterkey.cpp materialsystem/qfilterkey.h materialsystem/qfilterkey_p.h + materialsystem/qgraphicsapifilter.cpp materialsystem/qgraphicsapifilter.h materialsystem/qgraphicsapifilter_p.h + materialsystem/qmaterial.cpp materialsystem/qmaterial.h materialsystem/qmaterial_p.h + materialsystem/qparameter.cpp materialsystem/qparameter.h materialsystem/qparameter_p.h + materialsystem/qrenderpass.cpp materialsystem/qrenderpass.h materialsystem/qrenderpass_p.h + materialsystem/qshaderdata.cpp materialsystem/qshaderdata.h materialsystem/qshaderdata_p.h + materialsystem/qshaderimage.cpp materialsystem/qshaderimage.h materialsystem/qshaderimage_p.h + materialsystem/qshaderprogram.cpp materialsystem/qshaderprogram.h materialsystem/qshaderprogram_p.h + materialsystem/qshaderprogrambuilder.cpp materialsystem/qshaderprogrambuilder.h materialsystem/qshaderprogrambuilder_p.h + materialsystem/qtechnique.cpp materialsystem/qtechnique.h materialsystem/qtechnique_p.h + materialsystem/renderpass.cpp materialsystem/renderpass_p.h + materialsystem/shader.cpp materialsystem/shader_p.h + materialsystem/shaderbuilder.cpp materialsystem/shaderbuilder_p.h + materialsystem/shaderdata.cpp materialsystem/shaderdata_p.h + materialsystem/shaderimage.cpp materialsystem/shaderimage_p.h + materialsystem/technique.cpp materialsystem/technique_p.h + materialsystem/techniquemanager.cpp materialsystem/techniquemanager_p.h + picking/objectpicker.cpp picking/objectpicker_p.h + picking/pickeventfilter.cpp picking/pickeventfilter_p.h + picking/qabstractraycaster.cpp picking/qabstractraycaster.h picking/qabstractraycaster_p.h + picking/qobjectpicker.cpp picking/qobjectpicker.h picking/qobjectpicker_p.h + picking/qpickevent.cpp picking/qpickevent.h picking/qpickevent_p.h + picking/qpicklineevent.cpp picking/qpicklineevent.h + picking/qpickpointevent.cpp picking/qpickpointevent.h + picking/qpicktriangleevent.cpp picking/qpicktriangleevent.h picking/qpicktriangleevent_p.h + picking/qraycaster.cpp picking/qraycaster.h + picking/qraycasterhit.cpp picking/qraycasterhit.h + picking/qscreenraycaster.cpp picking/qscreenraycaster.h + picking/raycaster.cpp picking/raycaster_p.h + qrendererplugin.cpp qrendererplugin_p.h + qrendererpluginfactory.cpp qrendererpluginfactory_p.h + qt3drender_global.h qt3drender_global_p.h + raycasting/boundingsphere.cpp raycasting/boundingsphere_p.h + raycasting/qabstractcollisionqueryservice.cpp raycasting/qabstractcollisionqueryservice_p.h + raycasting/qboundingvolume.cpp raycasting/qboundingvolume_p.h + raycasting/qboundingvolumeprovider.cpp raycasting/qboundingvolumeprovider_p.h + raycasting/qcollisionqueryresult.cpp raycasting/qcollisionqueryresult_p.h + raycasting/qray3d.cpp raycasting/qray3d_p.h + raycasting/qraycastingservice.cpp raycasting/qraycastingservice_p.h + renderlogging.cpp renderlogging_p.h + renderstates/genericstate_p.h + renderstates/qalphacoverage.cpp renderstates/qalphacoverage.h + renderstates/qalphatest.cpp renderstates/qalphatest.h renderstates/qalphatest_p.h + renderstates/qblendequation.cpp renderstates/qblendequation.h renderstates/qblendequation_p.h + renderstates/qblendequationarguments.cpp renderstates/qblendequationarguments.h renderstates/qblendequationarguments_p.h + renderstates/qclipplane.cpp renderstates/qclipplane.h renderstates/qclipplane_p.h + renderstates/qcolormask.cpp renderstates/qcolormask.h renderstates/qcolormask_p.h + renderstates/qcullface.cpp renderstates/qcullface.h renderstates/qcullface_p.h + renderstates/qdepthrange.cpp renderstates/qdepthrange.h renderstates/qdepthrange_p.h + renderstates/qdepthtest.cpp renderstates/qdepthtest.h renderstates/qdepthtest_p.h + renderstates/qdithering.cpp renderstates/qdithering.h + renderstates/qfrontface.cpp renderstates/qfrontface.h renderstates/qfrontface_p.h + renderstates/qlinewidth.cpp renderstates/qlinewidth.h renderstates/qlinewidth_p.h + renderstates/qmultisampleantialiasing.cpp renderstates/qmultisampleantialiasing.h + renderstates/qnodepthmask.cpp renderstates/qnodepthmask.h + renderstates/qpointsize.cpp renderstates/qpointsize.h renderstates/qpointsize_p.h + renderstates/qpolygonoffset.cpp renderstates/qpolygonoffset.h renderstates/qpolygonoffset_p.h + renderstates/qrastermode.cpp renderstates/qrastermode.h renderstates/qrastermode_p.h + renderstates/qrenderstate.cpp renderstates/qrenderstate.h renderstates/qrenderstate_p.h + renderstates/qscissortest.cpp renderstates/qscissortest.h renderstates/qscissortest_p.h + renderstates/qseamlesscubemap.cpp renderstates/qseamlesscubemap.h + renderstates/qstencilmask.cpp renderstates/qstencilmask.h renderstates/qstencilmask_p.h + renderstates/qstenciloperation.cpp renderstates/qstenciloperation.h renderstates/qstenciloperation_p.h + renderstates/qstenciloperationarguments.cpp renderstates/qstenciloperationarguments.h renderstates/qstenciloperationarguments_p.h + renderstates/qstenciltest.cpp renderstates/qstenciltest.h renderstates/qstenciltest_p.h + renderstates/qstenciltestarguments.cpp renderstates/qstenciltestarguments.h renderstates/qstenciltestarguments_p.h + renderstates/renderstatenode.cpp renderstates/renderstatenode_p.h + renderstates/renderstates.cpp renderstates/renderstates_p.h + renderstates/renderstateset.cpp renderstates/renderstateset_p.h + renderstates/statemask_p.h + renderstates/statevariant.cpp renderstates/statevariant_p.h + services/vsyncframeadvanceservice.cpp services/vsyncframeadvanceservice_p.h + shadergraph/qshaderformat.cpp shadergraph/qshaderformat_p.h + shadergraph/qshadergenerator.cpp shadergraph/qshadergenerator_p.h + shadergraph/qshadergraph.cpp shadergraph/qshadergraph_p.h + shadergraph/qshadergraphloader.cpp shadergraph/qshadergraphloader_p.h + shadergraph/qshaderlanguage.cpp shadergraph/qshaderlanguage_p.h + shadergraph/qshadernode.cpp shadergraph/qshadernode_p.h + shadergraph/qshadernodeport.cpp shadergraph/qshadernodeport_p.h + shadergraph/qshadernodesloader.cpp shadergraph/qshadernodesloader_p.h + texture/qabstracttexture.cpp texture/qabstracttexture.h texture/qabstracttexture_p.h + texture/qabstracttextureimage.cpp texture/qabstracttextureimage.h texture/qabstracttextureimage_p.h + texture/qpaintedtextureimage.cpp texture/qpaintedtextureimage.h texture/qpaintedtextureimage_p.h + texture/qtexture.cpp texture/qtexture.h texture/qtexture_p.h + texture/qtexturedata.cpp texture/qtexturedata.h + texture/qtexturedataupdate.cpp texture/qtexturedataupdate.h texture/qtexturedataupdate_p.h + texture/qtexturegenerator.cpp texture/qtexturegenerator_p.h + texture/qtextureimage.cpp texture/qtextureimage.h texture/qtextureimage_p.h + texture/qtextureimagedata.cpp texture/qtextureimagedata.h texture/qtextureimagedata_p.h + texture/qtextureimagedatagenerator.h + texture/qtexturewrapmode.cpp texture/qtexturewrapmode.h + texture/texture.cpp texture/texture_p.h + texture/textureimage.cpp texture/textureimage_p.h + DEFINES + BUILD_QT3D_MODULE + INCLUDE_DIRECTORIES + backend + framegraph + frontend + geometry + io + jobs + lights + materialsystem + picking + raycasting + renderstates + services + shadergraph + surfaces + texture + LIBRARIES + Qt::Concurrent + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::3DCorePrivate + Qt::Core + Qt::OpenGL + PRIVATE_MODULE_INTERFACE + Qt::Concurrent + Qt::CorePrivate +) + +# Resources: +set(materialsystem_resource_files + "prototypes/default.json" +) + +qt_add_resource(3DRender "materialsystem" + PREFIX + "/" + BASE + "materialsystem" + FILES + ${materialsystem_resource_files} +) + + +#### Keys ignored in scope 1:.:.:render.pro:<TRUE>: +# MODULE = "3DRender" + +## Scopes: +##################################################################### + +qt_extend_target(3DRender CONDITION gcov + COMPILE_OPTIONS + -fprofile-arcs + -ftest-coverage + LINK_OPTIONS + "-fprofile-arcs" + "-ftest-coverage" +) + +qt_extend_target(3DRender CONDITION QT_FEATURE_vulkan + SOURCES + surfaces/vulkaninstance.cpp surfaces/vulkaninstance_p.h +) diff --git a/src/render/configure.cmake b/src/render/configure.cmake new file mode 100644 index 000000000..47e961f64 --- /dev/null +++ b/src/render/configure.cmake @@ -0,0 +1,30 @@ +#### Inputs + + + +#### Libraries + + + +#### Tests + + + +#### Features + +qt_feature("qt3d_opengl_renderer" PRIVATE + SECTION "Qt 3D Renderers" + LABEL "OpenGL Renderer" + PURPOSE "Use the OpenGL renderer" +) + +qt_feature("qt3d_rhi_renderer" PRIVATE + SECTION "Qt 3D Renderers" + LABEL "RHI Renderer" + PURPOSE "Use the RHI renderer" +) + +qt_configure_add_summary_section(NAME "Qt3D Renderers") +qt_configure_add_summary_entry(ARGS "qt3d_opengl_renderer") +qt_configure_add_summary_entry(ARGS "qt3d_rhi_renderer") +qt_configure_end_summary_section() # end of "Qt3D" section diff --git a/src/render/surfaces/vulkaninstance_p.h b/src/render/surfaces/vulkaninstance_p.h index f46939ce6..14e6e8718 100644 --- a/src/render/surfaces/vulkaninstance_p.h +++ b/src/render/surfaces/vulkaninstance_p.h @@ -40,6 +40,17 @@ #ifndef QT3DRENDER_VULKANINSTANCE_P_H #define QT3DRENDER_VULKANINSTANCE_P_H +// +// W A R N I N G +// ------------- +// +// This file is not part of the Qt API. It exists for the convenience +// of other Qt classes. This header file may change from version to +// version without notice, or even be removed. +// +// We mean it. +// + #include <QtGui/qtguiglobal.h> #include <Qt3DRender/private/qt3drender_global_p.h> QT_BEGIN_NAMESPACE |