tastytea
88e4e78db8
Add nlohmann_json dependency.
2021-06-01 18:47:12 +02:00
tastytea
80e2e9d05d
Re-add -DBOOST_LOG_DYN_LINK
...
continuous-integration/drone/push Build is passing
Details
It seems we still need it. The combination of Boost 1.65.1 and CMake 3.12
does not work otherwise. Not sure whose fault it is.
2021-05-31 21:20:41 +02:00
tastytea
c30a8b40be
Older Boost version need log_setup in addition to log.
...
continuous-integration/drone/push Build is failing
Details
1.75.0 works without it, 1.74.0 not.
Removed -DBOOST_LOG_DYN_LINK again.
2021-05-31 20:57:36 +02:00
tastytea
1d02c3bd6d
Add workaround for old CMake←→Boost combinations.
continuous-integration/drone/push Build is failing
Details
2021-05-31 20:15:54 +02:00
tastytea
ac5b31f2d5
Add logger.
2021-05-31 18:50:41 +02:00
tastytea
cf583c6d7f
Don't compile sources twice.
...
Not sure why it would compile them twice if they are set to PUBLIC, but okay. 🤷
2021-05-31 17:24:08 +02:00
tastytea
11a8989370
CMake: Make GLOB work with new files (most of the time).
...
continuous-integration/drone/push Build is passing
Details
Caveats: <https://cmake.org/cmake/help/latest/command/file.html#filesystem >
2021-05-31 11:06:29 +02:00
tastytea
160ff20387
Revert "Fix pugixml target."
...
continuous-integration/drone/push Build is passing
Details
pugixml 1.8.1 (the version in Ubuntu bionic) does not have that target.
This reverts commit 2a3e3f87b5
.
2021-05-29 22:10:21 +02:00
tastytea
2a3e3f87b5
Fix pugixml target.
2021-05-29 21:37:40 +02:00
tastytea
00e3edb9f2
Only search files in spine, in the right order.
...
The spine lists all content documents in their linear reading order. So we're
finally getting our results in the right order! 🎉
Since we skip the images and fonts, which usually make up the most bytes in an
EPUB file, the performance increase is immense. I measured 60-70% in a very
short test.
Closes: #1
2021-05-29 17:34:43 +02:00
tastytea
fc0aa02bc9
Use threads if more than one input file is searched.
...
Use 75% of the available threads (rounded up).
Closes: #4
2021-05-26 17:50:52 +02:00
tastytea
d3c3062cc0
Add Termcolor dependency and bundle it in dist/.
2021-05-25 10:55:44 +02:00
tastytea
4644c2afd4
Support CMake 3.12.
...
continuous-integration/drone/push Build is passing
Details
Ubuntu 20.04 has 3.16, so requiring 3.17 is a bit mean.
2021-05-25 07:38:07 +02:00
tastytea
1979956f03
Add basic search functionality and context output.
2021-05-24 15:35:49 +02:00
tastytea
6c040fa951
Add first test.
...
continuous-integration/drone/push Build is failing
Details
- Compile everything in src/ except main.cpp into a static library
- Link the static library into tests
- Add test for zip::list()
2021-05-21 09:27:31 +02:00
tastytea
4e8c6e7489
Add exception for zip processing.
...
continuous-integration/drone/push Build is failing
Details
- New dependency: libfmt.
- Translate error messages.
2021-05-21 03:25:42 +02:00
tastytea
222f802015
Basic zip file support.
...
continuous-integration/drone/push Build is passing
Details
Dumping the TOC works.
2021-05-21 01:56:37 +02:00
tastytea
bfb59da98d
std::filesystem compatibility for older GCC.
...
continuous-integration/drone/push Build is passing
Details
The header was in experimental a while ago and the implementation was a
separate library.
2021-05-20 10:37:45 +02:00
tastytea
94c25552a1
Add translation support, german translation.
2021-05-20 07:09:21 +02:00
tastytea
678b506a8c
Initial commit.
...
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00