Skip to content

[chore] thirdparty patch file dependencies#1012

Merged
Frenzie merged 2 commits intokoreader:masterfrom
Frenzie:patch-dependencies
Nov 19, 2019
Merged

[chore] thirdparty patch file dependencies#1012
Frenzie merged 2 commits intokoreader:masterfrom
Frenzie:patch-dependencies

Conversation

@Frenzie
Copy link
Copy Markdown
Member

@Frenzie Frenzie commented Nov 18, 2019

I'm going bonkers when a patch file is updated and nothing happens because only CMakeLists.txt is a dependency. This reruns CMake when any file in thirdparty/<dependency> changes. In practice that mostly means *.patch in addition to CMakeLists.txt. There's a cr3.css in kpvclib and that's probably about it, but I'm trying to be forward-thinking here.

I'm going bonkers when a patch file is updated and nothing happens because only CMakeLists.txt is a dependency. This reruns CMake when any file in thirdparty/<dependency> changes. In practice that mostly means *.patch.
@Frenzie Frenzie requested review from NiLuJe and poire-z November 18, 2019 15:01
Copy link
Copy Markdown
Member

@NiLuJe NiLuJe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems harmless enough ;).

Copy link
Copy Markdown
Contributor

@poire-z poire-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the *.* (with a dot needed, and not only *) needed? Parf of Makefile/CMake way of things?

@Frenzie
Copy link
Copy Markdown
Member Author

Frenzie commented Nov 18, 2019

Just * will include the directory thirdparty/freetype/build.

The manual doesn't seem to indicate any other way to exclude directories.

https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html
https://www.gnu.org/software/make/manual/html_node/Wildcard-Examples.html

@NiLuJe
Copy link
Copy Markdown
Member

NiLuJe commented Nov 18, 2019

Do we actually need the wildcard function for a rule prerequisite?

The doc seems to hint that wildcards are expanded automatically in rule prereqs.

@Frenzie
Copy link
Copy Markdown
Member Author

Frenzie commented Nov 18, 2019

To my mind I was more or less following the example from the manual:

objects := $(patsubst %.c,%.o,$(wildcard *.c))

foo : $(objects)
        cc -o foo $(objects)

Which example/explanation are you referring to precisely?

@NiLuJe
Copy link
Copy Markdown
Member

NiLuJe commented Nov 18, 2019

@Frenzie
Copy link
Copy Markdown
Member Author

Frenzie commented Nov 18, 2019

D'oh, I must've overlooked that.

@Frenzie Frenzie merged commit edc756d into koreader:master Nov 19, 2019
@Frenzie Frenzie deleted the patch-dependencies branch November 19, 2019 22:39
Frenzie added a commit to Frenzie/koreader that referenced this pull request Nov 21, 2019
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes koreader#5617.
Frenzie added a commit to koreader/koreader that referenced this pull request Nov 21, 2019
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes #5617.
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes koreader#5617.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants