-
Notifications
You must be signed in to change notification settings - Fork 428
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
Replace autotools with cmake #2001
Replace autotools with cmake #2001
Conversation
Probably best illustrated by the fact it's still called OSX, rather than macOS.
Previously there was an early return, trying to match the same thing. Making this explicit allows me to more easily add a linux version.
Used for the ppa builds, so it's nice if they still work.
Since I cannot easily change the variable used there, update the autotools codepath to insert the CMake variable.
Not libliblove.so, but liblove-12.0.so, like with autotools. Note that no liblove.so symlink is created.
|
||
configure_file(platform/unix/love.desktop.in love.desktop @ONLY) | ||
|
||
install(TARGETS ${LOVE_EXE_NAME} ${LOVE_LIB_NAME}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autotools also installs a liblove.so
symlink. As nothing explicitly links against it (except user code?) I'm don't mind skipping that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would that be for allowing require("love")
to work from a standalone Lua executable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of, it's still not in the normal lua search paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They'll have to do package.preload.love = package.loadlib("path/to/liblove-12.0.so", "luaopen_love")
before doing require("love")
from my understanding, at least.
And automatically get the timestamp for the changelog too. That does require an update to cmake 3.7, but as far as I can tell we never use a cmake version older than 3.16 (ubuntu 20.04).
Resolves #1991