deps-mingw.cmake 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. set(DEP_CMAKE_OPTS "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
  2. set(DEP_BOOST_TOOLSET "gcc")
  3. set(DEP_BITS 64)
  4. find_package(Git REQUIRED)
  5. # TODO make sure to build tbb with -flifetime-dse=1
  6. include("deps-unix-common.cmake")
  7. ExternalProject_Add(dep_boost
  8. EXCLUDE_FROM_ALL 1
  9. URL "https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.tar.gz"
  10. URL_HASH SHA256=aeb26f80e80945e82ee93e5939baebdca47b9dee80a07d3144be1e1a6a66dd6a
  11. BUILD_IN_SOURCE 1
  12. CONFIGURE_COMMAND bootstrap.bat
  13. BUILD_COMMAND b2.exe
  14. -j "${NPROC}"
  15. --with-system
  16. --with-filesystem
  17. --with-thread
  18. --with-log
  19. --with-locale
  20. --with-regex
  21. --with-date_time
  22. "--prefix=${DESTDIR}/usr/local"
  23. "address-model=${DEPS_BITS}"
  24. "toolset=${DEP_BOOST_TOOLSET}"
  25. link=static
  26. define=BOOST_USE_WINAPI_VERSION=0x0502
  27. variant=release
  28. threading=multi
  29. boost.locale.icu=off
  30. "${DEP_BOOST_DEBUG}" release install
  31. INSTALL_COMMAND "" # b2 does that already
  32. )
  33. ExternalProject_Add(dep_libcurl
  34. EXCLUDE_FROM_ALL 1
  35. URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
  36. URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
  37. CMAKE_ARGS
  38. -DBUILD_SHARED_LIBS=OFF
  39. -DBUILD_TESTING=OFF
  40. -DCURL_STATICLIB=ON
  41. -DCURL_STATIC_CRT=ON
  42. -DENABLE_THREADED_RESOLVER=ON
  43. -DCURL_DISABLE_FTP=ON
  44. -DCURL_DISABLE_LDAP=ON
  45. -DCURL_DISABLE_LDAPS=ON
  46. -DCURL_DISABLE_TELNET=ON
  47. -DCURL_DISABLE_DICT=ON
  48. -DCURL_DISABLE_FILE=ON
  49. -DCURL_DISABLE_TFTP=ON
  50. -DCURL_DISABLE_RTSP=ON
  51. -DCURL_DISABLE_POP3=ON
  52. -DCURL_DISABLE_IMAP=ON
  53. -DCURL_DISABLE_SMTP=ON
  54. -DCURL_DISABLE_GOPHER=ON
  55. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  56. ${DEP_CMAKE_OPTS}
  57. )