Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 1,233 Lines • ▼ Show 20 Lines | |||||
| # ----------------------------------------------------------------------------- | # ----------------------------------------------------------------------------- | ||||
| # Configure OpenGL | # Configure OpenGL | ||||
| if(WITH_OPENGL) | if(WITH_OPENGL) | ||||
| add_definitions(-DWITH_OPENGL) | add_definitions(-DWITH_OPENGL) | ||||
| endif() | endif() | ||||
| # ----------------------------------------------------------------------------- | #----------------------------------------------------------------------------- | ||||
| # Configure Vulkan. | # Configure Vulkan. | ||||
| if(WITH_VULKAN_BACKEND) | if(WITH_VULKAN_BACKEND) | ||||
| add_definitions(-DWITH_VULKAN_BACKEND) | list(APPEND BLENDER_GL_LIBRARIES ${VULKAN_LIBRARIES}) | ||||
| if(APPLE) | |||||
| list(APPEND BLENDER_GL_LIBRARIES ${MOLTENVK_LIBRARIES}) | |||||
| endif() | |||||
LazyDodo: Just by toggling `WITH_VULKAN_BACKEND` on/off in cmake, this will trigger a complete rebuild of… | |||||
Done Inline ActionsWill add them to the specific modules (ghost, window_manager and gpu) seems to be using it. When metal is a bit further we might want to do that also. jbakker: Will add them to the specific modules (ghost, window_manager and gpu) seems to be using it. | |||||
| endif() | endif() | ||||
| # ----------------------------------------------------------------------------- | # ----------------------------------------------------------------------------- | ||||
| # Configure Metal | # Configure Metal | ||||
| if(WITH_METAL_BACKEND) | if(WITH_METAL_BACKEND) | ||||
| add_definitions(-DWITH_METAL_BACKEND) | add_definitions(-DWITH_METAL_BACKEND) | ||||
| ▲ Show 20 Lines • Show All 766 Lines • Show Last 20 Lines | |||||
Just by toggling WITH_VULKAN_BACKEND on/off in cmake, this will trigger a complete rebuild of blender due to the use of a global define, i think we can do better here.