Commit Graph

8 Commits

Author SHA1 Message Date
Thiago Macieira 00cb8afafb 3DCore: rip away the configure option and static choice of SIMD
Instead, simply use whatever is available from the compiler.

This also does away with the separation between Matrix4x4_SSE and
Matrix4x4_AVX2. The two classes store the data the same way and are
source-compatible; they just operate differently. This also allows for
an AVX2-enabled Qt3DRenderer to link to and run with a non-AVX Qt3DCore.

Change-Id: I76216ced393445a4ae2dfffd172a512266b2414d
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2023-01-19 19:18:52 -08:00
Lucie Gérard 8f339ea3d0 Change the license of all CMakeLists.txt and *.cmake files to BSD
Task-number: QTBUG-105718
Change-Id: I97fa27f60a8546ea3d73cc7daf1b728c615a1ab0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-08-24 01:53:10 +02:00
Lucie Gérard 0802d82e08 Add license headers to cmake files
CMakeLists.txt and .cmake files of significant size
(more than 2 lines according to our check in tst_license.pl)
now have the copyright and license header.

Existing copyright statements remain intact

Task-number: QTBUG-88621
Change-Id: I141f5077ae0c11e1058de64d573ca33e2a308ccd
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2022-07-08 13:42:44 +02:00
Alexey Edelev 3fce3beeb2 Avoid enabling qt3d-simd-avx2 if avx feature is disabled in qtbase
Make the qt3d-simd-avx2 feature dependent on the avx2 feature.

Pick-to: 6.2 6.3
Fixes: QTBUG-101176
Change-Id: Id056f383a4781dc4318b985631ebee46bb4b7961
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2022-02-24 11:28:48 +01:00
Samuli Piippo 598b72dac2 cmake: fix build with system assimp
Re-generate src/core/configure.cmake and use the renamed WrapQt3DAssimp.

Change-Id: Ifd4accb55216af61c0a4e29b3723eae6c9b853eb
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2021-03-24 07:50:48 +02:00
Joerg Bornemann e4aec09c7b CMake: Re-regenerate configure-related files
Add the missing qt_cmdline.cmake files.
Fix the bundled assimp library.
Remove the stale configure.cmake in src/plugins/sceneparsers.
Remove unused features from src/core/configure.json.

Change-Id: Id2aa3a02a1c0118c97bd2a447bd23f332f4b5270
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2021-02-12 21:41:34 +01:00
Mike Krus 86eb86514e Fix feature names in cmake
Feature names were mistakenly changed to use underscores rather
than dashes. This breaks builds of apps using qmake as it changes
the feature detection symbols.

Fixed by reverting to use dashes in the names. This is fine in cmake
as dashes are converted to underscores when not quoted.

Unfortunately, it changes the command line configuration arguments back
to the dashed versions.

[ChangeLog] Configuration time command line arguments have changed to
use dashes rather than underscores

Change-Id: If793c5424aa0459daf06dd075e2e40c33997ca1a
Task-number: QTBUG-89386
Pick-to: 6.0
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-12-11 16:27:18 +00:00
Mike Krus 22dd309499 Add support for building with CMake
Change-Id: If6c887c6356a160a5f3fb906d38a341fff0c7b29
Reviewed-by: Mike Krus <mike.krus@kdab.com>
2020-05-22 08:53:50 +01:00