mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 23:07:58 +08:00
[libffi] add misp64 support (#26266)
* [libffi]add mips64 support * [libffi]update port version * [libffi]update version database Co-authored-by: Jamlys Lee <jamlys_lee@163.com>
This commit is contained in:
parent
1fb95117ea
commit
8e1226e40c
@ -11,7 +11,7 @@ endif()
|
||||
# config variables for ffi.h.in
|
||||
set(VERSION 3.4.2)
|
||||
|
||||
set(KNOWN_PROCESSORS x86 x86_64 amd64 arm arm64 i386 i686 armv7l armv7-a aarch64)
|
||||
set(KNOWN_PROCESSORS x86 x86_64 amd64 arm arm64 i386 i686 armv7l armv7-a aarch64 mips64el)
|
||||
|
||||
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" lower_system_processor)
|
||||
|
||||
@ -29,6 +29,8 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUA
|
||||
set(TARGET X86_WIN64)
|
||||
elseif(lower_system_processor MATCHES "arm64|aarch64")
|
||||
set(TARGET ARM64)
|
||||
elseif(lower_system_processor MATCHES "mips64")
|
||||
set(TARGET MIPS64)
|
||||
elseif(lower_system_processor MATCHES "arm")
|
||||
set(TARGET ARM)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "BSD" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
@ -43,7 +45,7 @@ else()
|
||||
message(FATAL_ERROR "Cannot determine target. Please consult ${CMAKE_CURRENT_SOURCE_DIR}/configure.ac and add your platform to this CMake file.")
|
||||
endif()
|
||||
|
||||
if("${TARGET}" STREQUAL "X86_64")
|
||||
if("${TARGET}" STREQUAL "X86_64" OR "${TARGET}" STREQUAL "MIPS64")
|
||||
set(HAVE_LONG_DOUBLE 1)
|
||||
else()
|
||||
set(HAVE_LONG_DOUBLE 0)
|
||||
@ -58,6 +60,8 @@ if ("${TARGET}" STREQUAL "ARM_WIN64" OR "${TARGET}" STREQUAL "ARM64")
|
||||
file(COPY src/aarch64/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
||||
elseif ("${TARGET}" STREQUAL "ARM_WIN32" OR "${TARGET}" STREQUAL "ARM")
|
||||
file(COPY src/arm/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
||||
elseif ("${TARGET}" MATCHES "MIPS")
|
||||
file(COPY src/mips/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
||||
else()
|
||||
file(COPY src/x86/ffitarget.h DESTINATION ${CMAKE_BINARY_DIR}/include)
|
||||
endif()
|
||||
@ -85,6 +89,10 @@ elseif("${TARGET}" STREQUAL "ARM_WIN32" OR "${TARGET}" STREQUAL "ARM")
|
||||
set(FFI_SOURCES
|
||||
${FFI_SOURCES}
|
||||
src/arm/ffi.c)
|
||||
elseif("${TARGET}" MATCHES "MIPS")
|
||||
set(FFI_SOURCES
|
||||
${FFI_SOURCES}
|
||||
src/mips/ffi.c)
|
||||
else()
|
||||
set(FFI_SOURCES
|
||||
${FFI_SOURCES}
|
||||
@ -189,6 +197,8 @@ elseif("${TARGET}" STREQUAL "ARM_WIN64")
|
||||
endif()
|
||||
elseif("${TARGET}" STREQUAL "ARM64")
|
||||
add_assembly(src/aarch64/sysv.S)
|
||||
elseif("${TARGET}" MATCHES "MIPS")
|
||||
add_assembly(src/mips/n32.S)
|
||||
else()
|
||||
message(FATAL_ERROR "Target not implemented")
|
||||
endif()
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "libffi",
|
||||
"version": "3.4.2",
|
||||
"port-version": 5,
|
||||
"port-version": 6,
|
||||
"description": "Portable, high level programming interface to various calling conventions",
|
||||
"homepage": "https://github.com/libffi/libffi",
|
||||
"license": "MIT",
|
||||
|
@ -3622,7 +3622,7 @@
|
||||
},
|
||||
"libffi": {
|
||||
"baseline": "3.4.2",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"libfido2": {
|
||||
"baseline": "1.10.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9d484f79a6c1e9cd25a8a4791af0c9a40fc26b51",
|
||||
"version": "3.4.2",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "14f8b4d7dc645ea8f2ddfe77eeaaeef55f123cb5",
|
||||
"version": "3.4.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user