Skip to content

Commit

Permalink
vksccube: Remove image dump support
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasMagnus committed Jan 7, 2025
1 parent f56492c commit 3374a4a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 251 deletions.
9 changes: 0 additions & 9 deletions sccube/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ endif()
include(CMakeDependentOption)

option(COMPILE_CUBE_SHADERS "Compile GLSL shaders to SPIR-V" OFF)
option(BUILD_IMAGE_DUMP_SUPPORT "Build Image dump support" ON)
option(BUILD_WSI_DISPLAY_SUPPORT "Build DISPLAY WSI support" ON)
cmake_dependent_option(BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON "VKSC_SYSTEM_LINUX_LIKE" OFF)
cmake_dependent_option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON "VKSC_SYSTEM_LINUX_LIKE" OFF)
Expand All @@ -29,9 +28,6 @@ cmake_dependent_option(BUILD_WSI_DIRECTFB_SUPPORT "Build DirectFB WSI support" O
cmake_dependent_option(BUILD_WSI_WIN32_SUPPORT "Build Win32 WSI support" ON "WIN32" OFF)

# Collect enabled back-ends
if(BUILD_IMAGE_DUMP_SUPPORT)
list(APPEND ENABLED_CUBE_PLATFORMS CUBE_USE_IMAGE_DUMP)
endif()
if(BUILD_WSI_DISPLAY_SUPPORT)
list(APPEND ENABLED_CUBE_PLATFORMS VK_USE_PLATFORM_DISPLAY_KHR)
endif()
Expand Down Expand Up @@ -81,10 +77,6 @@ if(COMPILE_CUBE_SHADERS)
)
endif()

if(BUILD_IMAGE_DUMP_SUPPORT)
find_path(STB_INCLUDE_DIR stb_image_write.h REQUIRED
PATH_SUFFIXES include)
endif()
if(BUILD_WSI_XCB_SUPPORT)
pkg_check_modules(XCB REQUIRED IMPORTED_TARGET xcb)
endif()
Expand Down Expand Up @@ -228,7 +220,6 @@ target_compile_definitions(vksccube PRIVATE
target_include_directories(vksccube PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../cube # xyz_loader.h, linmath.h, etc.
${CMAKE_CURRENT_BINARY_DIR} # pipeline_cache.h pipeline_offline_info.h
$<$<BOOL:${BUILD_IMAGE_DUMP_SUPPORT}>:${STB_INCLUDE_DIR}>
$<$<BOOL:${BUILD_WSI_WAYLAND_SUPPORT}>:${CMAKE_CURRENT_BINARY_DIR}>
)
target_link_libraries(vksccube PRIVATE
Expand Down
Loading

0 comments on commit 3374a4a

Please sign in to comment.