nebiun wrote: ↑Thu Feb 22, 2024 7:13 am
Porting OpenXcom is not so hard.
"Standard" Makefile seem to do his work
Well, sure. The Makefiles I wrote many years ago were intended to "just work" for most things people would want. They were written in a time when most homebrew programmers used .bat files or shell scripts instead of something more portable. What we also did along the way was to add our own compatibility layer to the toolchains and build infrastructure around them to make porting projects that use autotools and latterly cmake to produce a portable build system.
Using a "standard" Makefile seems easy, partly because of course it was meant to be, but it's much better for everyone to use the existing build system when you're porting something like this than to add a new one. Once I patched the CMakeLists.txt and the few things in the openxcom source that aren't available on wii I got something that compiles for gamecube and 3ds for free - no using different Makefiles for different platforms and the code still compiles as is for the existing platforms the project supports.
My problems with the port are related to SDL for Wii:
- No default mouse emulation using wiimote (Do you remember?
)
I do, yes. I've just been a bit buried in a couple of other things that I thought would take much less time than they have. If you have a patch for our SDL port to add default mouse emulation then do please feel free to PR it at
https://github.com/devkitPro/SDL/tree/ogc-sdl-1.2
- And (more hard to solve) no keyboard for input base name
(This is the reason of my SDLkeyboard project)
Plug a usb keyboard in, I'm reasonably sure that works with SDL
Seriously though we also have someone doing something similar for SDL2. Eventually it would probably be good to have something more generic in libogc if that's possible. Another project for another day though.
My openxcom version starts on a Wii.
Have a go with the changes I made to get cmake working. You'll have a much better shot at getting changes merged to the upstream project if they don't affect existing builds and then everyone benefits.
With a SDL library patched from me I'm arrive to the point where I must input the base name and this stop me (at the moment...)
A PR would really be appreciated. It would make everyone's lives easier.