2019-11-23 06:55:05 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP" ON_ARCH "arm64")
|
2019-03-09 11:00:48 +08:00
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON2)
|
|
|
|
get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${PYTHON2_DIR}")
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Z3Prover/z3
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 79734f26aee55309077de1f26e9b6f50ecd99ceb # z3-4.8.9
|
|
|
|
SHA512 b7899f9590d4b0b0cd6eb841ede60045579878759a4bb3b3caacf0cbb491cafee46ad492dce4c1b87bd8318ac0a763daa5fe596a6a0f5a1f41559b61ef25c82c
|
2019-03-09 11:00:48 +08:00
|
|
|
HEAD_REF master
|
2019-05-21 12:31:25 +08:00
|
|
|
PATCHES
|
|
|
|
fix-install-path.patch
|
2019-03-09 11:00:48 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2020-05-13 07:07:16 +08:00
|
|
|
set(BUILD_STATIC "-DZ3_BUILD_LIBZ3_SHARED=OFF")
|
2019-03-09 11:00:48 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
${BUILD_STATIC}
|
|
|
|
)
|
|
|
|
|
2019-05-21 12:31:25 +08:00
|
|
|
vcpkg_install_cmake()
|
2019-11-23 06:55:05 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/z3 TARGET_PATH share/Z3)
|
2019-05-21 12:31:25 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-03-09 11:00:48 +08:00
|
|
|
|
2019-05-21 12:31:25 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2019-03-09 11:00:48 +08:00
|
|
|
|
2019-11-23 06:55:05 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|