Martchus
16f17fb9de
Make feature detection for thead local work with MSVC
2023-01-26 22:20:20 +01:00
Martchus
e02fed2b57
Add directories of Visual Studio to `.gitignore`
2023-01-26 22:18:43 +01:00
Martchus
16782fc547
Improve formatting in `.gitignore`
2023-01-26 22:18:22 +01:00
Martchus
81618a3468
Expose package version via `use_package` function
2023-01-22 23:01:10 +01:00
Martchus
bdc96ade41
Update copyright notice
2023-01-17 18:34:13 +01:00
Martchus
23ca57740b
Apply cmake-format
2022-12-24 23:15:47 +01:00
Martchus
c48816b243
Move CMake code for enabling warnings into separate module and function
2022-12-24 23:15:24 +01:00
Martchus
d9eb99fca1
Allow to keep CMake's CXX_STANDARD property empty
...
This can be useful to e.g. specify the standard manually or to just stick
to the compiler's default.
2022-12-23 20:52:00 +01:00
Martchus
1aba9f5f6f
Allow setting Windows/MacOS icon paths to avoid conversion
...
This makes it possible to have an own version of the icon for those
platforms instead of relying on an automatic conversion from the generic
PNG icon.
2022-12-22 23:28:05 +01:00
Martchus
d8c38699ba
Avoid warning about unqualified std cast
2022-11-04 16:50:13 +01:00
Martchus
a9ea4f4f47
Bump patch version
2022-11-04 16:49:25 +01:00
Martchus
59217e9985
Fix typo
2022-10-30 21:36:43 +01:00
Martchus
7f782cdb28
Add CMake presets
2022-10-30 21:36:08 +01:00
Martchus
913b6e7d65
Apply CMake format
2022-10-16 15:04:52 +02:00
Martchus
e502269d50
Run cmake-format on tests specified via `QT_TESTS` variable
2022-10-16 15:04:38 +02:00
Martchus
3f072549a6
Detect whether GPL license version is "-or-later" automatically
2022-10-13 00:03:04 +02:00
Martchus
aa31d441d7
Avoid guessing release data for AppStream file, rely on explicit meta-data
2022-10-12 22:55:56 +02:00
Martchus
804852b95e
Do not exclude appstream validation from checks as errors should be handled
2022-10-11 21:03:17 +02:00
Martchus
d05677e3b5
Prevent AppStream validation error `asv-release-time-missing`
...
* Avoid hard-coding and additional steps in the release workflow by simply
considering the day of the last modification the release date
* See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 21:00:16 +02:00
Martchus
da431580d4
Prevent AppStream validation error `asv-cid-desktopapp-is-not-rdns`
...
See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 20:58:21 +02:00
Martchus
fdd6af1b2c
Document appstreamcli dependency
2022-10-11 19:29:23 +02:00
Martchus
4a7a9ec32d
Add build system check to validate appstream files
...
* Exclude new tests from `check` target for now as they are currently
failing
* See https://github.com/Martchus/syncthingtray/issues/158
2022-10-11 19:25:17 +02:00
Martchus
0cf59b654b
Make `isEnvVariableSet()` public API
2022-10-08 22:29:32 +02:00
Martchus
faaa40100c
Allow using functions for adding desktop/appstream file independently
2022-10-08 21:55:24 +02:00
Martchus
6962729037
Bump minor version
2022-10-08 21:54:03 +02:00
Martchus
e2c38fd65b
Update Gentoo overlay links
2022-10-03 13:41:46 +02:00
Martchus
353a74fa96
Avoid separating version parts with dots in DLL name
...
It looks better to not use dots here as a dot already separates the
extension.
2022-09-11 13:45:07 +02:00
Martchus
24e070fd15
Bump patch version
2022-09-11 13:41:57 +02:00
Martchus
3a9a9c6f36
Apply cmake-format
2022-08-22 21:47:19 +02:00
Martchus
70e6ef4b7b
Avoid redundant definition of appstream file path
2022-08-22 21:47:08 +02:00
Martchus
9141fcdfd8
Skip creation of desktop/appstream files if not building with GUI support
2022-08-20 18:13:08 +02:00
Martchus
42db96705e
Add formatting for `DateTimeExpression`
2022-08-13 14:41:24 +02:00
Martchus
5acf422f71
Add useful operators to `DateTimeExpression`
...
* Add serialization back to string, useful for implementing
`TagValue::toString()`
* Add equality comparition
2022-08-13 14:10:40 +02:00
Martchus
4911d16129
Add useful shorthands to `DateTimeParts`
2022-08-13 14:08:46 +02:00
Martchus
3a06641bb9
Improve docs for `DateTimeExpression`
2022-08-13 14:07:57 +02:00
Martchus
5fe03c23a2
Rename `DateTimeParts::Millisecond` to `…::SubSecond`
...
We're currently just tracking whether the second has a fraction so this is
more fitting.
2022-08-13 14:07:37 +02:00
Martchus
f20d596785
Add `DateTimeExpression` to keep track of parsed timestamp parts
...
The existing timestamp parsers already internally keep track what parts
have been parsed via an index variable. This change exposes this
information as it can sometimes be useful to know what parts were actually
present in the timestamp.
2022-08-12 20:45:06 +02:00
Martchus
fea69428d1
Apply cmake-format
2022-08-11 23:29:37 +02:00
Martchus
aa4be0ef70
Fix build errors with CMake 3.24.0
...
See note in comment; concrete example of build error (when building
syncthingtray against qtforkawesome built with CMake 3.24.0):
```
CMake Error at plasmoid/lib/CMakeLists.txt:15 (find_package):
Found package configuration file:
/usr/share/qtquickforkawesome-git/cmake/qtquickforkawesome-gitConfig.cmake
but it set qtquickforkawesome-git_FOUND to FALSE so package
"qtquickforkawesome-git" is considered to be NOT FOUND. Reason given by
package:
The following imported targets are referenced, but are missing:
qtforkawesome-git
```
2022-08-09 20:51:42 +02:00
Martchus
0c6fa07b53
Add `Argument::addSubArguments()` and improve related documentation
2022-08-06 19:14:02 +02:00
Martchus
d2873e451d
Bump minor version
2022-08-06 19:05:02 +02:00
Martchus
a1aef36c83
Add `checkFlagEnum()` and tests for `flagenumclass.h`
2022-07-29 22:01:51 +02:00
Martchus
82f835546e
Bump minor version
2022-07-29 22:01:16 +02:00
Martchus
fe6ad81340
Fix copy helper for large data sizes on 32-bit platforms
...
On 32-bit platforms `std::size_t` is just 4 bytes big which is not enough
to handle large data sizes. Using `std::streamsize` would likely be most
appropriate but switching signdness is likely not the best idea for
compatibility and it would mean a comparison with different signdness
because the buffer size is still `std::size_t`. So using `std::uint64_t`
now.
2022-07-14 00:30:40 +02:00
Martchus
7db3cfc274
Bump patch version
2022-07-14 00:25:59 +02:00
Martchus
639018285d
Fix typos
2022-06-26 11:48:44 +02:00
Martchus
8f4ca38c69
Update documentation of argument parser
2022-06-26 11:45:13 +02:00
Martchus
3c769fa242
Add greedy-flag for argument parser
...
This is useful if one needs to pass subsequent arguments as-is to another
nested argument parser.
2022-06-26 11:24:36 +02:00
Martchus
08194f5d32
Bump minor version
2022-06-26 11:19:03 +02:00
Martchus
3444e4bbb1
Improve argument parser tests
...
* Use auto
* Use `CPPUNIT_ASSERT_EQUAL` with `std::string_view` instead of `strcmp`
for better error messages in case of a failure
* Avoid instantiating an `std::string` in checks using `std::string_view`
instead
2022-06-26 11:18:36 +02:00