pguyot / Einstein

NewtonOS running on other operating systems
GNU General Public License v2.0
412 stars 57 forks source link

Windows command line build. #142

Closed MatthiasWM closed 2 years ago

MatthiasWM commented 2 years ago

This is a complete and tested build setup for MS Windows.

It's by far easier to build Einstein from the command line than describing every button click in the VisualStudio user interface. This setup will also build FLTK and Newt64 without the need to install either. The instructions will build in Release mode for Intel 64bit processors.

pguyot commented 2 years ago

Do you think we could add Windows to the CI? GitHub supports Windows 2019 and Windows 2022.

MatthiasWM commented 2 years ago

Yes, that will work. It's one of the reasons for this test. I also looked into Continuous Distribution as well, so we can easily release new version for all platforms and publish them here on GitHub. The exact same order of commands should build the Linux and MacOS version as well, including your tests. Testing it right now.

MatthiasWM commented 2 years ago

Current settings are too strict for my Ubuntu version and I get errors for not using the return value from ::write() etc. . But the basic principle works very well ;-)

pguyot commented 2 years ago

Excellent. We could also look at generating some code coverage report and then start testing things beyond pure ARM emulation as the application includes more features now such as networking or the toolkit. The initial tests were manually run and some have not been automated.

MatthiasWM commented 2 years ago

I don't know much about testing processes, but I'll be happy to learn.

MatthiasWM commented 2 years ago

Yay, CI on Windows works!