Skip to content

Commit

Permalink
Removed dependency on libtiff
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatena authored and supermerill committed Aug 1, 2024
1 parent 905a049 commit 5e0f604
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
15 changes: 0 additions & 15 deletions deps/+TIFF/TIFF.cmake

This file was deleted.

4 changes: 2 additions & 2 deletions deps/+wxWidgets/wxWidgets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ add_cmake_project(wxWidgets
-DwxUSE_REGEX=OFF
-DwxUSE_LIBXPM=builtin
-DwxUSE_LIBJPEG=sys
-DwxUSE_LIBTIFF=sys
-DwxUSE_LIBTIFF=OFF
-DwxUSE_EXPAT=sys
-DwxUSE_LIBSDL=OFF
-DwxUSE_XTEST=OFF
-DwxUSE_GLCANVAS_EGL=OFF
-DwxUSE_WEBREQUEST=OFF
)

set(DEP_wxWidgets_DEPENDS ZLIB PNG EXPAT TIFF JPEG NanoSVG)
set(DEP_wxWidgets_DEPENDS ZLIB PNG EXPAT JPEG NanoSVG)
7 changes: 0 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ if (SLIC3R_GUI)
endif()

find_package(JPEG MODULE QUIET)
find_package(TIFF MODULE QUIET) # Tiff exported config is broken for static build
find_package(NanoSVG REQUIRED)

string(REGEX MATCH "wxpng" WX_PNG_BUILTIN ${wxWidgets_LIBRARIES})
Expand All @@ -77,12 +76,6 @@ if (SLIC3R_GUI)
list(APPEND wxWidgets_LIBRARIES ${PNG_LIBRARIES})
endif ()

string(REGEX MATCH "wxtiff" WX_TIFF_BUILTIN ${wxWidgets_LIBRARIES})
if (TIFF_FOUND AND NOT WX_TIFF_BUILTIN)
list(FILTER wxWidgets_LIBRARIES EXCLUDE REGEX tiff)
list(APPEND wxWidgets_LIBRARIES ${TIFF_LIBRARIES})
endif ()

string(REGEX MATCH "wxjpeg" WX_JPEG_BUILTIN ${wxWidgets_LIBRARIES})
if (JPEG_FOUND AND NOT WX_JPEG_BUILTIN)
list(FILTER wxWidgets_LIBRARIES EXCLUDE REGEX jpeg)
Expand Down

0 comments on commit 5e0f604

Please sign in to comment.