mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-19 21:32:48 +01:00
29 lines
622 B
CMake
Executable file
29 lines
622 B
CMake
Executable file
|
|
if(ON)
|
|
list(APPEND B2_OPTIONS
|
|
abi=ms
|
|
binary-format=pe
|
|
)
|
|
endif()
|
|
|
|
if()
|
|
list(APPEND B2_OPTIONS
|
|
abi=sysv
|
|
binary-format=mach-o
|
|
)
|
|
endif()
|
|
|
|
if("" STREQUAL "ON" OR "" STREQUAL "ON")
|
|
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()
|