Previously, commits:
- 70bb112352
- 71f2ed171a
added spdlog as a dependency of individual programs in addon/ to ensure
that they actually include link-time dependencies on libspdlog.(so|dll)
Also, commit 1e8aa2da70 added spdlog as a
dependency of the primary "doxygen" program.
The underlying issue here is that trace.cpp and trace.h (part of the
doxycfg static library) includes the spdlog headers and thus needs all
of its:
- interface include directories
- compile definitions
- link libraries, if any (and with system spdlog, there will be)
Conversely, the programs don't actually need spdlog at all, they don't
directly use it. They don't need its include directories, nor its
compile definitions, but they do need to link to spdlog::spdlog if and
only if they link to a target -- doxycfg -- which requires spdlog.
CMake automatically includes libspdlog.so in the linker command line
when the doxycfg static library has a private dependency on it, and
doesn't propagate interface include directories or compile definitions
in this case. All this is exactly what we want, both for doxycfg and for
the CLI programs.
Additionally, the doxymain static library includes trace.h and therefore
needs to link to spdlog.
This effectively reverts commits 70bb112352
and 71f2ed171a because those commits were
the incorrect solution to the problem.
Instead of an external package add sqlite3 as local dependent package so it can be used on all platforms.
- used amalgamation of version 3.42 of sqlite3
- no need to do separate compilations to add sqlite3
- on windows only the dll and def were distributed (hard to integrate and would still need the dll)
- consistency between the platforms
Analogous to the doxywizard adding an icon to the the other executables.
(Icon is less useful as the executables are command line executables, but in file viewers it has an advantage).
The chosen icon is the colored `d` from the doxygen color logo, which is converted to an icon.
In case the `editbin` executable is available automatically set the right properties of the created executables.
For de bugging purposes it might be useful to have the `doxywizard` not as a "windows" type of executable but as "console" executable, this can be accomplished by means of the setting of `enable_console=ON`.
The `enable_console` only operates on the `doxywizard` executable. Usage like: `cmake -Denable_console=ON ..`
As the word `VERSION>` is an, unknown, HTML tag it is not shown on e.g. github, making it part of a code sections makes it visible (other sections with commands are also shown as code sections).
In case we have included sources (e.g. due to `INLINE_SOURCES`) and also the `SOURCE_BROWSER` enabled it is possible that we get double labels.
Also the calculation of labels in RTF was not done consistently, sometimes the path was striper and on other moments it wasn;t (especially seen in case CREATE_SUBDIRS
The problem was found using RTF / Docbook on the doxygen internal documentation (not standard) but will happen too in other projects
This commit changes the following in relation to string use
- The implicit convert from 'QCString' to 'const char *' is removed
- Strings parameters use 'const QCString &' as much as possible in favor
over 'const char *'
- 'if (s)' where s is a QCString has been replaced by 'if(!s.isEmpty())'
- data() now always returns a valid C-string and not a 0-pointer.
- when passing a string 's' to printf and related functions 'qPrint(s)' is
used instead of 's.data()'
- for empty string arguments 'QCString()' is used instead of '0'
- The copy() operation has been removed
- Where possible 'qstrcmp(a,b)==0' has been replaces by 'a==b' and
'qstrcmp(a,b)<0' has been replaced by 'a<b'
- Parameters of string type that were default initialized with '= 0' are
no initialized with '= QCString()'
In doxyparse.cpp we got some compilation warnings (Windows 64-bit compiler) like:
```
doxyparse.cpp(299): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
```
these have been eliminated.