godotengine / godot-headers

Headers for the Godot API supplied by the GDNative module.
MIT License
381 stars 91 forks source link

Windows Project Files #17

Closed jychongMidas closed 6 years ago

jychongMidas commented 6 years ago

Hello,

A big percentage of gamedevs and majority of games out there are on Windows platforms, especially for Steam. This means ideally we do need some good docs on how to setup and build GDNative with Visual Studio. Can you provide some example build scripts, cmake etc. to show how to do this? We are not on linux and neither are our customers.

Thanks

BastiaanOlij commented 6 years ago

I realize this is an old post, so just reacting and closing. I'm on Windows and do 99% of my GDNative work on Windows but I use the same Scons build system as Godot does. There is a write up of this in the official Godot documentation: https://docs.godotengine.org/en/3.0/tutorials/plugins/gdnative/gdnative-c-example.html

If you rather use Visual Studio project files I think it should be as simple as creating an empty DLL project file from the DLL template and just start with the same C source code as in the readme. There is no magic going on here.