samsface / godot-native-example

Example Godot native project using cmake
MIT License
32 stars 11 forks source link

Godot Native Example

In this project:

Buildling on Windows 💰

  1. Download and install:

  2. Open a CMD window and run the following commands:

    git clone https://github.com/samsface/godot-native-example.git
    cd godot-native-example
    debug.bat
  3. Open godot-native-example.sln that should of been generated by running debug.bat in previous step.

  4. Run the godot project in the app directory of this repo. If it prints "ciao" to the output, it worked!

Building on Linux 🐧

  1. Install tooling:

    sudo apt-get update && apt-get install build-essential cmake python3-pip
  2. Clone the project and build

    git clone https://github.com/samsface/godot-native-example.git
    cd godot-native-example
    sh debug.sh
  3. Run the godot project in the app directory of this repo. If it prints "ciao" to the output, it worked!

FAQ

Using the CI:

This project contains a github actions file that will build your project for all supported platforms every time you push changes. To use it, just Fork this project and then just push changes. You'll see the build status in the Actions tab of your fork.