-
Notifications
You must be signed in to change notification settings - Fork 39
Use odrcode v5 #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Use odrcode v5 #380
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2664ae9
bump core version
andiwand 86771cd
cpp compiles
andiwand ade4a5b
first working http version
andiwand 3e360f4
Merge branch 'main' of github.com:opendocument-app/OpenDocument.droid…
andiwand b233734
make compile
andiwand bd72cf8
deploy core; cleanup odf loader
andiwand 1aef5f0
deal with assets; cleanup core wrapper
andiwand cb5007a
fix and simplify
andiwand a79d6f8
bump odrcore again; fix http
andiwand 8ff096d
handle presentations and spreadsheets
andiwand 69fe62f
update core
andiwand 3168577
core update and improvements
andiwand 83c09e5
solve colliding assets
andiwand 972f8dd
nuke android pdf2htmlex
andiwand 94d0537
conan remote
andiwand 6192349
fix case sensitivity
andiwand a63ab3a
disable odrcor wvware; bump odrcore version
andiwand ac957ad
allow editing with http
andiwand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,54 @@ | ||
import shutil | ||
|
||
|
||
def deploy(graph, output_folder: str, **kwargs): | ||
conanfile = graph.root.conanfile | ||
conanfile.output.info(f"Custom deployer to {output_folder}") | ||
|
||
symlinks = conanfile.conf.get("tools.deployer:symlinks", check_type=bool, default=True) | ||
arch = conanfile.settings.get_safe("arch") | ||
|
||
conanfile.output.info(f"Symlinks: {symlinks}") | ||
conanfile.output.info(f"Arch: {arch}") | ||
|
||
deps = {dep.ref.name: dep for dep in conanfile.dependencies.values()} | ||
|
||
print(f"Dependencies: {list(deps.keys())}") | ||
|
||
copytree_kwargs = {"symlinks": symlinks, "dirs_exist_ok": True} | ||
|
||
if "odrcore" in deps: | ||
dep = deps["odrcore"] | ||
conanfile.output.info(f"Deploying odrcore to {output_folder}") | ||
shutil.copytree( | ||
f"{dep.package_folder}/share", | ||
f"{output_folder}/odrcore", | ||
**copytree_kwargs, | ||
) | ||
|
||
if "pdf2htmlex" in deps: | ||
dep = deps["pdf2htmlex"] | ||
conanfile.output.info(f"Deploying pdf2htmlex to {output_folder}") | ||
shutil.copytree( | ||
f"{dep.package_folder}/share/pdf2htmlEX", | ||
f"{output_folder}/pdf2htmlex", | ||
**copytree_kwargs, | ||
) | ||
|
||
if "poppler-data" in deps: | ||
dep = deps["poppler-data"] | ||
conanfile.output.info(f"Deploying poppler-data to {output_folder}") | ||
shutil.copytree( | ||
f"{dep.package_folder}/share/poppler", | ||
f"{output_folder}/poppler", | ||
**copytree_kwargs, | ||
) | ||
|
||
if "fontconfig" in deps: | ||
dep = deps["fontconfig"] | ||
conanfile.output.info(f"Deploying fontconfig to {output_folder}") | ||
shutil.copytree( | ||
f"{dep.package_folder}/res/share", | ||
f"{output_folder}/fontconfig", | ||
**copytree_kwargs, | ||
) |
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
[requires] | ||
odrcore/4.1.1@ | ||
odrcore/5.0.0-pre12 | ||
|
||
[generators] | ||
CMakeToolchain | ||
CMakeDeps | ||
|
||
[options] | ||
odrcore/*:shared=True | ||
odrcore/*:with_pdf2htmlEX=True | ||
odrcore/*:with_wvWare=False |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.