This adds callbacks to `SpaceType` to make each editor responsible to manage their own .blend I/O, and moves relevant code from `screen.c` to the editors files. Differential Revision: D11069
42 lines
639 B
CMake
42 lines
639 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
../include
|
|
../../blenkernel
|
|
../../blenlib
|
|
../../blenloader
|
|
../../gpu
|
|
../../makesdna
|
|
../../makesrna
|
|
../../windowmanager
|
|
../../../../intern/guardedalloc
|
|
|
|
# dna_type_offsets.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../makesdna/intern
|
|
)
|
|
|
|
|
|
set(SRC
|
|
script_edit.c
|
|
script_ops.c
|
|
space_script.c
|
|
|
|
script_intern.h
|
|
)
|
|
|
|
set(LIB
|
|
)
|
|
|
|
if(WITH_PYTHON)
|
|
list(APPEND INC
|
|
../../python
|
|
)
|
|
add_definitions(-DWITH_PYTHON)
|
|
endif()
|
|
|
|
|
|
blender_add_lib(bf_editor_space_script "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
|
|
|
# dna_type_offsets.h
|
|
add_dependencies(bf_editor_space_script bf_dna)
|