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-09-28 08:41:18 +08:00
|
|
|
REF 5bc166efdb419f88bd5b5774c62cfc4d08a0bfa4 # accessed on 2020-09-14
|
|
|
|
SHA512 6e31617e62dccbec5fa4d8aeacb1076167f870578a0dd2915403d414f8fcaab16692968287f912dc41a2ec7d10a343d5b687144f04d2ec7adb2880044752543c
|
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()
|
|
|
|
|
2020-09-28 08:41:18 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/asmjit)
|
|
|
|
|
2018-01-30 04:05:19 +08:00
|
|
|
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)
|