2022-04-26 22:24:59 -04:00
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
|
|
|
vcpkg_add_to_path("${PYTHON3_DIR}")
|
2019-03-09 03:00:48 +00:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Z3Prover/z3
|
2023-06-29 23:35:12 +02:00
|
|
|
REF z3-4.12.2
|
|
|
|
SHA512 375477cbbc9837b44e752c89916409d07bf6a73830b52878aab4f376f08b37dd5ab485da225744d394ab15f2a7e1014edc3be5eb9962934c440a8d55259317e2
|
2019-03-09 03:00:48 +00:00
|
|
|
HEAD_REF master
|
2022-04-19 12:29:01 -04:00
|
|
|
PATCHES
|
|
|
|
fix-install-path.patch
|
2023-06-29 23:35:12 +02:00
|
|
|
fix-cstdint-include.patch
|
2022-04-19 12:29:01 -04:00
|
|
|
remove-flag-overrides.patch
|
2019-03-09 03:00:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
2020-05-12 19:07:16 -04:00
|
|
|
set(BUILD_STATIC "-DZ3_BUILD_LIBZ3_SHARED=OFF")
|
2019-03-09 03:00:48 +00:00
|
|
|
endif()
|
|
|
|
|
2022-04-19 12:29:01 -04:00
|
|
|
vcpkg_cmake_configure(
|
2019-03-09 03:00:48 +00:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
${BUILD_STATIC}
|
2022-04-19 12:29:01 -04:00
|
|
|
-DZ3_BUILD_TEST_EXECUTABLES=OFF
|
|
|
|
-DZ3_ENABLE_EXAMPLE_TARGETS=OFF
|
2019-03-09 03:00:48 +00:00
|
|
|
)
|
|
|
|
|
2022-04-19 12:29:01 -04:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/z3)
|
2019-05-21 04:31:25 +00:00
|
|
|
vcpkg_copy_pdbs()
|
2019-03-09 03:00:48 +00:00
|
|
|
|
2021-06-02 03:14:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-03-09 03:00:48 +00:00
|
|
|
|
2021-06-02 03:14:39 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 00:19:28 +02:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|