-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathproject_info.cpp.in
More file actions
61 lines (49 loc) · 1.15 KB
/
project_info.cpp.in
File metadata and controls
61 lines (49 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <odr/internal/project_info.hpp>
namespace odr::internal {
const char *project_info::version() noexcept {
return "${CMAKE_PROJECT_VERSION}";
}
bool project_info::is_debug() noexcept {
#ifdef NDEBUG
return false;
#else
return true;
#endif
}
bool project_info::has_wvware() noexcept {
#ifdef ODR_WITH_WVWARE
return true;
#else
return false;
#endif
}
bool project_info::has_pdf2htmlex() noexcept {
#ifdef ODR_WITH_PDF2HTMLEX
return true;
#else
return false;
#endif
}
bool project_info::has_libmagic() noexcept {
#ifdef ODR_WITH_LIBMAGIC
return true;
#else
return false;
#endif
}
const char *project_info::odr_data_path() noexcept {
return "${ODR_INSTALL_ODR_DATA_PATH}";
}
const char *project_info::fontconfig_data_path() noexcept {
return "${ODR_INSTALL_FONTCONFIG_DATA_PATH}";
}
const char *project_info::poppler_data_path() noexcept {
return "${ODR_INSTALL_POPPLER_DATA_PATH}";
}
const char *project_info::pdf2htmlex_data_path() noexcept {
return "${ODR_INSTALL_PDF2HTMLEX_DATA_PATH}";
}
const char *project_info::libmagic_database_path() noexcept {
return "${ODR_INSTALL_LIBMAGIC_DATABASE_PATH}";
}
} // namespace odr::internal