Ancurio / mkxp

Free Software implementation of the Ruby Game Scripting System (RGSS)
GNU General Public License v2.0
511 stars 129 forks source link

mingw-w64: allow cmake cross-compile #165

Closed hanetzer closed 7 years ago

hanetzer commented 7 years ago

Tested on gentoo with x86_64-w64-mingw32 toolchain and libraries.

Signed-off-by: Marty Plummer ntzrmtthihu777@gmail.com

hanetzer commented 7 years ago

There. Its been so long since I touched this repo, everything was fubar'd.

This doesn't build as is atm, requires #undef main before main to work. Unsure how I'd fix that the 'right way' at the moment.

Ancurio commented 7 years ago

thank you. The WinMain issue doesn't seem right, I never encountered that when building with mingw64

hanetzer commented 7 years ago

Yeah, I never had that issue with the adhoc buildscript/Makefile either, so I think something is odd here with cmake and sdl2.