Commit Graph

20 Commits

Author SHA1 Message Date
88e4e78db8
Add nlohmann_json dependency. 2021-06-01 18:47:12 +02:00
80e2e9d05d
Re-add -DBOOST_LOG_DYN_LINK
All checks were successful
continuous-integration/drone/push Build is passing
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
c30a8b40be
Older Boost version need log_setup in addition to log.
Some checks failed
continuous-integration/drone/push Build is failing
1.75.0 works without it, 1.74.0 not.
Removed -DBOOST_LOG_DYN_LINK again.
2021-05-31 20:57:36 +02:00
1d02c3bd6d
Add workaround for old CMake←→Boost combinations.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-31 20:15:54 +02:00
ac5b31f2d5
Add logger. 2021-05-31 18:50:41 +02:00
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
11a8989370
CMake: Make GLOB work with new files (most of the time).
All checks were successful
continuous-integration/drone/push Build is passing
Caveats: <https://cmake.org/cmake/help/latest/command/file.html#filesystem>
2021-05-31 11:06:29 +02:00
160ff20387
Revert "Fix pugixml target."
All checks were successful
continuous-integration/drone/push Build is passing
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
2a3e3f87b5
Fix pugixml target. 2021-05-29 21:37:40 +02:00
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
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
d3c3062cc0
Add Termcolor dependency and bundle it in dist/. 2021-05-25 10:55:44 +02:00
4644c2afd4
Support CMake 3.12.
All checks were successful
continuous-integration/drone/push Build is passing
Ubuntu 20.04 has 3.16, so requiring 3.17 is a bit mean.
2021-05-25 07:38:07 +02:00
1979956f03
Add basic search functionality and context output. 2021-05-24 15:35:49 +02:00
6c040fa951
Add first test.
Some checks failed
continuous-integration/drone/push Build is failing
- 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
4e8c6e7489
Add exception for zip processing.
Some checks failed
continuous-integration/drone/push Build is failing
- New dependency: libfmt.
- Translate error messages.
2021-05-21 03:25:42 +02:00
222f802015
Basic zip file support.
All checks were successful
continuous-integration/drone/push Build is passing
Dumping the TOC works.
2021-05-21 01:56:37 +02:00
bfb59da98d
std::filesystem compatibility for older GCC.
All checks were successful
continuous-integration/drone/push Build is passing
The header was in experimental a while ago and the implementation was a
separate library.
2021-05-20 10:37:45 +02:00
94c25552a1
Add translation support, german translation. 2021-05-20 07:09:21 +02:00
678b506a8c
Initial commit.
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00