Skip to content
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

Resource.dat fixxors. #759

Merged
merged 5 commits into from
Dec 24, 2020
Merged

Resource.dat fixxors. #759

merged 5 commits into from
Dec 24, 2020

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Dec 21, 2020

This fixes an issue reported by @Deledrius in that since #745, the resource.dat file is always regenerated at build time. Also, it introduces the ability for our cmake to automatically install the dependency packages for this process. This is off by default because it seems inappropriate to pip install anything into someone's system Python. Future work when adding the vcpkg submodule will be to selectively enable the facility.

Also fixes an issue in which CI has not tested resource.dat in quite some time...

This does a lot of things. On a high level, it changes the resource.dat
file generation such that it properly gets marked as a GENERATED
dependency of plClient. Further, we correctly chain the vector graphics
and scripts as dependencies of resource.dat such that resource.dat will
only be regenerated by modifying these files. H-uru#745 unintentionally broke
this by removing the default definition of
`CMAKE_RUNTIME_OUTPUT_DIRECTORY` -- CI didn't detect it because it it
defines that variable in the cache.

More sneakily, we now see the beginnings of more automated dependency
management in that our CMake can now install the python packages for
building resource.dat. For now, it is OFF by default - it seems rude to
unilaterally install packages in a system Python install. Future work to
enable a submodule based vcpkg toolchain would use this facility
however.
OK, so, Python 2.7 would have never been used anyway because a call to
`Python3_EXECUTABLE` has been hardcoded for some time now. So, let's use
this as an opportunity to test our auto pip install facillity.
@Hoikas Hoikas requested a review from Deledrius December 21, 2020 02:04
Co-authored-by: Joseph Davies <[email protected]>
@Hoikas Hoikas requested a review from Deledrius December 23, 2020 05:10
@Hoikas Hoikas requested a review from zrax December 23, 2020 19:19
@Hoikas Hoikas merged commit 19615b2 into H-uru:master Dec 24, 2020
@Hoikas Hoikas deleted the moar-resource-dat branch December 24, 2020 01:25
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