mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:49:06 +08:00
[asmjit] Update to latest commit and fix header (#20997)
This commit is contained in:
parent
8a4e2e3079
commit
cd5398a46f
@ -3,30 +3,31 @@ vcpkg_fail_port_install(ON_ARCH "arm")
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO asmjit/asmjit
|
||||
REF 5bc166efdb419f88bd5b5774c62cfc4d08a0bfa4 # accessed on 2020-09-14
|
||||
SHA512 6e31617e62dccbec5fa4d8aeacb1076167f870578a0dd2915403d414f8fcaab16692968287f912dc41a2ec7d10a343d5b687144f04d2ec7adb2880044752543c
|
||||
REF d0d14ac774977d0060a351f66e35cb57ba0bf59c # accessed on 2021-10-26
|
||||
SHA512 2822763fcb3c18f6699119c1773404667d81f8afb86f8f2e8dbe627526a2877b049d16505557e680e4e310f0e0667263dc4ac442f682e95f2568bf0bf8b61b4b
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(ASMJIT_STATIC 1)
|
||||
else()
|
||||
set(ASMJIT_STATIC 0)
|
||||
endif()
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS -DASMJIT_STATIC=${ASMJIT_STATIC}
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DASMJIT_STATIC=${ASMJIT_STATIC}
|
||||
)
|
||||
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/asmjit)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
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()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,8 +1,17 @@
|
||||
{
|
||||
"name": "asmjit",
|
||||
"version-string": "2020-09-14",
|
||||
"port-version": 1,
|
||||
"version-date": "2021-10-26",
|
||||
"description": "Complete x86/x64 JIT and Remote Assembler for C++",
|
||||
"homepage": "https://github.com/asmjit/asmjit",
|
||||
"supports": "!arm"
|
||||
"supports": "!arm",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3ce58638bee35ef08b3ee8286c1e519b171c39bf",
|
||||
"version-date": "2021-10-26",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "beb9e328e4d8c0575319af439ec4f810cf0bfa40",
|
||||
"version-string": "2020-09-14",
|
||||
|
@ -185,8 +185,8 @@
|
||||
"port-version": 3
|
||||
},
|
||||
"asmjit": {
|
||||
"baseline": "2020-09-14",
|
||||
"port-version": 1
|
||||
"baseline": "2021-10-26",
|
||||
"port-version": 0
|
||||
},
|
||||
"assimp": {
|
||||
"baseline": "5.0.1",
|
||||
|
Loading…
Reference in New Issue
Block a user