2020-05-09 05:34:22 +08:00
|
|
|
vcpkg_fail_port_install(ON_ARCH "arm")
|
2020-02-12 08:27:53 +08:00
|
|
|
|
2018-01-30 04:05:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO asmjit/asmjit
|
2020-08-08 03:17:10 +08:00
|
|
|
REF 8474400e82c3ea65bd828761539e5d9b25f6bd83
|
|
|
|
SHA512 435be4ed22abbbbcdea3869b31bc2fc27aae969775773c24155d7490bca9591f51613fa3319cce54200c6d18dbe73a6be2d5449c49afb46934d93760501e98f6
|
2018-01-30 04:05:19 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
2020-08-08 03:17:10 +08:00
|
|
|
set(ASMJIT_STATIC 1)
|
2018-01-30 04:05:19 +08:00
|
|
|
else()
|
2020-08-08 03:17:10 +08:00
|
|
|
set(ASMJIT_STATIC 0)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2018-01-30 04:05:19 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
2020-08-08 03:17:10 +08:00
|
|
|
OPTIONS -DASMJIT_STATIC=${ASMJIT_STATIC}
|
|
|
|
)
|
|
|
|
|
2018-01-30 04:05:19 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-02-12 08:27:53 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|