Commit Graph

33 Commits

Author SHA1 Message Date
Sergio Martins
fc1f12b77c cmake: Qt6 QtQuick clangcl preset needs help finding Qt6 plugins
The same was already done to the regular msvc one
2021-07-15 20:18:55 +01:00
Sergio Martins
a50057f5d2 cmake: Fix running the clangcl Qt6 presets on Windows
They need to set PATH
2021-07-15 20:14:48 +01:00
Sergio Martins
d7b32e475e cmake: Normalize preset build dir of my clangcl preset 2021-07-15 20:11:30 +01:00
Sergio Martins
048b494874 cmake: Fix dev-qtquick6 preset
When running it, we need to set the correct qml import path,
otherwise it picks up Qt 5.
2021-07-14 23:31:57 +01:00
Sergio Martins
7e1331bd76 cmake|Qt6: Add presets for clang-cl 2021-07-10 06:56:36 -07:00
Sergio Martins
f735f25fb0 cmake|qtquick: Add a preset for building with clang-cl 2021-07-10 06:52:35 -07:00
Sergio Martins
a6abf73669 cmake: Add a preset for clang-cl
clang has different warnings, so would like to build with it in
CI too.
2021-07-10 13:57:48 +01:00
Sergio Martins
93441a5754 cmake: Use unity build for our release builds
Unity is much faster to build, specially on Windows
2021-07-10 13:38:24 +01:00
Sergio Martins
fe57686715 cmake: Remove "-qtwidgets" suffix from preset names
Only variants need a suffix (python, qtquick, static, etc).
The default is a qtwidgets build
2021-07-10 13:22:27 +01:00
Sergio Martins
be8af12a90 cmake: Remove unneeded custom preset settings
I have this locally now, as it didn't have any kddw specific config
and I'm using it cross project, so makes more sense to have it
in a central location outside of kddw.
2021-07-05 22:51:09 +01:00
Sergio Martins
913d3b263d cmake: Don't build the examples when using the clazy preset
The clazy warning set is more strict for the library than for the
examples. For CI purposes and -Werror it's the library that matters.
2021-07-03 16:24:15 +01:00
Sergio Martins
614e20a183 cmake: Add a preset for clazy qtquick 2021-07-03 16:19:28 +01:00
Sergio Martins
df02382387 cmake: Add a personal preset config
So I can build on my mac from my linux box
2021-06-28 21:04:07 +01:00
Sergio Martins
2a8732fdcd cmake: Add preset for qtquick developer-build 2021-05-20 23:40:23 +01:00
Sergio Martins
19931ec18e cmake: Fix my Qt6 builds 2021-05-20 23:38:47 +01:00
Sergio Martins
89f50769b6 cmake: Remove unneeded build presets
The default/implicit one is enough for those cases
2021-05-01 19:59:14 +01:00
Sergio Martins
5aa3ba25cc cmake: Add a Gammaray friendly preset
ASAN doesn't like Gammaray injection
2021-04-23 19:01:10 +01:00
Sergio Martins
26f7557834 cmake: Disable CCACHE when running the clazy preset 2021-04-23 09:50:51 +01:00
Sergio Martins
e6c2f29532 cmake: Specify which clazy checks to use
Trivial now with cmake presets
2021-04-22 15:44:16 +01:00
Sergio Martins
714ef2adb8 cmake: Fix a preset name
We don't have dev-qtquick6.
Should probably be added.
2021-04-20 20:22:24 +01:00
Sergio Martins
3846b638fb cmake: Add build presets too
This is new in cmake 3.20 and makes the vscode experience much better
2021-04-20 20:16:44 +01:00
Sergio Martins
fff6c004e0 Pass -warn-uninitialized to cmake 2021-03-26 13:46:02 +00:00
Sergio Martins
3d191da07e Remove the unity build option, there's already a CMake way
-DCMAKE_UNITY_BUILD should do the same thing.
Disabling it by default since the project is too small for the gains,
and because it screws up the compile_commands.json which I need
for vscode
2021-02-14 23:28:46 +00:00
Sergio Martins
aeb61993a4 Use QT6_DIR in the presets file
Removes the hardcoded "gcc"
2021-02-14 23:08:06 +00:00
Sergio Martins
146478eb5e cmake: No need to build the fuzzer during development 2021-02-09 10:52:28 +00:00
Sergio Martins
8dfad1c910 vscode: Update the workspace files
Now autogenerated from CMakePresets.json.
Added the Qt6 one too.
2021-01-16 19:40:36 +00:00
Sergio Martins
69c88919c0 cmake: Export a compile_commands.json which helps vscode
Need to disable unity build otherwise intellisense can't find
our source files in the compile_commands.json. Only for the dev-*
presets anyway
2021-01-12 14:25:11 +00:00
Sergio Martins
e563ffb673 Add presets for Qt6 dev build 2021-01-03 22:12:56 +00:00
Sergio Martins
67a3270324 cmake: Add a setting to enable -Werror without developer build
Enabled for clazy, for example
2020-12-22 18:16:35 +00:00
Sergio Martins
092b4afe4a Add a clazy preset 2020-12-22 16:05:10 +00:00
Sergio Martins
9275f852d6 CMakePresets: Enable sanitizers for our developer builds 2020-12-21 20:06:40 +00:00
Sergio Martins
cd9e16398c qtquick: Fix the build for Qt6
And added cmake presets for Qt6
2020-12-19 18:59:33 +00:00
Sergio Martins
8dad079df5 Add a CMakePresets.json
Contains the configrations we support:
    QtWidgets, QtQuick, static, Python and developer-build
2020-12-19 16:07:49 +00:00