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:
authorCampbell Barton <ideasman42@gmail.com>2016-06-28 13:05:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-06-28 13:25:52 +0300
commit55546b4e135283f2ec4b5715536e59722c55f11c (patch)
tree31a96606e7a60bb7583da0077683b04ebd765cee /source/blender/makesdna/intern/CMakeLists.txt
parentf181839c572fdffe9554cf7d9e41c7ceffeec02e (diff)
writefile: replace most struct lookups /w constants
Removes many hash lookups per file-save and undo-step.
Diffstat (limited to 'source/blender/makesdna/intern/CMakeLists.txt')
-rw-r--r--source/blender/makesdna/intern/CMakeLists.txt16
1 files changed, 13 insertions, 3 deletions
diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt
index b4ada7ffbf1..0bb6e866bf4 100644
--- a/source/blender/makesdna/intern/CMakeLists.txt
+++ b/source/blender/makesdna/intern/CMakeLists.txt
@@ -56,8 +56,14 @@ add_executable(makesdna ${SRC} ${SRC_DNA_INC})
# Output dna.c
add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
- COMMAND "$<TARGET_FILE:makesdna>" ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
+ OUTPUT
+ ${CMAKE_CURRENT_BINARY_DIR}/dna.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h
+ COMMAND
+ "$<TARGET_FILE:makesdna>"
+ ${CMAKE_CURRENT_BINARY_DIR}/dna.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h
+ ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
DEPENDS makesdna
)
@@ -78,7 +84,11 @@ set(SRC
${SRC_DNA_INC}
)
-set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/dna.c PROPERTIES GENERATED TRUE)
+set_source_files_properties(
+ ${CMAKE_CURRENT_BINARY_DIR}/dna.c
+ ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h
+ PROPERTIES GENERATED TRUE
+)
blender_add_lib(bf_dna "${SRC}" "${INC}" "${INC_SYS}")