-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pdf2htmlEX and it's asset collection mechanism
- Loading branch information
1 parent
09b6a2e
commit 53769d1
Showing
3 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from conan import ConanFile | ||
from conan.tools.cmake import CMakeToolchain, CMakeDeps | ||
|
||
required_conan_version = ">=2.0.6" | ||
|
||
|
||
class pdf2htmlEXConan(ConanFile): | ||
settings = "os", "compiler", "build_type", "arch" | ||
# Remove pdf2htmlex dep once https://github.com/opendocument-app/OpenDocument.core/pull/380 is merged | ||
requires = "odrcore/4.1.1@", "pdf2htmlex/0.18.8.rc1-20240814-git" | ||
|
||
def generate(self): | ||
deps = CMakeDeps(self) | ||
deps.generate() | ||
tc = CMakeToolchain(self) | ||
|
||
# @TODO: figure out how to use POPPLER_DATA_DIR exported by poppler-data | ||
tc.variables["POPPLER_DATA_RES_DIR"] = self.dependencies['poppler-data'].cpp_info.resdirs[0] | ||
tc.variables["PDF2HTMLEX_RES_DIR"] = self.dependencies['pdf2htmlex'].cpp_info.resdirs[0] | ||
tc.variables["FONTCONFIG_RES_DIR"] = self.dependencies['fontconfig'].cpp_info.resdirs[0] | ||
tc.generate() | ||
|
This file was deleted.
Oops, something went wrong.