diff options
author | Julian Eisel <julian@blender.org> | 2022-03-14 18:39:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-14 18:50:49 +0300 |
commit | 9b298cf3dbec9e246748448cc635a5055fe90c19 (patch) | |
tree | c9fb6ddaf16bec463d9d4dd5a65a8c9d285afc8f /source/blender/windowmanager/CMakeLists.txt | |
parent | cff6eb65804da3a06bde3c9152bec26e01a24992 (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/windowmanager/CMakeLists.txt')
-rw-r--r-- | source/blender/windowmanager/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/windowmanager/CMakeLists.txt b/source/blender/windowmanager/CMakeLists.txt index bd8e97e7177..73a5f1e6f8d 100644 --- a/source/blender/windowmanager/CMakeLists.txt +++ b/source/blender/windowmanager/CMakeLists.txt @@ -29,6 +29,8 @@ set(INC # for writefile.c: dna_type_offsets.h ${CMAKE_BINARY_DIR}/source/blender/makesdna/intern + # RNA_prototypes.h + ${CMAKE_BINARY_DIR}/source/blender/makesrna ) set(SRC @@ -193,3 +195,5 @@ blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") # Needed so we can use dna_type_offsets.h for defaults initialization. add_dependencies(bf_windowmanager bf_dna) +# RNA_prototypes.h +add_dependencies(bf_windowmanager bf_rna) |