diff options
author | Julian Eisel <julian@blender.org> | 2022-03-14 18:39:42 +0300 |
---|---|---|
committer | Fabian Schempp <fabianschempp@googlemail.com> | 2022-04-11 01:30:40 +0300 |
commit | d0a8f300c13dd01658f79ddf201bd5344320c60f (patch) | |
tree | ef3c1f602a0e6810dbdbe048f01bf077a9d801af /source/blender/editors/physics/CMakeLists.txt | |
parent | d67bca9ee4dd177357d1e2eb02de62e1d69f7c24 (diff) |
RNA: Generate property declerations header, solving msg-bus C++ incompatibility
Lets `makesrna` generate a `RNA_prototypes.h` header with declarations for all
RNA properties. This can be included in regular source files when needing to
reference RNA properties statically.
This solves an issue on MSVC with adding such declarations in functions, like
we used to do. See 800fc1736748. Removes any such declarations and the related
FIXME comments.
Reviewed By: campbellbarton, LazyDodo, brecht
Differential Revision: https://developer.blender.org/D13837
Diffstat (limited to 'source/blender/editors/physics/CMakeLists.txt')
-rw-r--r-- | source/blender/editors/physics/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/physics/CMakeLists.txt b/source/blender/editors/physics/CMakeLists.txt index 42def07072e..ee59efbc925 100644 --- a/source/blender/editors/physics/CMakeLists.txt +++ b/source/blender/editors/physics/CMakeLists.txt @@ -14,6 +14,8 @@ set(INC ../../../../intern/glew-mx ../../../../intern/guardedalloc ../../../../intern/mantaflow/extern + # RNA_prototypes.h + ${CMAKE_BINARY_DIR}/source/blender/makesrna ) set(SRC @@ -54,3 +56,6 @@ endif() blender_add_lib(bf_editor_physics "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") + +# RNA_prototypes.h +add_dependencies(bf_editor_physics bf_rna) |