Commit Graph

140 Commits

Author SHA1 Message Date
silverqx 750d8ddb11 cmake updated FATAL_ERROR message 2024-07-22 15:35:28 +02:00
silverqx 072d0492f8 cmake added ${CMAKE_CURRENT_FUNCTION}
Added to all message(FATAL_ERROR).
2024-07-22 15:32:49 +02:00
silverqx a6fdb791cf cmake fixtypo 2024-07-22 15:31:50 +02:00
silverqx 887d82b15e cmake unified if() AND/OR at the end 2024-07-22 13:55:50 +02:00
silverqx ade98d5f44 tests cmake reuse PCH
The databasemanager test case that will provide PCH for all other test
cases, what means all other test cases will use this PCH without
compilation.

 - added a new PROVIDES_PCH for tiny_configure_test()
 - this new implementation will be enabled from Qt v6.8.0 because of
   https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-126729
2024-07-22 13:44:05 +02:00
silverqx 39cafde1d6 cmake renamed function 2024-07-22 13:26:15 +02:00
silverqx 12248e1b54 cmake added cs_print_source_properties() 2024-07-22 13:18:24 +02:00
silverqx 0d8d53fb4c cmake whitespaces 2024-07-22 13:17:58 +02:00
silverqx 146c40e085 cmake updated comment 2024-07-22 13:17:28 +02:00
silverqx 1c039e72d4 cmake updated message 2024-07-22 13:17:11 +02:00
silverqx 6ac7370c6e cmake updated comment 2024-07-10 12:20:01 +02:00
silverqx 2eb2994a3c cmake whitespaces, re-wraped comment 2024-07-10 11:18:59 +02:00
silverqx ff1ee81468 cmake formatting 2024-07-10 09:32:09 +02:00
silverqx 56b5d396df vcpkg bugfix QT_DISABLE_DEPRECATED_UP_TO
Must be disabled with vcpkg because the qtbase port doesn't define it
and it causes incompatible API, eg. QByteArray::isNull() or
QString::toLongLong() is defined inline through this
QT_CORE_INLINE_SINCE() deprecated macros and we end up with multiple
defined symbols, what means QtCore is compiled with old API without
inline because it doesn't define this QT_DISABLE_DEPRECATED_UP_TO and
TinyORM has inlined symbols. It of course works with shared DLL builds
but fails with static/-md triplets (builds). It's a good idea to use the
same setting for this like qtbase has anyway.
2024-07-09 22:08:18 +02:00
silverqx 14d2153a36 cmake reordered if() condition expression 2024-07-07 19:02:20 +02:00
silverqx 46b2b25d8f cmake moved function to other module 2024-07-06 21:46:46 +02:00
silverqx affc068544 Revert "cmake used function() instead of macro()"
It must be macro() because the cmake_dependent_option() sets a local
variable when the <depends> is FALSE, what means, if this is
the function() the variable will be undefined outside the scope.

This reverts commit dc24dd4133.
2024-07-03 22:22:47 +02:00
silverqx 6f3497f8ba cmake unified dots at the end of a sentences
- updated NOTES.txt
2024-06-30 15:30:13 +02:00
silverqx 8df5fb99cc cmake extracted unsupported build to own file
Extracted to the TinyToolchainRequirement.cmake.
2024-06-30 15:15:05 +02:00
silverqx b5014d799c cmake used CMAKE_CURRENT_FUNCTION
Instead of manually typed function name.
2024-06-30 15:12:44 +02:00
silverqx 78adc7ae7c cmake extracted toolchain requirements to own file
- added QT parameter to tiny_toolchain_requirement() function to follow
   the same code style
2024-06-30 15:07:18 +02:00
silverqx 09d081434d cmake check minimum required Qt version
Determine whether the minimum Qt version was satisfied using and set the
internal cache variable TINY_QT_VERSION.

Command used to obtain a Qt version: "${QT_QMAKE_EXECUTABLE}" -query
QT_VERSION This check is needed because eg. QtCreator sets the
QT_QMAKE_EXECUTABLE based on the selected KIT, but there can be other Qt
versions on the system/user path so even if the QT_QMAKE_EXECUTABLE
contains qmake from eg. Qt v5.15 then the find_package() function is
still able to find the correct Qt version, so this check is specifically
for the QtCreator and informs about wrongly select KIT.

If the QT_QMAKE_EXECUTABLE command can't be executed or it returns a
non-zero exit code then continue a normal execution and leave the
decision logic up to the find_package() function.
2024-06-30 14:56:20 +02:00
silverqx f7d7a8fb0c cmake fixtypo in comments 2024-06-30 14:49:19 +02:00
silverqx eda9df9f9e removed Qt v5 support since TinyORM v0.38.0 🎉🕺🙌
Removed Qt v5.15 support since TinyORM v0.38.0, finally.

Minimum required Qt version is now v6.2!

Day of celebration is today. 😁

 - removed all #if QT_VERSION macro checks
 - updated docs
 - workflows removed Qt v5 related pipelines
 - updated all comments
 - vcpkg removed tinyorm-qt5 port
 - updated Gentoo build
 - updated README.md Qt v5 badges
 - tools removed Qt v5 related scripts
 - tools updated deploy.ps1 script
2024-06-28 14:57:59 +02:00
silverqx e466270bb7 qmake enhanced MSVC array iter. warnings detection
Do it the same as for CMake build.

 - qmake added TINY_COMPILER_FULL_VERSION
 - updated comments
2024-06-28 11:16:52 +02:00
silverqx 26c4db269d cmake added debug function for BOOL values 2024-06-25 12:13:12 +02:00
silverqx 31b8e06a9c fixtypo compiler names
Everywhere cmake, qmake, docs, ...
2024-06-25 12:13:10 +02:00
silverqx edc29f29da cmake bugfix PCH mtime with ccache (clang-cl MSVC) 2024-06-25 12:13:09 +02:00
silverqx 1c2f17facf removed deprecated up to Qt v6.9 (Qt::TimeSpec) 🎉
- removed using of QDateTime methods using plain Qt::TimeSpec
 - set QT_DISABLE_DEPRECATED_UP_TO to 0x060900 (also 0x061000 works)
 - maintained Qt v5 and <v6.5 code still 😬 (next step will be to drop
   Qt v5 🎉)
 - updated auto tests
 - updated docs
 - updated comments

See:
https://github.com/qt/qtbase/commit/8c8d6ff7b6e2e6b1b673051685f1499ae4d65e05?diff=unified&w=0
2024-06-25 12:13:07 +02:00
silverqx 5dfe13812d qmake/cmake updated comment 2024-06-19 19:28:01 +02:00
silverqx 1c8e4d35ec qmake/cmake disabled deprecated APIs for Qt <=6.7
- for Qt <6 disabled deprecated APIs for Qt <=6.0
 - added temporary workaround for
   QVERIFY_EXCEPTION_THROWN() vs QVERIFY_THROWS_EXCEPTION(), to support
   Qt v6.8 and also older version at the same time
2024-06-16 17:56:34 +02:00
silverqx db0387b384 cmake vcpkg disabled /W4 and /sdl
vcpkg builds must go on as far as possible (Debug or Release) so don't
use /sdl and also don't use /W4 to avoid the following warning for every
TU all over log files:
cl : Command line warning D9025 : overriding '/W3' with '/W4'
2024-06-16 10:47:31 +02:00
silverqx 8ea125d18d qmake/cmake updated NTDDI_VERSION related macros 2024-06-15 14:37:45 +02:00
silverqx 7c12276e11 tom cmake added info about LTO to about command 2024-06-03 22:06:32 +02:00
silverqx d7463181e3 qmake/cmake enhanced -Zi|-ZI replacement
- updated docs
2024-06-03 15:23:50 +02:00
silverqx ee9b3b689e cmake added comment 2024-06-03 14:13:23 +02:00
silverqx 258cffafa3 qmake/cmake added support for ccache >=4.10
Don't disable PCH on ccache >=4.10 on Windows as PCH works since this
version.

 - updated docs
2024-06-03 14:07:55 +02:00
silverqx c5d09d8b6a cmake fixtypo 2024-06-03 12:44:44 +02:00
silverqx fb15e8ddad cmake revisited all compile/linker flags
- added -Wdeprecated and -Wdeprecated-copy-dtor
 - added/updated comments
2024-06-01 23:41:13 +02:00
silverqx 542b74505d cmake revisited/enhanced extern/inline constants
Everything was fixed in Clang v18, so extern constants are always
enabled by default on all platforms and for both shared/static build
types.

Clang <v18 has still custom patched logic to avoid compile errors and
crashes, but this logic will be removed soon.
2024-06-01 19:43:32 +02:00
silverqx dc24dd4133 cmake used function() instead of macro() 2024-06-01 17:39:29 +02:00
silverqx 131e4d227f cmake whitespaces 2024-06-01 12:56:54 +02:00
silverqx 40a0b4e286 cmake bugfix Zc:preprocessor 2024-05-22 12:12:55 +02:00
silverqx 1f34fcd9b7 qmake/cmake enabled C/C++ conformant preprocessor 2024-05-22 11:15:30 +02:00
silverqx e3dd91d042 cmake whitespace 2024-05-21 16:05:48 +02:00
silverqx 098a9d9ca3 vcpkg don't abort compiling on warnings
Abort compiling on warnings for Debug builds only (excluding vcpkg),
Release and vcpkg builds must go on as far as possible.
2024-05-02 00:07:43 +02:00
silverqx 83a8858218 qmake/cmake don't abort compiling on warnings
Abort compiling/linking on any warnings for Debug builds only, Release
builds must go on as far as possible.
2024-05-01 16:11:44 +02:00
silverqx 83deb70447 cmake enhanced fix for MSVC array iterators
Defined _SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING.
2024-04-22 15:28:48 +02:00
silverqx c56d974707 vcpkg drivers support for TinyDrivers 🔥🚀🥳 2024-04-17 12:55:26 +02:00
silverqx f45bf8c80a cmake fixtypo 2024-04-16 21:05:56 +02:00