2018-01-29 22:05:19 +02:00
|
|
|
vcpkg_from_github(
|
2023-04-10 22:27:41 -04:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO asmjit/asmjit
|
2023-04-18 06:44:48 +08:00
|
|
|
REF 51b10b19b6631434d3f9ad536a6fb140944a36d2 # commited on 2023-03-25
|
|
|
|
SHA512 1fba5159d2adad64e9a2b07a1f90de6988d1da47b9802ca8b57c61a89d8a90924525f6d0d6607279994bdbadcf693b2cc96cd7e4bf7f018ad64127b640dc38fb
|
2023-04-10 22:27:41 -04:00
|
|
|
HEAD_REF master
|
2018-01-29 22:05:19 +02:00
|
|
|
)
|
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
|
2020-08-07 21:17:10 +02:00
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DASMJIT_STATIC=${ASMJIT_STATIC}
|
2020-08-07 21:17:10 +02:00
|
|
|
)
|
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
vcpkg_cmake_install()
|
2018-01-29 22:05:19 +02:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
|
2020-09-27 17:41:18 -07:00
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
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()
|
2018-01-29 22:05:19 +02:00
|
|
|
|
2023-04-10 22:27:41 -04:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|