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-29 22:05:19 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO asmjit/asmjit
|
2021-10-27 00:02:03 -07:00
|
|
|
REF d0d14ac774977d0060a351f66e35cb57ba0bf59c # accessed on 2021-10-26
|
|
|
|
SHA512 2822763fcb3c18f6699119c1773404667d81f8afb86f8f2e8dbe627526a2877b049d16505557e680e4e310f0e0667263dc4ac442f682e95f2568bf0bf8b61b4b
|
2018-01-29 22:05:19 +02:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2021-10-27 00:02:03 -07:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|