2020-05-27 13:36:51 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO symengine/symengine
|
2023-06-01 09:40:27 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 e73f62a87d20b676cac66ce82ac93308b688ed2ac18ebdb6884bae1ae66868e1033e33908e797f86a1906f91b975e8607a02e8932db8550a677f6b41373b7934
|
2020-05-27 13:36:51 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
[boost] update to 1.76.0 (#17335)
* [boost] update generator script for boost 1.76
* [boost] update ports to 1.76.0 (run generator)
* [boost] fix windows build?
* [quantlib] update and fix mac build
* [symengine] update and fix build
* [avro-cpp] update to latest master and fix windows build
* [folly] update to 2021.05.31.00
* [fbthrift, fizz, wangle] update to v2021.05.31.00 and fix build
* [proxygen] update to version 2021.05.31.00
* [fizz, proxygen, fbthrift] fix sodium target
* [proxygen] also works on macOS
* [quantlib] use fix from upstream to fix mac build
* [symengine] minimize patch file and fix deprecation warning
* [folly,proxygen,wangle,fizz,fbthrift] update to 2021.06.14.00
* [fbthrift] remove unnecessary dependency rsocket
I couldn't find any information that this dependency exists. The term is used in the code, but not in the context of a dependency
* [fizz,fbthrift] fix zlib dependency
* [fbthrift] pass required flex executable to cmake configure
* add version files
* [boost] generate-ports.ps1: Apply code review
* [boost] changes from new version of generate-ports script
* update version files
* [boost] generate-ports.ps1: Apply code review
2021-07-08 03:31:06 +08:00
|
|
|
FEATURES
|
|
|
|
arb WITH_ARB
|
|
|
|
flint WITH_FLINT
|
|
|
|
mpfr WITH_MPFR
|
|
|
|
tcmalloc WITH_TCMALLOC
|
2023-06-01 09:40:27 +08:00
|
|
|
llvm WITH_LLVM
|
2020-05-27 13:36:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(integer-class-boostmp IN_LIST FEATURES)
|
|
|
|
set(INTEGER_CLASS boostmp)
|
|
|
|
|
|
|
|
if(integer-class-flint IN_LIST FEATURES)
|
|
|
|
message(WARNING "Both boostmp and flint are given for integer class, will use boostmp only.")
|
|
|
|
endif()
|
|
|
|
elseif(integer-class-flint IN_LIST FEATURES)
|
|
|
|
set(INTEGER_CLASS flint)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
|
|
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE")
|
|
|
|
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" MSVC_USE_MT)
|
|
|
|
|
2021-11-06 07:34:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-01 03:52:31 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-05-27 13:36:51 +08:00
|
|
|
OPTIONS
|
|
|
|
-DINTEGER_CLASS=${INTEGER_CLASS}
|
|
|
|
-DBUILD_BENCHMARKS=no
|
|
|
|
-DBUILD_TESTS=no
|
|
|
|
-DMSVC_WARNING_LEVEL=3
|
|
|
|
-DMSVC_USE_MT=${MSVC_USE_MT}
|
|
|
|
-DWITH_SYMENGINE_RCP=yes
|
|
|
|
-DWITH_SYMENGINE_TEUCHOS=no
|
|
|
|
-DINTEGER_CLASS=${INTEGER_CLASS}
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2021-11-06 07:34:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-05-27 13:36:51 +08:00
|
|
|
|
2021-11-06 07:34:35 +08:00
|
|
|
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
|
|
|
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2020-05-27 13:36:51 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-06 07:34:35 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/symengine/symengine_config_cling.h")
|
2020-05-27 13:36:51 +08:00
|
|
|
|
2021-12-01 03:52:31 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/symengine/SymEngineConfig.cmake" "${CURRENT_BUILDTREES_DIR}" "") # not used, inside if (False)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/symengine/SymEngineConfig.cmake"
|
|
|
|
[[${SYMENGINE_CMAKE_DIR}/../../../include]]
|
|
|
|
[[${SYMENGINE_CMAKE_DIR}/../../include]]
|
|
|
|
)
|
|
|
|
|
2021-11-06 07:34:35 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|