-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Review build systems #6571
Comments
For now let's remove autotools and keep CMake and Visual Studio and Xcode projects. @sezero, would you like to do the honors? Can you prefix each commit with "autotools: " in case we need to roll them back? |
It will be a single commit unless I'm missing something? |
And, what will you do about creating a release tarball, i.e. |
- TODO: update INSTALL.txt to replace autotools with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? Reference issue: libsdl-org#6571
Anyways, I created #6605 as a first shot at it |
@madebr to the rescue? :) |
CMake has CPack to generate binary and source releases. The default source generator is imho a bit lousy because it simply copies everything excluding files matching the ignore list. This blog gives a short tutorial how it can be done. For |
The distribution archives are always made from a clean checkout, so CPack may work fine in this case. Thanks! |
Actually, with autotools complexity gone, I think we can just remove the .git folder and zip up the archive as-is. |
Actually, you can create it with git directly using this one-liner:
The last release added some complexity with |
Sweet! :) |
No worries, I'll take care of it. |
SDL_revision.h is another problem. |
FWIW, I've had good luck with generating project files for both of these IDE's from SDL's CMake project. (e.g. with In my case, I just wanted the IDE projects for working on / debugging SDL, and the CMake-generated ones worked fine for that. Depending on what people are using the Visual Studio and Xcode projects for - maybe there are some use cases where it's better to have a handcrafted .sln / .xcodeproj - dropping them and using CMake to generate them locally might be a possibility. |
Good to know. A generated Visual Studio solution might work. @madebr, do we have the ability to replicate the existing Visual Studio solutions for Win32, UWP, and GDK, using CMake? |
@madebr, I'm about to nuke autotools in SDL3, are you ready for the swarm of people trying to use CMake on random old build environments? :D |
- TODO: update INSTALL.txt to replace the autotools configure instructions with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? - TODO: update / revise github actions, replace autotools-only ones with cmake (e.g.: vmactions.yml for FreeBSD.) Reference issue: libsdl-org#6571
So far, I've only tested the default MSVC Standard desktop configurations. About support of unix-like systems, I think we're in a good position. |
- TODO: update INSTALL.txt to replace the autotools configure instructions with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? - TODO: update / revise github actions, replace autotools-only ones with cmake (e.g.: vmactions.yml for FreeBSD.) Reference issue: libsdl-org#6571
- TODO: update INSTALL.txt to replace the autotools configure instructions with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? - TODO: update / revise github actions, replace autotools-only ones with cmake (e.g.: vmactions.yml for FreeBSD.) Reference issue: libsdl-org#6571
- TODO: update INSTALL.txt to replace the autotools configure instructions with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? - TODO: update / revise github actions, replace autotools-only ones with cmake (e.g.: vmactions.yml for FreeBSD.) Reference issue: libsdl-org#6571
- TODO: update INSTALL.txt to replace the autotools configure instructions with cmake. - TODO: update make build system to provide an equivalent to autotools' `make dist` ? - TODO: update / revise github actions, replace autotools-only ones with cmake (e.g.: vmactions.yml for FreeBSD.) Reference issue: #6571
Review the set of build systems. It would be nice to reduce the number of build scripts and leafy build system files. If we standardize on CMake, what is covered that we can remove?
@libsdl-org/a-team
The text was updated successfully, but these errors were encountered: