Due to changes in the build environment shader_builder wasn't able to compile on macOs. This patch reverts several recent changes to CMake files. *dbb2844ed9*94817f64b9*1b6cd937ffThe idea is that in the near future shader_builder will run on the buildbot as part of any regular build to ensure that changes to the CMake doesn't break shader_builder and we only detect it after a few days. Pull Request: https://projects.blender.org/blender/blender/pulls/115929
78 lines
1.3 KiB
CMake
78 lines
1.3 KiB
CMake
# SPDX-FileCopyrightText: 2023 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(INC
|
|
.
|
|
../../blenkernel
|
|
../../editors/include
|
|
../../gpu
|
|
../../imbuf
|
|
)
|
|
|
|
set(INC_SYS
|
|
${PYTHON_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(SRC
|
|
gpu_py.cc
|
|
gpu_py_api.cc
|
|
gpu_py_batch.cc
|
|
gpu_py_buffer.cc
|
|
gpu_py_capabilities.cc
|
|
gpu_py_element.cc
|
|
gpu_py_framebuffer.cc
|
|
gpu_py_matrix.cc
|
|
gpu_py_offscreen.cc
|
|
gpu_py_platform.cc
|
|
gpu_py_select.cc
|
|
gpu_py_shader.cc
|
|
gpu_py_shader_create_info.cc
|
|
gpu_py_state.cc
|
|
gpu_py_texture.cc
|
|
gpu_py_types.cc
|
|
gpu_py_uniformbuffer.cc
|
|
gpu_py_vertex_buffer.cc
|
|
gpu_py_vertex_format.cc
|
|
gpu_py_compute.cc
|
|
|
|
gpu_py.h
|
|
gpu_py_api.h
|
|
gpu_py_batch.h
|
|
gpu_py_buffer.h
|
|
gpu_py_capabilities.h
|
|
gpu_py_element.h
|
|
gpu_py_framebuffer.h
|
|
gpu_py_matrix.h
|
|
gpu_py_offscreen.h
|
|
gpu_py_platform.h
|
|
gpu_py_select.h
|
|
gpu_py_shader.h
|
|
gpu_py_state.h
|
|
gpu_py_texture.h
|
|
gpu_py_types.h
|
|
gpu_py_uniformbuffer.h
|
|
gpu_py_vertex_buffer.h
|
|
gpu_py_vertex_format.h
|
|
gpu_py_compute.h
|
|
)
|
|
|
|
set(LIB
|
|
${PYTHON_LINKFLAGS}
|
|
${PYTHON_LIBRARIES}
|
|
PRIVATE bf::blenlib
|
|
PRIVATE bf::dna
|
|
PRIVATE bf::intern::guardedalloc
|
|
)
|
|
|
|
if(WITH_OPENGL_BACKEND)
|
|
list(APPEND INC_SYS
|
|
${Epoxy_INCLUDE_DIRS}
|
|
)
|
|
list(APPEND LIB
|
|
${Epoxy_LIBRARIES}
|
|
)
|
|
endif()
|
|
|
|
blender_add_lib(bf_python_gpu "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|