2021-02-27 05:17:33 +08:00
|
|
|
|
|
|
|
if(@VCPKG_TARGET_IS_WINDOWS@)
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
abi=ms
|
|
|
|
binary-format=pe
|
|
|
|
)
|
|
|
|
endif()
|
2021-03-11 04:15:19 +08:00
|
|
|
|
|
|
|
if(@VCPKG_TARGET_IS_OSX@)
|
2022-08-23 00:37:28 +08:00
|
|
|
if(@VCPKG_TARGET_ARCHITECTURE@ MATCHES "^(ARM|arm)64$")
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
abi=aapcs
|
|
|
|
binary-format=mach-o
|
|
|
|
)
|
|
|
|
else()
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
abi=sysv
|
|
|
|
binary-format=mach-o
|
|
|
|
)
|
|
|
|
endif()
|
2021-03-11 04:15:19 +08:00
|
|
|
endif()
|
2021-05-01 02:43:39 +08:00
|
|
|
|
2021-09-01 11:27:44 +08:00
|
|
|
if("@VCPKG_TARGET_IS_LINUX@" STREQUAL "ON" OR "@VCPKG_TARGET_IS_ANDROID@" STREQUAL "ON")
|
2021-05-01 02:43:39 +08:00
|
|
|
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
abi=aapcs
|
|
|
|
)
|
|
|
|
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
abi=sysv
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
binary-format=elf
|
|
|
|
)
|
|
|
|
endif()
|