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

Support for building on native windows with cmake #2052

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

Rob2309
Copy link
Contributor

@Rob2309 Rob2309 commented Mar 7, 2024

This PR aims to support natively building on windows via cmake.
Currently, a debug and release build should work on a windows machine with the required dependencies built from source with cmake. The only external dependency that has to be manually installed is OpenAL.

On top of that, multiple instances of undefined behavior and/or unportable code were fixed.

The cmake option ENABLE_STEAMWORKS was also added and building without steamworks is supported.

@Rob2309 Rob2309 marked this pull request as draft March 7, 2024 16:11
@Rob2309 Rob2309 marked this pull request as ready for review March 21, 2024 14:17
@Rob2309 Rob2309 marked this pull request as draft March 22, 2024 13:43
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd use #ifndef _WIN32 etc. instead here. gettimeofday() is in sys/time.h on macOS too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you reviewed the complete diff? I am using #ifndef WINDOWS.

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.

2 participants