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

Replace autotools with cmake #2001

Merged
merged 11 commits into from
Jan 29, 2024

Conversation

bartbes
Copy link
Member

@bartbes bartbes commented Dec 31, 2023

Resolves #1991

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.
CMakeLists.txt Show resolved Hide resolved

configure_file(platform/unix/love.desktop.in love.desktop @ONLY)

install(TARGETS ${LOVE_EXE_NAME} ${LOVE_LIB_NAME})
Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Contributor

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.

CMakeLists.txt Show resolved Hide resolved
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).
@bartbes bartbes marked this pull request as ready for review January 28, 2024 11:00
@bartbes bartbes linked an issue Jan 28, 2024 that may be closed by this pull request
@MikuAuahDark MikuAuahDark merged commit dc83913 into love2d:12.0-development Jan 29, 2024
5 of 6 checks passed
@bartbes bartbes deleted the remove-autotools branch February 11, 2024 14:05
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.

Phase out Autotools Build System
3 participants