Advertisement

SDL2 Better cross-platform builds (review)

Started by November 21, 2024 01:07 PM
0 comments, last by morenorarthur 3 days, 6 hours ago

Recently I've decided to remake an old game I did on college. Here is the repo and itch.io:

https://github.com/arthurmoreno/campo-de-batalha

https://arthurmoreno.itch.io/campo-de-batalha

But I am not satisfied with the build / release process I've came up for windows. I would like some advice on how to make it more streamlined and so that development / builds / releases are easy to do both for windows and linux platforms.

One thing that is bogging me is the necessity of copying and past some dll's from the mingw folder (Copy necessary dlls):

copy "C:/msys64/ucrt64/bin/libwinpthread-1.dll" "./build"
copy "C:/msys64/ucrt64/bin/libstdc++-6.dll" "./build"
copy "C:/msys64/ucrt64/bin/libgcc_s_seh-1.dll" "./build"

Note: I am using this project primarily to learn more about the entire process of making a game with SDL2. While I do not plan to frequently release new features for this game (for which a more streamlined release process would be beneficial), I would like to learn how to implement a more standard method of building SDL2 (and eventually SDL3) projects cross-platform for future endeavors.

Thank you!

Advertisement