Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-03-14 18:54:46 +0300
committerJulian Eisel <julian@blender.org>2022-03-14 19:08:46 +0300
commita5578351c38e2b2bb45d940a2fc57354e5fe3a5e (patch)
tree3d6b5d275f27f6b549772586c2e3af59ea728a1d /source/blender/editors/sound
parentcc98b40f870c39a997cf99412b308b8a0e82ed44 (diff)
Auto-generate RNA-structs declarations in `RNA_prototypes.h`
So far it was needed to declare a new RNA struct to `RNA_access.h` manually. Since 9b298cf3dbec we generate a `RNA_prototypes.h` for RNA property declarations. Now this also includes the RNA struct declarations, so they don't have to be added manually anymore. Differential Revision: https://developer.blender.org/D13862 Reviewed by: brecht, campbellbarton
Diffstat (limited to 'source/blender/editors/sound')
-rw-r--r--source/blender/editors/sound/CMakeLists.txt5
-rw-r--r--source/blender/editors/sound/sound_ops.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/sound/CMakeLists.txt b/source/blender/editors/sound/CMakeLists.txt
index be056c176c9..34607610250 100644
--- a/source/blender/editors/sound/CMakeLists.txt
+++ b/source/blender/editors/sound/CMakeLists.txt
@@ -10,6 +10,8 @@ set(INC
../../sequencer
../../windowmanager
../../../../intern/guardedalloc
+ # RNA_prototypes.h
+ ${CMAKE_BINARY_DIR}/source/blender/makesrna
)
set(INC_SYS
@@ -49,3 +51,6 @@ if(WITH_CODEC_SNDFILE)
endif()
blender_add_lib(bf_editor_sound "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
+
+# RNA_prototypes.h
+add_dependencies(bf_editor_sound bf_rna)
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index 29a63b102ec..a63ed142ed8 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -34,6 +34,7 @@
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
+#include "RNA_prototypes.h"
#include "SEQ_iterator.h"
#include "SEQ_utils.h"