CMAKE: disable animation hot reload by default
parent
5b2a3f2350
commit
7ecb343981
|
@ -171,12 +171,7 @@ find_package(Curses)
|
|||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(HOT_RELOAD_ANIM 1)
|
||||
else()
|
||||
set(HOT_RELOAD_ANIM 0)
|
||||
endif()
|
||||
|
||||
set(HOT_RELOAD_ANIM 0)
|
||||
|
||||
# These includes are needed to let the include for IMPLICIT_DEPENDS for shaders work
|
||||
include_directories(src/modules/video/shaders)
|
||||
|
|
|
@ -12,9 +12,9 @@ Besides writing the animations in lua, the skeleton properties are stored in lua
|
|||
|
||||
*(This is for the C++ code)*
|
||||
|
||||
For debug builds, the animations are linked into a shared object that is loaded into the `AnimationSystem` class. This feature is __not__ active for release builds.
|
||||
You can link the animations into a shared object that is loaded into the `AnimationSystem` class. This feature is __not__ active by default.
|
||||
|
||||
If you would like to disable the hot reload support - call cmake with `-DHOT_RELOAD_ANIM=0`.
|
||||
If you would like to enable the hot reload support - call cmake with `-DHOT_RELOAD_ANIM=1`.
|
||||
|
||||
Besides the dynamic loading of the animation functions, we also install a watch on the dynamic library. Whenever the library is recompiled and relinked, the applications will automatically reload them and present you the latest code changes.
|
||||
|
||||
|
|
|
@ -22,6 +22,10 @@ The project should be buildable with every ide that supports cmake. QTCreator, E
|
|||
* Install vscode [code.visualstudio.com](https://code.visualstudio.com/)
|
||||
* Install Visual Studio (for the compiler)
|
||||
|
||||
Inside vscode you have to install the c++ plugins. The easiest might be to install the c++ plugins from microsoft. Just make sure the cmake plugin is part of the collection.
|
||||
|
||||
If you have problems with the intellisense plugin from microsoft, you can also use the clangd plugin.
|
||||
|
||||
Open your git clone directory in vscode and let it configure via cmake. It will pick ninja and the visual studio compiler automatically.
|
||||
|
||||
## Mac
|
||||
|
|
Loading…
Reference in New Issue