macalimlim / godot-rust-template

A template for godot-rust projects
MIT License
51 stars 22 forks source link

Modified makefile #27

Closed jhessin closed 2 years ago

jhessin commented 3 years ago

make run - now just runs cargo build and copies any targets to the ./lib folder. This is kind of a dirty way of getting this to work on MacOS and should work with any other OS.

make watch - now uses cargo-watch to watch the project, build, and copy the target - same as make run.

macalimlim commented 3 years ago

@jhessin support for MacOS and iOS targets have not been fully integrated into this template. The reason I copy the lib*.so files into the lib folder is to have only one path pointing to the lib*.so file (from game.gdnlib) for a particular platform, regardless if its a debug or release... Currently this template only works for Linux desktops but it can be modified in a way to work also for MacOS and Windows. You can do a separate PR to add the missing MacOS targets (if you want).

macalimlim commented 2 years ago

Closing this issue, the template is now using cargo-make instead of make