mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
348fe8e55f
* [blend2d] update port to 0.10 - transition from `version-date` to `version` - Update blend2d to 0.10 - Update local asmjit to 2023-04-28 - Arm is fixed for windows * [blend2d] update versions
59 lines
2.0 KiB
CMake
59 lines
2.0 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO blend2d/blend2d
|
|
REF 452d549751188b04367b5af46c040cb737f5f76c # commited on 2023-05-11
|
|
SHA512 e2d3a0f5b956aadde5498f3aa4fb0663db8ad525cc909da080315fddf9f6322632a62761f0fe94ddb7c6347896e42c62e7e03e944843b3ca3400326eddc4ffcc
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BLEND2D_STATIC)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
INVERTED_FEATURES
|
|
futex BLEND2D_NO_FUTEX
|
|
jit BLEND2D_NO_JIT
|
|
logging BLEND2D_NO_JIT_LOGGING
|
|
tls BLEND2D_NO_TLS
|
|
)
|
|
|
|
if(NOT BLEND2D_NO_JIT)
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH ASMJIT_SOURCE_PATH
|
|
REPO asmjit/asmjit
|
|
REF 3577608cab0bc509f856ebf6e41b2f9d9f71acc4 # commited on 2023-04-28
|
|
SHA512 36557af5c82ccc8e5ef2d4effe22b75e22c2bf1f4504daae3ff813e907449be6e7b25678af071cb9dede7c6e02dc5c8ad2fc2a3da011aa660eb7f5c75ab23042
|
|
HEAD_REF master
|
|
)
|
|
|
|
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty/asmjit")
|
|
|
|
get_filename_component(ASMJIT_SOURCE_DIR_NAME "${ASMJIT_SOURCE_PATH}" NAME)
|
|
file(COPY "${ASMJIT_SOURCE_PATH}" DESTINATION "${SOURCE_PATH}/3rdparty")
|
|
file(RENAME "${SOURCE_PATH}/3rdparty/${ASMJIT_SOURCE_DIR_NAME}" "${SOURCE_PATH}/3rdparty/asmjit")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DBLEND2D_STATIC=${BLEND2D_STATIC}"
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
if(BLEND2D_STATIC)
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
|
|
|
if(BLEND2D_STATIC)
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage_static.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME usage)
|
|
else()
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
endif()
|