2018-11-30 19:52:45 +00:00
|
|
|
|
2019-01-10 12:49:06 +00:00
|
|
|
# This ensures dependencies don't use SDK features which are not available in the version specified by Deployment target
|
|
|
|
# That can happen when one uses a recent SDK but specifies an older Deployment target
|
|
|
|
set(DEP_WERRORS_SDK "-Werror=partial-availability -Werror=unguarded-availability -Werror=unguarded-availability-new")
|
|
|
|
|
2018-11-30 19:52:45 +00:00
|
|
|
set(DEP_CMAKE_OPTS
|
|
|
|
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
|
2019-01-10 12:49:06 +00:00
|
|
|
"-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT}"
|
2019-10-14 14:23:03 +00:00
|
|
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET=${DEP_OSX_TARGET}"
|
2019-01-10 12:49:06 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=${DEP_WERRORS_SDK}"
|
|
|
|
"-DCMAKE_C_FLAGS=${DEP_WERRORS_SDK}"
|
2018-11-30 19:52:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include("deps-unix-common.cmake")
|
|
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_boost
|
|
|
|
EXCLUDE_FROM_ALL 1
|
2019-11-11 14:44:12 +00:00
|
|
|
URL "https://dl.bintray.com/boostorg/release/1.70.0/source/boost_1_70_0.tar.gz"
|
|
|
|
URL_HASH SHA256=882b48708d211a5f48e60b0124cf5863c1534cd544ecd0664bb534a4b5d506e9
|
2018-11-30 19:52:45 +00:00
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ./bootstrap.sh
|
2019-10-14 14:23:03 +00:00
|
|
|
--with-toolset=clang
|
2019-10-25 11:09:25 +00:00
|
|
|
--with-libraries=system,iostreams,filesystem,thread,log,locale,regex
|
2018-11-30 19:52:45 +00:00
|
|
|
"--prefix=${DESTDIR}/usr/local"
|
|
|
|
BUILD_COMMAND ./b2
|
|
|
|
-j ${NPROC}
|
|
|
|
--reconfigure
|
2019-10-14 14:23:03 +00:00
|
|
|
toolset=clang
|
2018-11-30 19:52:45 +00:00
|
|
|
link=static
|
|
|
|
variant=release
|
|
|
|
threading=multi
|
|
|
|
boost.locale.icu=off
|
2019-10-14 14:23:03 +00:00
|
|
|
"cflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
|
|
|
|
"cxxflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
|
|
|
|
"mflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
|
|
|
|
"mmflags=-fPIC -mmacosx-version-min=${DEP_OSX_TARGET}"
|
2018-11-30 19:52:45 +00:00
|
|
|
install
|
|
|
|
INSTALL_COMMAND "" # b2 does that already
|
|
|
|
)
|
|
|
|
|
|
|
|
ExternalProject_Add(dep_libcurl
|
|
|
|
EXCLUDE_FROM_ALL 1
|
|
|
|
URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
|
|
|
|
URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
|
|
|
|
BUILD_IN_SOURCE 1
|
|
|
|
CONFIGURE_COMMAND ./configure
|
|
|
|
--enable-static
|
|
|
|
--disable-shared
|
|
|
|
"--with-ssl=${DESTDIR}/usr/local"
|
|
|
|
--with-pic
|
|
|
|
--enable-ipv6
|
|
|
|
--enable-versioned-symbols
|
|
|
|
--enable-threaded-resolver
|
|
|
|
--with-darwinssl
|
|
|
|
--without-ssl # disables OpenSSL
|
|
|
|
--disable-ldap
|
|
|
|
--disable-ldaps
|
|
|
|
--disable-manual
|
|
|
|
--disable-rtsp
|
|
|
|
--disable-dict
|
|
|
|
--disable-telnet
|
|
|
|
--disable-pop3
|
|
|
|
--disable-imap
|
|
|
|
--disable-smb
|
|
|
|
--disable-smtp
|
|
|
|
--disable-gopher
|
|
|
|
--disable-crypto-auth
|
|
|
|
--without-gssapi
|
|
|
|
--without-libpsl
|
|
|
|
--without-libidn2
|
|
|
|
--without-gnutls
|
|
|
|
--without-polarssl
|
|
|
|
--without-mbedtls
|
|
|
|
--without-cyassl
|
|
|
|
--without-nss
|
|
|
|
--without-axtls
|
|
|
|
--without-brotli
|
|
|
|
--without-libmetalink
|
|
|
|
--without-libssh
|
|
|
|
--without-libssh2
|
|
|
|
--without-librtmp
|
|
|
|
--without-nghttp2
|
|
|
|
--without-zsh-functions-dir
|
|
|
|
BUILD_COMMAND make "-j${NPROC}"
|
|
|
|
INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
|
|
|
|
)
|
|
|
|
|
2019-10-25 11:09:25 +00:00
|
|
|
add_dependencies(dep_openvdb dep_boost)
|