-
Notifications
You must be signed in to change notification settings - Fork 59
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
Update SDL and fix windows builds #172
Conversation
This change is to be commited alongside the changes in splashkit-external
Also update the linker flags to link with the Msys provided libs
We need to keep the lib/win64 libraries as these are used in the deploy to avoid people having to install the different package separately (though maybe we should change this) Have a look at the cmake file in the scripts/cmake/libsplashkit subfolder and copy the idea of using the pacman installed sdl libraries. |
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.
- Retain libraries for now
- Update projects to use pacman installed libraries
This reverts commit 204750d.
eb24cd6
to
aa87f1f
Compare
When changing over to using pkg-config for configuring the windows builds, it added the -mwindows link flag. This causes the compiler to load the problem via WinMain rather then main. However SDL2 is able to provide a WinMain which does windows specific setup then calls main as expected on unix system. In order to use it we need to include the SDL header where the test main functions are defined.
I believe this is now done. Check the commit description in regards to why the SDL headers have been added to the test main files. In regrads to the CI failures, the macOS build depends on the changes in splashkit-external before it'll pass |
Description
This is the sibling PR to splashkit-external#7. Additionally this PR removes linking to sqlite for windows, removes the prebuilt dependencies for windows (talked to Andrew, these are redundant as we can use the system libraries from Msys2) and updates the cmake minimum version (removes a deprecation warning).
Untested for MacOS
Type of change
expected)
How Has This Been Tested?
Successfully builds tests on Linux and Windows
Testing Checklist
Checklist