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

Implement CMake, mostly for cross-compiling from non-Windows #11

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Cloudwalk9
Copy link

@Cloudwalk9 Cloudwalk9 commented Oct 29, 2023

This is crude and required a minor code tweak to fix a case sensitivity issue.

I think you have to manually specify the toolchain (e.g. the compiler using CC and CXX environment variables or cmake cache) unless you're using the CMake extension on vscode or codium, and of course you'll need mingw.

I haven't tested the resulting binary, or the system itself on Windows for native compile.

This was done on a burst of energy in an afternoon so I can't promise that I'll return to it.

Wrote this in an afternoon so I could cross-compile from Linux, because I felt like it.

The resulting SCGL.dll is untested at the time of commit, but it will
compile if you have mingw installed. At this time, you must explicitly specify the
compiler if you're not using vscode (or codium) with the CMake extension, which detects
toolchains automagically. Will look into CMake presets if I come back to this.
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.

1 participant