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
diff options
context:
space:
mode:
Diffstat (limited to 'deps/deps-linux.cmake')
-rw-r--r--deps/deps-linux.cmake51
1 files changed, 14 insertions, 37 deletions
diff --git a/deps/deps-linux.cmake b/deps/deps-linux.cmake
index 9050a0701..420638d2f 100644
--- a/deps/deps-linux.cmake
+++ b/deps/deps-linux.cmake
@@ -3,6 +3,14 @@ set(DEP_CMAKE_OPTS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
include("deps-unix-common.cmake")
+# Some Linuxes may have very old libpng, so it's best to bundle it instead of relying on the system version.
+# find_package(PNG QUIET)
+# if (NOT PNG_FOUND)
+# message(WARNING "No PNG dev package found in system, building static library. You should install the system package.")
+# endif ()
+
+#TODO UDEV
+
ExternalProject_Add(dep_boost
EXCLUDE_FROM_ALL 1
URL "https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz"
@@ -55,7 +63,12 @@ ExternalProject_Add(dep_libcurl
--enable-versioned-symbols
--enable-threaded-resolver
--with-random=/dev/urandom
- --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+
+ # CA root certificate paths will be set for openssl at runtime.
+ --without-ca-bundle
+ --without-ca-path
+ --with-ca-fallback # to look for the ssl backend's ca store
+
--disable-ldap
--disable-ldaps
--disable-manual
@@ -67,7 +80,6 @@ ExternalProject_Add(dep_libcurl
--disable-smb
--disable-smtp
--disable-gopher
- --disable-crypto-auth
--without-gssapi
--without-libpsl
--without-libidn2
@@ -88,39 +100,4 @@ ExternalProject_Add(dep_libcurl
INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
)
-if (DEP_WX_STABLE)
- set(DEP_WX_TAG "v3.0.4")
-else ()
- set(DEP_WX_TAG "v3.1.1-patched")
-endif()
-
-ExternalProject_Add(dep_wxwidgets
- EXCLUDE_FROM_ALL 1
- GIT_REPOSITORY "https://github.com/prusa3d/wxWidgets"
- GIT_TAG "${DEP_WX_TAG}"
- 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-opengl
- --enable-unicode
- --enable-graphics_ctx
- --with-regex=builtin
- --with-libpng=builtin
- --with-libxpm=builtin
- --with-libjpeg=builtin
- --with-libtiff=builtin
- --with-zlib
- --with-expat=builtin
- --disable-precomp-headers
- --enable-debug_info
- --enable-debug_gdb
- --disable-debug
- --disable-debug_flag
- BUILD_COMMAND make "-j${NPROC}" && make -C locale allmo
- INSTALL_COMMAND make install
-)
-
add_dependencies(dep_openvdb dep_boost)