mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 06:30:25 +08:00
6913327612
* [blend2d, asmjit] Fix blend2d features build and update asmjit to latest commit * format vcpkg.json * update version * update blend2d[jit] * update version * fix feature blend2d[logging] * update version
32 lines
916 B
CMake
32 lines
916 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO asmjit/asmjit
|
|
REF 51b10b19b6631434d3f9ad536a6fb140944a36d2 # commited on 2023-03-25
|
|
SHA512 1fba5159d2adad64e9a2b07a1f90de6988d1da47b9802ca8b57c61a89d8a90924525f6d0d6607279994bdbadcf693b2cc96cd7e4bf7f018ad64127b640dc38fb
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DASMJIT_STATIC=${ASMJIT_STATIC}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmjit/core/api-config.h"
|
|
"#if !defined(ASMJIT_STATIC)"
|
|
"#if 0"
|
|
)
|
|
endif()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|