198 Commits

Author SHA1 Message Date
Nyall Dawson
6785fe4554 [cmake] Use execute_process instead of deprecated EXEC_COMMAND
See CMP0153
2024-04-21 12:52:02 +10:00
Matthias Kuhn
912ae75fb0
Merge branch 'master' into no-leak-build-path 2024-03-04 09:10:53 +01:00
Nyall Dawson
f2322389fa Ignore SIP_MONKEYPATCH_FLAGS_UNNEST when generating Doxygen 2024-03-04 17:37:47 +10:00
Nyall Dawson
c4868c565b Include Flags in doxygen 2024-03-04 17:37:47 +10:00
Matthias Kuhn
60940bfe16 Do not leak build env paths into public headers 2024-02-24 21:48:32 +01:00
Nyall Dawson
b43f73a1f1 Make building PDF4Qt optional, and opt-in
There's some added dependancies required for building this, so
let's play it safe for now...
2024-02-12 12:48:27 +10:00
Nyall Dawson
fae7c83437 Fix doxygen 2024-01-31 17:16:18 +10:00
Mathieu Pellerin
185724f892 Make QtPrinter support non-mandatory 2024-01-22 11:07:34 +10:00
Harrissou Sant-anna
e79f314dc1 Fix typo and adjust text to foul the spell-ckecker 2024-01-22 08:04:59 +10:00
Harrissou Sant-anna
e15031d747 Raise DOT_GRAPH_MAX_NODES to allow build of complex interconnected graphs 2024-01-22 08:04:59 +10:00
Harrissou Sant-anna
b6079aca3f Reinstate the somehow unknown @INCLUDE option 2024-01-22 08:04:59 +10:00
Harrissou Sant-anna
966a9ead81 Let's just run Doxygen update on the whole config file
Note that the EXTRACT_STATIC option was mentioned twice (with yes and no values),
one is replaced by EXTRACT_PACKAGE, with both options set to default : NO

Also @INCLUDE option is not recognized by doxygen so has to be turned off
2024-01-22 08:04:59 +10:00
DelazJ
30b079c8ba Replace deprecated Doxygen configuration options,
allowing for a C++ docs build with inheritance graphs - Fixes #54990
2024-01-22 08:04:59 +10:00
Nyall Dawson
4ceceea94a Add WITH_QTWEBENGINE cmake flag
Logic is:
- Cannot be enabled if webkit support is enabled (to simplify
  logic in QGIS classes - if webkit is enabled, then webkit
  widgets will be used. if webengine is enabled, then
  webengine widgets will be used)
- Cannot be enabled if QGIS 3D support is enabled (due to
  incompatibility between webengine and Qt3D framework)
2023-12-21 04:43:57 +10:00
Nicklas Larsson
021f919f24
cmake: update to find PDAL 2.6+
With PDAL 2.6 the 'pdal_util' library is removed as a separate library
and hence part of the 'pdalcpp' library.
2023-10-17 19:41:44 +02:00
Nyall Dawson
d874d9c0e3 Trying to handle SIP_MONKEYPATCH_FLAGS_UNNEST breaks doxygen 2023-08-18 17:54:30 +10:00
Nyall Dawson
73188e8034 Fix messed up enum documentation in generated doxygen outputs 2023-08-18 17:54:30 +10:00
Nyall Dawson
40ecc548d8 Add conditional support for linking draco library
Can be opted out by setting WITH_DRACO cmake option to false
2023-08-07 08:06:55 +10:00
Nyall Dawson
f86e46ed7a Add optional WITH_QTGAMEPAD cmake switch, and create 2d/3d gamepad
map controller classes which expose QGamepad functionality

Especially handy because the underlying QGamepad classes
are not accessible to Python
2023-06-27 14:49:20 +10:00
Denis Rouzaud
980667a7de fix cmake var name 2023-01-25 12:47:48 +01:00
Denis Rouzaud
ce16b4d39d exclude settings from dox 2023-01-16 09:00:51 +01:00
Nyall Dawson
6572c9bd46 Add QGIS_PROTECT_QOBJECT_THREAD_ACCESS macro
Either shows a warning when a qobject function is accessed
from a thread which the object doesn't have affinity with,
OR causes a fatal error if the AGGRESSIVE_SAFE_MODE cmake flag
is set.

We should ensure this macro is present for all qobject methods
which may potentially be called from threads
2022-12-14 02:59:05 +10:00
NEDJIMAbelgacem
cc9f5fbf12 inital implementation of local COPC reading 2022-03-31 05:44:54 -07:00
Nyall Dawson
e85df91f1f Rename HAVE_PDAL as HAVE_PDAL_QGIS
The grass public headers define HAVE_PDAL if grass is built with
PDAL support, so this macro gets redefined on GRASS enabled builds.
Switch to using HAVE_PDAL_QGIS to avoid the conflict.
2022-02-08 10:38:42 +10:00
Denis Rouzaud
488255d85c
simplify creation of CMake files for Python tests (#46642) 2021-12-28 08:26:54 +00:00
Nyall Dawson
ffb12c76c5 Allow crash handler to be disabled through cmake
It can cause issues with some environments, e.g. when building
through asan
2021-12-21 13:17:51 +10:00
Matthias Kuhn
1d1d59d7fb
Cleanup proj version detection (#46134)
Make sure the proj version detection logic is made available to reverse dependencies too.
In short, move it from an obscure define in a custom cmake find file to a generated header.

Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
2021-11-20 16:09:58 +07:00
Nyall Dawson
730cd7e23a [feature] Add "stretch" setting for labels and text formats
Allows text to be horizontally stretched or condensed by a %
factor. Handy for tweaking the widths of fonts to fit a bit
of extra text into labels (when used sparingly, that is...
you can certainly abuse font stretching with some horrendous
results!)

Requires Qt 6.3+ or KDE's 5.15 fork

Thanks for KDAB for fixing the upstream issues blocking this!
2021-11-09 14:58:14 +11:00
Nyall Dawson
dae69acc76 [feature] Support Small Caps style in labels/text renderer
Adds two new capitalization styles for labels and text symbols:

- Small Caps: Renders lowercase characters as small caps
- All Small Caps: Renders all characters as small caps (regardless
of their original case)

Requires Qt 6.3+, or Qt 5.15 using KDE's fork and the cmake
HAS_KDE_QT5_SMALL_CAPS_FIX switch defined during build.
2021-11-08 14:36:44 +11:00
Nyall Dawson
1495cd5785 Add cmake switch to indicate that a Qt5 build is using KDE's Qt 5.15 fork
There's no easy way to detect this automatically, so a manual switch is required
2021-11-05 07:28:32 +11:00
Denis Rouzaud
019976e59c enable static build of all auth methods 2021-06-23 12:52:35 +02:00
nirvn
0008158ab0 Allow GSL-less qgis analysis library 2021-06-01 11:39:21 +07:00
Nyall Dawson
8f8c90897a Use opencl.hpp header instead of cl2.hpp if present
Avoids a "cl2.hpp has been renamed to opencl.hpp" warning being
spammed out on newer opencl environments
2021-06-01 11:58:01 +10:00
Nyall Dawson
8ff0efd230 [browser] By default do not monitor directories on drives we know
are slow

Effectively this means that the browser no longer defaults to watching
network and remote drives (on Windows) for changes. This is expensive
to do and can result in large hangs in the QGIS application.

Users can still manually opt-in to monitoring of these locations
through the context menu of the directory in the browser panel.
2021-05-31 12:23:56 +10:00
Nyall Dawson
ef9dd06d3e Add cmake flag to optionally disable spatialite support
If turned off, disables the spatialite, wfs, virtual providers and the
offline editing plugin as a result.

Intended for development purposes only, as the spatialite linkage can
be problematic when building against non-system proj/gdal versions
2021-05-07 16:21:19 +10:00
Nyall Dawson
45a9309afa Show Python version in about screen and in Processing logs 2021-04-22 14:39:47 +10:00
Nyall Dawson
3dc5307e6d Revert "Hacky fix for sip issue"
This reverts commit 9e0fcb96495e4cc5d76cd3af06ae1a7c2bac5eda.
2021-02-25 11:08:56 +10:00
Nyall Dawson
90953d76d2 Hacky fix for sip issue 2021-02-25 11:08:56 +10:00
Nyall Dawson
53bf2cf8ca Fix QSCINTILLA_VERSION_STR redefinition warnings emitted on
newer QScintilla versions due to presence of
QSCINTILLA_VERSION_STR in QSci headers
2021-02-24 05:11:59 +10:00
Nyall Dawson
a89241c19d Fix typo in replacement string for Doxygen FILE_PATTERNS option
This was causing FILE_PATTERNS to always be set to blank, which
in newer doxygen versions meant that *.txt files were being included
alongside *.h, *.cpp etc. Accordingly doxygen was trying to parse
the various CMakeLists.txt files and choking and raising warnings.
2021-02-18 11:54:23 +10:00
Denis Rouzaud
c2f4c8edee fix pushing to CDash 2021-02-08 13:23:37 +10:00
Maksim Rylov
10a50d8d0f Initial implementation of HANA provider 2020-12-07 14:53:40 +01:00
Juergen E. Fischer
5440021f4f fix bionic build with pdal 2020-11-11 11:12:44 +01:00
Nyall Dawson
f5a4880e70 Switch from silently building broken Entwine point cloud support
when dependancies are missing (libzstd, lazperf) to an explicit
WITH_EPT optional cmake switch which requires those dependancies

This makes it easier people to determine whether they have the
complete set of necessary dependancies to build Entwine point
cloud support, as cmake will show an error if they enable WITH_EPT
but don't have them...
2020-11-07 07:57:00 +10:00
Nyall Dawson
f98bdc04a6 Make PDAL version information available for macros 2020-11-07 03:22:22 +10:00
Peter Petrik
bb5b625bc4 able to build without zstd and lazperf 2020-10-27 05:29:14 +10:00
Matthias Kuhn
ef70fb17ed Undef doxygen Q_DECL_DEPRECATED 2020-10-23 12:11:56 +02:00
Matthias Kuhn
245f354af9 Predefine Q_DECL_DEPRECATED for doxygen 2020-10-22 21:09:27 +02:00
Matthias Kuhn
42af1efa18 Fix a bunch of doc issues 2020-10-22 20:42:14 +02:00
Matthias Kuhn
d1a18750ad Fix doxygen warnings 2020-10-22 11:31:55 +02:00