Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

GDExample with CMake hot-reload

GDExtension C++ example using CMake with hot reloading enabled.

Instruction

  1. Clone repository and enter it.
git clone https://github.com/Drahiri/gde_example_cmake_reload.git
cd gde_example_cmake_reload
  1. Initialize godot-cpp submodule.
cd godot-cpp
git submodule update --init
  1. Add following lines to godot-cpp/CMakeLists.txt at line 129 to match this PR.
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -fno-gnu-unique")
endif()
  1. Leave godot-cpp folder.
cd ..
  1. Create build folder, configure and build project. x is number of jobs.
mkdir build
cd build
cmake .. -GNinja
ninja -jx
  1. Import and open demo project in Godot.

  2. Make changes in gdexample.cpp file. Commenting out _bind_methods() content is good idea.

  3. Rebuild library.

  4. If you commented out _bind_methods() content, in editors' Inspector property Amplitude should disappear.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages