Skip to content

Drahiri/gde_example_cmake_reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published