These warnings can reveal errors in logic, so quiet them by checking if the features are enabled before using variables or by assigning empty strings in some cases. - Check CMAKE_THREAD_LIBS_INIT is set before use as CMake docs note that this may be left unset if it's not needed. - Remove BOOST/OPENVDB/VULKAN references when disable. - Define INC_SYS even when empty. - Remove PNG_INC from freetype (not defined anywhere).
44 lines
653 B
CMake
44 lines
653 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(INC_SYS
|
|
)
|
|
|
|
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)
|