Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-01-07 21:17:10 +0300
committerVojtech Kral <vojtech@kral.hk>2019-01-09 20:43:29 +0300
commitcde0aa4443b43b21956b12e932c5d70e3924a4db (patch)
tree29298a469087af63522d5d9e0e53e88c7a2a6cf4 /deps
parent5aec48418a0a55c0a9d5d9df4f6f4e680647fcee (diff)
Fix: wxWidgets 3.0 back-compat
Fix #1599
Diffstat (limited to 'deps')
-rw-r--r--deps/CMakeLists.txt1
-rw-r--r--deps/deps-linux.cmake14
2 files changed, 12 insertions, 3 deletions
diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt
index 1b23c5864..386320d81 100644
--- a/deps/CMakeLists.txt
+++ b/deps/CMakeLists.txt
@@ -33,6 +33,7 @@ endif ()
set(DESTDIR "${CMAKE_CURRENT_BINARY_DIR}/destdir" CACHE PATH "Destination directory")
option(DEP_DEBUG "Build debug variants (only applicable on Windows)" ON)
+option(DEP_WX_STABLE "Build against wxWidgets stable 3.0 as opposed to default 3.1 (Linux only)" OFF)
message(STATUS "Slic3r deps DESTDIR: ${DESTDIR}")
message(STATUS "Slic3r deps debug build: ${DEP_DEBUG}")
diff --git a/deps/deps-linux.cmake b/deps/deps-linux.cmake
index 3f504b400..bf39f59e7 100644
--- a/deps/deps-linux.cmake
+++ b/deps/deps-linux.cmake
@@ -88,16 +88,24 @@ ExternalProject_Add(dep_libcurl
INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
)
+if (DEP_WX_STABLE)
+ set(DEP_WX_URL "https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.4/wxWidgets-3.0.4.tar.bz2")
+ set(DEP_WX_HASH "SHA256=96157f988d261b7368e5340afa1a0cad943768f35929c22841f62c25b17bf7f0")
+else ()
+ set(DEP_WX_URL "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.1/wxWidgets-3.1.1.tar.bz2")
+ set(DEP_WX_HASH "SHA256=c925dfe17e8f8b09eb7ea9bfdcfcc13696a3e14e92750effd839f5e10726159e")
+endif()
+
ExternalProject_Add(dep_wxwidgets
EXCLUDE_FROM_ALL 1
- URL "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.1/wxWidgets-3.1.1.tar.bz2"
- URL_HASH SHA256=c925dfe17e8f8b09eb7ea9bfdcfcc13696a3e14e92750effd839f5e10726159e
+ URL "${DEP_WX_URL}"
+ URL_HASH "${DEP_WX_HASH}"
BUILD_IN_SOURCE 1
PATCH_COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/wxwidgets-pngprefix.h" src/png/pngprefix.h
CONFIGURE_COMMAND ./configure
"--prefix=${DESTDIR}/usr/local"
--disable-shared
- --with-gtk=2
+ --with-gtk=2
--with-opengl
--enable-unicode
--enable-graphics_ctx