Commit Graph

13 Commits

Author SHA1 Message Date
silverqx 92775f444c divided Orm::Utils
While ORM can be disabled, Orm::Utils has been split into Orm::Utils
and Orm::Tiny::Utils (Orm::Tiny::TinyUtils alias).
So when ORM is disabled then utils used only in the ORM will be
excluded from a final build.

 - bugfix cmake undefined ORM option in TinySources
2022-01-01 14:28:42 +01:00
silverqx 869362bc7a added DISABLE_THREAD_LOCAL macro
Overrides default detection logic for thread_local and disable it
forcefully.
In qmake can be configured by "CONFIG+=disable_thread_local".
For Cmake DISABLE_THREAD_LOCAL option was added.
2021-12-30 17:12:29 +01:00
silverqx cc245f5468 sync cmake 2021-10-19 10:08:37 +02:00
silverqx 477934fa53 cmake TINY_UNPARSED_ARGUMENTS checks
- added TINY_UNPARSED_ARGUMENTS checks for all cmake_parse_arguments()
 - bugfix bad PARSE_ARGV index for cmake_parse_arguments()
 - added unset() to macros
2021-10-19 09:39:24 +02:00
silverqx 03bbe98d67 cmake package config enhancements 2021-10-18 08:26:24 +02:00
silverqx b71aaaa0be cmake added gcc/clang toolchain requirements
Show recommendation message for gcc/clang versions.
2021-10-13 16:31:21 +02:00
silverqx 8b78deb46e qmake/cmake inline/extern constants edge cases
Enhanced qmake/cmake builds during testing of all Win32 build types.

 - throw fatal error for unsupported build types
 - cmake do not show INLINE_CONSTANTS option for MinGW clang shared
   build because it causes crashes
2021-10-08 21:03:33 +02:00
silverqx 32d17c3e08 cmake static build support
For the static build is always used inline constants.
For the shared build is used extern constants by default and this
default can be overridden by a new cmake option INLINE_CONSTANTS.

 - renamed project folder tests/utils to tests/TinyUtils
 - bugfix missed INTERFACE TINYUTILS_LINKING_SHARED in TinyUtils target
 - renamed export macro defines for TinyUtils from UTILS_ to TINYUTILS_
 - renamed utils_global.hpp to export.hpp in TinyUtils
 - added WINVER macro
 - updated NTDDI_WINNT and similar macros
 - removed TINYORM_LINKING_SHARED from TinyTestCommon.cmake, it is in
   the INTERFACE from TinyOrm target
2021-10-08 15:09:01 +02:00
silverqx fd53d31870 cmake sync Windows RC and manifest files
Synchronize changes made to the Windows RC and manifest files related
code for qmake.

Also removed TinyOrm_mingw.rc file, RC file for MinGW is injected
through the main TinyOrm.rc.in file, I had to do it this way because is
not possible to pass more RC files by qmake's RC_FILE variable, cmake
can do this without problems.
2021-10-02 16:37:57 +02:00
silverqx fd38c383ee cmake obtain version info from version.hpp file
Discarded configuration of the version header file by version.hpp.in,
instead the project version is obtained from version.hpp file.

 - bugfix removed unused parameters in tiny_resource_and_manifest()
 - cmake appended version to TinyUtils
 - bugfix debug file flag in Windows RC files
 - added Windows RC and manifest files for TinyUtils library
 - build checkFileVersion_*() tests only on MSVC and when shared library
   build is on
2021-09-29 20:13:26 +02:00
silverqx 0e7b87bde8 cmake obtain version info from version.hpp file
Discarded configuration of the version header file by version.hpp.in,
instead the project version is obtained from version.hpp file.

 - unified function return values, used out_ variables
 - unified cmake_parse_arguments() calls, used PARSE_ARGV everywhere
2021-09-28 17:07:23 +02:00
silverqx 0d7bbf51e7 enhanced cmake build
- made TINYORM_MYSQL_PING private
 - added CMAKE_MODULE_PATH to the package config if MYSQL_PING enabled
 - changed paths to build folders, separate folders for cmake/qmake
 - refactored target_optional_compile_definitions()
 - bugfix tiny_init_cmake_variables()
 - moved TinyOrmTargets.cmake for build tree to the parent folder
 - disabled 4702 warning for msvc
 - whitespaces in cmake files if ( vs if(
2021-09-07 09:50:25 +02:00
silverqx 52a9e56bbf added cmake build 😅💪 2021-08-31 09:02:14 +02:00