Commit Graph

31 Commits

Author SHA1 Message Date
Christian Hohnstaedt
89b7c6beea codespell: Fix spelling issues, no functional changes 2025-03-28 18:11:18 +01:00
Christian Hohnstaedt
d66e2619c7 CMake: fix dependency issue when creating documentation
Some checks are pending
CMake / build (build/xca-*-Linux.tar.gz, Unix Makefiles, linux, /usr, ubuntu, 5.15.2, ubuntu-latest) (push) Waiting to run
CMake / build (build/xca-*-Linux.tar.gz, Unix Makefiles, linux, /usr, ubuntu, 6.6.2, ubuntu-latest) (push) Waiting to run
CMake / build (build/xca-*.dmg, Unix Makefiles, mac, /opt/homebrew/opt/openssl, macos, 6.6.2, macos-latest) (push) Waiting to run
CMake / build (build/xca-*.msi build/xca-portable-*.zip , MinGW Makefiles, windows, D:\msys2\msys64\mingw64, windows, 5.15.2, windows-2019, win64_mingw81) (push) Waiting to run
Changing RST files in doc now result in a recreation
of the HTML and QtHelp files during build.

The sphinx-html and sphinx-qthelp targets need to
depend on sphinx-src to create that target files only once
(and not twice in parallel during parellel builds)
and also on all output files sphinx-src depends on.
.
2024-09-07 11:48:51 +02:00
Christian Hohnstaedt
d5d9e86352 Whitespace fixup for CMake files
replace tabs by spaces
2024-09-06 10:53:02 +02:00
Christian Hohnstaedt
6bf6f4384b Automatically generate documentation of export formats
The pki_export class has all information to generate the documentation
2024-08-30 09:30:42 +02:00
Christian Hohnstaedt
5c62100733 CMakeLists.txt: support SOURCE_DIR == BINARY_DIR
In case of SOURCE_DIR == BINARY_DIR the "doc/rst"
directory was the same directory for some copy operations
and dependencies became recursive.

Change the binary "doc/rst" directory to doc/rst-build

Also drop some superflous ""
2024-08-20 23:24:02 +02:00
Christian Hohnstaedt
bc590c8521 Improve changelog
Reuse the generated changelog HTML file
Make sections addressable by DOM search:
  section[id^='xca-" + dashedversion + "'] ul.simple
2024-08-20 11:03:27 +02:00
Christian Hohnstaedt
8193988b01 Do not install xca.qch file
It is not required at runtime
2024-08-20 11:03:27 +02:00
Christian Hohnstaedt
e1a4e905c0 Revert "Fix github compile error by using the QT provided compilers"
This reverts commit 0bce272bc7.
2023-09-24 18:21:33 +02:00
Christian Hohnstaedt
0bce272bc7 Fix github compile error by using the QT provided compilers
doc/CMakeLists.txt: Create output directory during configure
phase to avoid a race-condition.
2023-09-24 01:58:13 +02:00
Christian Hohnstaedt
7b2342f5cd Close #457: Support Qt5 < 5.12
Qt5 before 5.12 has to use qcollectiongenerator
instead of qhelpgenerator, which also exists but creates an error.

if qcollectiongenerator prioritize it.
2023-09-23 12:28:15 +02:00
Christian Hohnstaedt
3e284b1245 CMakeLists.txt: Improvements
Use "${QT}::qhelpgenerator" instead of
"find_program(QTCOLLGEN NAMES qhelpgenerator ....)"

Add CACHE Variable QTFIXEDVERSION allowing to force Qt5 or Qt6
if both are installed.
2023-05-23 23:19:34 +02:00
Christian Hohnstaedt
86f24d1432 Matrix with QT versions 2022-09-02 17:02:40 +02:00
Christian Hohnstaedt
c873cc1a41 Fix installation of documentation
We need the whole directory, including the _static and _sources
sub-directories.

Also silence the QM generation. It was very garrulous.
2022-08-31 00:11:14 +02:00
Christian Hohnstaedt
ced6dfc41a Add support for Qt6
XCA now supports both, Qt6 and Qt5 down to Qt-5.2

Use CMAKE_PREFIX_PATH to point to the QT dompiler directory like
$ cmake -B build -DCMAKE_PREFIX_PATH=$HOME/6.3.1/gcc_64
2022-08-31 00:09:37 +02:00
Christian Hohnstaedt
e6d23fbd26 Win32: make install creates xca-portable 2022-08-31 00:01:06 +02:00
Christian Hohnstädt
683a08eedd cmake: fix dependency issue complained by xcode
Also remove stamp files and simplify CMake rules:
 - Name all generated files in OUTPUT
 - Drop BYPRODUCT, which is not necessary now.
 - Let the target depend on all OUTPPUTs of the command.
2022-08-07 22:30:32 +02:00
Dan Church
21536e608e
Use CMAKE_INSTALL_DOCDIR for docs location 2022-08-02 13:42:44 -05:00
Christian Hohnstädt
81a5540ec4 Improve Installation and DMG generation
Design the DMG look & feel, including the documentation

travis is gone. We use github actions
2022-07-11 23:04:27 +02:00
Christian Hohnstädt
3f5930a4f3 cmake: use BYPRODUCTS keyword to make ninja work
this also automatically sets the GENERATED flag.
2021-12-29 12:09:15 +01:00
Christian Hohnstaedt
eea60e7904 Silence sphinx output and avoid duplicate sphinx output 2021-11-20 12:23:37 +01:00
Christian Hohnstädt
4a30db9671 Improve dependencies in cmake files and add sensible defaults
Add custom-targets, dependencies and "Generated" properties
to fix race conditions.

Add default paths for my setup on Windows
and MacOSX
2021-11-20 10:55:30 +01:00
Christian Hohnstaedt
d73d4ccd51 Windows MSI: Improve WXS file creation with cmake
The long list of translations and html documentation
pages is now auto-generated by the cmake files,
which know the translations and html files. (DRY)

TODO: Windows SQL drivers for mysql and psql
2021-11-13 23:51:04 +01:00
Christian Hohnstaedt
25d2fdabb2 Fix and improve building help and documentation
- Always build html documentation if sphinx-build is available.
  to be installable during install
- Collect "${D}/qthelp/xca.qhc" "${D}/qthelp/xca.qch" in QTHELP_IDX
  and use this instead.
- On linux also install the qthelp in an html subdirectory like WIN32
- Don't instanciate QHelpEngine if no help available.
2021-11-13 14:49:02 +01:00
Christian Hohnstaedt
36e02374ff Put XcaWarningBox on the stack not on the heap 2021-10-24 20:32:12 +02:00
Christian Hohnstädt
30e9568278 Merge remote-tracking branch 'github/master' into main
gzip command moved from doc/Makefile to doc/CMakeLists.txt
2021-10-24 15:09:58 +02:00
Christian Hohnstädt
ac506c83c2 cmake: Build successfully, even without qthelp and qtcollgen 2021-09-24 07:22:56 +02:00
Christian Hohnstaedt
64cd58ef96 Build sphinx documentation duting the default target 2021-09-18 08:53:15 +02:00
Christian Hohnstaedt
2f70cb13d2 doc/CMakeLists.txt: fix building the sphinx-qthelp
Get the output and dependencies right.
2021-06-02 21:49:33 +02:00
Christian Hohnstädt
76763ea98c cmake: include() the CMakeLists.txt file
instead of add_subdirectory() them.

in all subdirectories set ${S} and ${D}
as shortcuts for CMAKE_CURRENT_SOURCE_DIR
and CMAKE_CURRENT_BINARY_DIR
2021-06-01 17:48:38 +02:00
Christian Hohnstaedt
8cdc15aa39 Move database_schema.cpp from widgets to lib
there are no GUI elements in database_schema.cpp
2021-06-01 17:48:37 +02:00
Christian Hohnstaedt
915a920de8 cmake: Split CMakeLists.txt into the different sub directories
mv cmake/sphinx-documentation.cmake -> doc/CMakeLists.txt
2021-06-01 17:48:37 +02:00