Commit Graph

30 Commits

Author SHA1 Message Date
silverqx
8a90bd8653 qmake disabled tiny_ccache in example configs 2022-07-17 11:15:53 +02:00
silverqx
109ed60913 added qmake ccache support on Windows
The ccache can be enable using the "CONFIG*=tiny_ccache" feature.

 - updated docs
2022-07-13 13:56:23 +02:00
silverqx
9dcb3facf8 added make:model command 😎
Only simple model generation without relations.

 - updated docs TINY/TOM_MODELS_DIR
2022-06-25 09:44:36 +02:00
silverqx
8acafdebd3 code formatting 2022-06-05 18:13:53 +02:00
silverqx
c1f10c1464 qmake removed all xyz: { and revisited all xyz: \ 2022-06-05 09:56:45 +02:00
silverqx
43335a6ca4 updated conf.pri.example/s
[skip ci]
2022-06-04 15:10:52 +02:00
silverqx
4f1c931eae added support for clang-cl
Be able to build with clang-cl with MSVC 2019/2022 but only with
inline constants.

 - supported by both CMake and qmake 🎉
 - updated docs support compilers

qmake specific:

 - enhanced and fixed tiny_toolchain_requirement
 - added clang-cl min. required version to tiny_toolchain_requirement
 - enhanced winconf.pri
 - updated conf.pri.examples
 - added a new feature file the tiny_system_headers.prf, it unifies
   tagging system headers

cmake specific:

 - also added clang-cl min. required version as minReqClangClVersion
 - for clang-cl set the INLINE_CONSTANTS to ON and don't show this
   CMake option
2022-06-04 09:23:53 +02:00
silverqx
bb731e1c22 added make:seeder command 👌
This command is very similar to the make:migration command except
the --create and --table command-line parameters. It provides the same
functionality but for seeders.

 - updated docs TINYTOM_SEEDERS_DIR macro and TOM_SEEDERS_DIR for cmake
2022-05-17 14:50:20 +02:00
silverqx
306796bc29 renamed TINY/TOM_MIGRATIONS_DIR
Renamed cmake option and macro from the TINY/TOM_MIGRATIONS_PATH to the
TINY/TOM_MIGRATIONS_DIR.

 - updated documentation
 - extracted init. code for the TINYTOM_MIGRATIONS_DIR to the own cmake
   macro
2022-05-10 18:16:31 +02:00
silverqx
e574bee5d8 fixtypo 2022-05-10 18:13:12 +02:00
silverqx
3e98b16bd3 udpated comments 2022-05-03 13:51:06 +02:00
silverqx
373937958c provide custom migrations path to the tom example
User can provide a custom migrations path for the make:migration
command.

Default path is at database/migrations relative to the tom example
executable.

This allows to use the tom example as a real migration application and
the user doesn't have to create his own migration project.

Using:

 - TomApplication::migrationsPath()
 - TINYTOM_MIGRATIONS_PATH preprocessor macro, will be stringified
 - TOM_MIGRATIONS_PATH CMake PATH option
2022-04-26 19:56:48 +02:00
silverqx
db45b4bd51 updated conf.pri.example 2022-04-21 16:22:49 +02:00
silverqx
4701806be3 qmake conf.pri.example fix example path
- also removed needles code
2021-12-21 17:27:57 +01:00
silverqx
25db290edd qmake added ccache feature
Added tiny_ccache.prf feature, can be used in CONFIG to enable ccache.
2021-12-08 12:27:36 +01:00
silverqx
93a3311e72 qmake updated conf.pri.example for static build
Static build on MinGW.
2021-10-09 09:32:21 +02:00
silverqx
5d2f6f9db3 qmake add forward slashes for folders 2021-10-03 19:48:46 +02:00
silverqx
0c28e1b868 fixtypo 2021-09-22 12:19:50 +02:00
silverqx
a97de0b1b9 qmake moved pkg-config to conf.pri
qmake's pkg-config feature throws error when it does not find dependency
and that is not good.
2021-09-22 12:02:49 +02:00
silverqx
44099b1a59 added support for MinGW GCC and Clang for qmake
- also change win32-msvc* to win32-msvc
 - enhanced generation of -isystem for Qt components, it's
   cross-platform
2021-09-22 10:24:01 +02:00
silverqx
d8a741e7aa initial support for mingw64 qmake builds 2021-09-18 16:52:48 +02:00
silverqx
41b868f2eb todos and comments 2021-09-05 12:17:58 +02:00
silverqx
8abc955261 enabled W4 warning level on msvc
Used /external:anglebrackets for external/system header files
2021-09-04 14:55:05 +02:00
silverqx
d6379e3dc3 added newly added flags also to qmake build
Newly added flags from cmake build added also to the qmake build.
2021-09-04 07:56:35 +02:00
silverqx
7d7ac6656d enhanced qmake build 2021-08-31 09:14:13 +02:00
silverqx
48175927c7 updated conf.pri examples 2021-06-03 10:54:20 +02:00
silverqx
95a40ed5ff use lld if used clang compiler 2021-05-11 09:19:09 +02:00
silverqx
488d06a9b6 removed includepath from models.pri
- whitespaces
 - todo
2021-05-07 15:29:42 +02:00
silverqx
49eae88995 added partial gcc compatibility
I still was not able to compile it on gcc because of the cyclic
dependency of models.

 - removed zero from dll names where possible
2021-05-07 11:14:24 +02:00
silverqx
d45aec0a0f enhanced qmake build system
- removed hard-coded dependencies
 - user specific includes or libraries can be defined in the conf.pri
 - tests have it's own conf.pri
 - qmake related pri files moved to the qmake/ folder
2021-04-11 16:33:44 +02:00