StudioCherno / Walnut

Walnut is a simple application framework for Vulkan and Dear ImGui apps
MIT License
2.06k stars 378 forks source link

Add support for Linux builds #11

Closed bernhardkaindl closed 1 year ago

bernhardkaindl commented 2 years ago

BTW: On adding trailing newlines to the edited files:

On Linux, common editors like Vim automatically add terminating newlines at the end of files.

PS: Just for your information, with the comitted change to Setup.bat, on Linux, it prints this:

scripts/Setup.bat
Download https://premake.github.io for Linux and run it. Best regards, scripts/Setup.bat
bernhardkaindl commented 2 years ago

@TheCherno @jamesthomasgriffin This supports Ubuntu inside of checks for for "gmake2" and "linux", so it does not affect Windows support in any way.

It checks that the needed libs are installed (for Ubuntu) and adds linking these dependencies (vulkan etc).

Once it's merged, more can be done, or I could do more for other Linux distros besides Ubuntu, but this gives already a good start to get Linux support going.

For now, I am waiting until I've seen contributing works.

despian commented 2 years ago

@bernhardkaindl nice work!

@TheCherno I have implemented similar support for building on macos. Is it worth submitting a pr?

homer6 commented 2 years ago

@bernhardkaindl nice work!

@TheCherno I have implemented similar support for building on macos. Is it worth submitting a pr?

@despian yes please!

chendadon commented 2 years ago

@bernhardkaindl nice work!

@TheCherno I have implemented similar support for building on macos. Is it worth submitting a pr?

can you share your version of macos please?