2023-12-20 16:50:40 +00:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2021-04-14 10:59:25 +00:00
|
|
|
|
|
|
|
cmake_policy(SET CMP0065 NEW)
|
2021-02-28 13:19:04 +00:00
|
|
|
|
2021-10-21 19:31:50 +00:00
|
|
|
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
|
|
|
|
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
|
2023-12-03 17:18:05 +00:00
|
|
|
|
2023-01-09 16:02:14 +00:00
|
|
|
option(RPI3ARM64 "Set to ON if targeting an RaspberryPI3 device with multiarch arm64 and armhf" ${RPI3ARM64})
|
2021-02-28 13:19:04 +00:00
|
|
|
option(RPI4ARM64 "Set to ON if targeting an RaspberryPI4 device with multiarch arm64 and armhf" ${RPI4ARM64})
|
2023-12-14 20:34:20 +00:00
|
|
|
option(RPI5ARM64 "Set to ON if targeting an RaspberryPi5 device with multiarch arm64 and armhf" ${RPI5ARM64})
|
2021-04-07 10:39:23 +00:00
|
|
|
option(RK3326 "Set to ON if targeting an Rockchip RK3326 based device" ${RK3326})
|
2021-02-28 13:19:04 +00:00
|
|
|
option(RK3399 "Set to ON if targeting an Rockchip RK3399 based device" ${RK3399})
|
2023-02-18 08:09:40 +00:00
|
|
|
option(RK3588 "Set to ON if targeting an Rockchip RK3588(S) based device" ${RK3588})
|
2022-02-27 13:53:56 +00:00
|
|
|
option(ODROIDN2 "Set to ON if targeting an Odroid-N2 device" ${ODROIDN2})
|
2021-07-03 19:17:32 +00:00
|
|
|
option(TEGRAX1 "Set to ON if targeting an Tegra X1 based device" ${TEGRAX1})
|
2024-01-25 22:04:20 +00:00
|
|
|
option(TEGRA_T194 "Set to ON if targeting an Tegra Xavier based device" ${TEGRA_T194})
|
|
|
|
option(TEGRA_T234 "Set to ON if targeting an Tegra Orin based device" ${TEGRA_T234})
|
2021-10-02 07:46:33 +00:00
|
|
|
option(PHYTIUM "Set to ON if targeting an Phytium (D2000 or FT2000/4) based device" ${PHYTIUM})
|
2021-10-17 19:31:45 +00:00
|
|
|
option(SD845 "Set to ON if targeting a Snapragon 845 based device" ${SD845})
|
2023-08-04 15:00:05 +00:00
|
|
|
option(SD888 "Set to ON if targeting a Snapragon 888 based device" ${SD888})
|
2023-10-05 06:09:17 +00:00
|
|
|
option(SD8G2 "Set to ON if targeting a Snapragon 8 Gen 2 based device" ${SD8G2})
|
2023-09-25 11:44:17 +00:00
|
|
|
option(ADLINK "Set to ON if targeting an ADLink AmpereAltra based device" ${ADLINK})
|
2022-03-20 14:26:07 +00:00
|
|
|
option(M1 "Set to ON if targeting a AppleM1 running on Asahi computer" ${M1})
|
2021-09-26 10:09:16 +00:00
|
|
|
option(LARCH64 "Set to ON if targeting an Loongarch64 based device" ${LARCH64})
|
2022-06-08 08:31:34 +00:00
|
|
|
option(RV64 "Set to ON if targeting an RISC-V RV64GC based device" ${RV64})
|
2021-11-22 20:53:58 +00:00
|
|
|
option(PPC64LE "Set to ON if targeting an PowerPC 64 LE based device" ${PPC64LE})
|
2021-11-24 10:43:12 +00:00
|
|
|
option(LX2160A "Set to ON if targeting an LX2160A based device" ${LX2160A})
|
2023-07-14 10:03:30 +00:00
|
|
|
option(ARM64 "Set to ON if targeting a generic ARM64 based device" ${ARM64})
|
2023-09-02 09:56:20 +00:00
|
|
|
option(ANDROID "Set to ON if targeting an Android device" ${ANDROID})
|
2023-11-27 15:26:36 +00:00
|
|
|
option(TERMUX "Set to ON if targeting an Android device with Termux" ${TERMUX})
|
2021-02-28 13:19:04 +00:00
|
|
|
option(USE_CCACHE "Set to ON to use ccache if present in the system" ${USE_CCACHE})
|
|
|
|
option(HAVE_TRACE "Set to ON to have Trace ability (needs ZydisInfo library)" ${HAVE_TRACE})
|
2023-10-01 13:03:44 +00:00
|
|
|
option(SAVE_MEM "Set to ON to build dynarec with some slower memory saving optimisations" ${SAVE_MEM})
|
2021-07-03 08:32:34 +00:00
|
|
|
option(NOLOADADDR "Set to ON to avoid fixing the load address of Box64" OFF)
|
2021-02-28 13:19:04 +00:00
|
|
|
option(NOGIT "Set to ON if not building from a git clone repo (like when building from a zip download from github)" ${NOGIT})
|
2023-03-05 20:01:40 +00:00
|
|
|
option(BAD_SIGNAL "Set to ON to activate the workaround for incoherent si_info on SIGSEGV" ${BAD_SIGNAL})
|
2022-08-11 09:14:13 +00:00
|
|
|
option(SW64 "Set ON if targeting an SW64 based device" ${SW64})
|
2023-10-15 13:06:42 +00:00
|
|
|
option(CI "Set to ON if running in CI" ${CI})
|
2023-11-26 15:47:29 +00:00
|
|
|
option(WITH_MOLD "Set to ON to use with mold" ${WITH_MOLD})
|
2022-08-11 09:14:13 +00:00
|
|
|
|
2023-11-27 15:26:36 +00:00
|
|
|
if(TERMUX)
|
2023-12-03 17:18:05 +00:00
|
|
|
set(TERMUX_PATH "/data/data/com.termux/files")
|
2023-11-27 15:26:36 +00:00
|
|
|
set(ANDROID ON CACHE BOOL "")
|
|
|
|
endif()
|
2021-09-26 10:09:16 +00:00
|
|
|
if(LARCH64)
|
|
|
|
set(LD80BITS OFF CACHE BOOL "")
|
|
|
|
set(NOALIGN OFF CACHE BOOL "")
|
2022-02-14 12:13:12 +00:00
|
|
|
set(ARM_DYNAREC OFF CACHE BOOL "")
|
2023-03-12 13:04:57 +00:00
|
|
|
set(RV64_DYNAREC OFF CACHE BOOL "")
|
2024-02-28 15:10:13 +00:00
|
|
|
set(LARCH64_DYNAREC ON CACHE BOOL "")
|
2021-09-26 10:09:16 +00:00
|
|
|
endif()
|
2021-12-30 21:34:59 +00:00
|
|
|
if(RV64)
|
|
|
|
set(LD80BITS OFF CACHE BOOL "")
|
|
|
|
set(NOALIGN OFF CACHE BOOL "")
|
2023-03-12 13:04:57 +00:00
|
|
|
set(ARM_DYNAREC OFF CACHE BOOL "")
|
|
|
|
set(RV64_DYNAREC ON CACHE BOOL "")
|
2024-02-28 15:10:13 +00:00
|
|
|
set(LARCH64_DYNAREC OFF CACHE BOOL "")
|
2021-12-30 21:34:59 +00:00
|
|
|
endif()
|
2021-11-22 20:53:58 +00:00
|
|
|
if(PPC64LE)
|
|
|
|
set(LD80BITS OFF CACHE BOOL "")
|
|
|
|
set(NOALIGN OFF CACHE BOOL "")
|
2022-02-14 12:13:12 +00:00
|
|
|
set(ARM_DYNAREC OFF CACHE BOOL "")
|
2023-03-12 13:04:57 +00:00
|
|
|
set(RV64_DYNAREC OFF CACHE BOOL "")
|
2024-02-28 15:10:13 +00:00
|
|
|
set(LARCH64_DYNAREC OFF CACHE BOOL "")
|
2023-12-14 20:34:20 +00:00
|
|
|
endif()
|
2024-01-25 22:04:20 +00:00
|
|
|
if(RK3399 OR RK3588 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RPI5ARM64 OR RK3326 OR TEGRAX1 OR TEGRA_T194 OR TEGRA_T234 OR PHYTIUM OR SD845 OR SD888 OR SD8G2 OR LX2160A OR M1 OR ARM64 OR ADLINK)
|
2021-03-14 16:58:04 +00:00
|
|
|
set(LD80BITS OFF CACHE BOOL "")
|
|
|
|
set(NOALIGN OFF CACHE BOOL "")
|
|
|
|
set(ARM_DYNAREC ON CACHE BOOL "")
|
2023-03-12 13:04:57 +00:00
|
|
|
set(RV64_DYNAREC OFF CACHE BOOL "")
|
2024-02-28 15:10:13 +00:00
|
|
|
set(LARCH64_DYNAREC OFF CACHE BOOL "")
|
2021-03-14 16:58:04 +00:00
|
|
|
endif()
|
2023-12-14 20:34:20 +00:00
|
|
|
if(RK3399 OR ODROIDN2 OR RPI3ARM64 OR RPI4ARM64 OR RPI5ARM64)
|
2023-10-01 13:03:44 +00:00
|
|
|
set(SAVE_MEM ON CACHE BOOL "")
|
|
|
|
endif()
|
2023-03-05 20:01:40 +00:00
|
|
|
if(RK3588)
|
|
|
|
set(BAD_SIGNAL ON CACHE BOOL "")
|
|
|
|
endif()
|
2022-08-11 09:14:13 +00:00
|
|
|
if(SW64)
|
|
|
|
set(LD80BITS OFF CACHE BOOL "")
|
|
|
|
set(NOALIGN OFF CACHE BOOL "")
|
|
|
|
endif()
|
2023-09-02 09:56:20 +00:00
|
|
|
if(ANDROID)
|
|
|
|
set(NOLOADADDR ON CACHE BOOL "")
|
|
|
|
set(BAD_SIGNAL ON CACHE BOOL "")
|
|
|
|
endif()
|
2022-08-11 09:14:13 +00:00
|
|
|
|
2021-02-28 13:19:04 +00:00
|
|
|
option(LD80BITS "Set to ON if host device have 80bits long double (i.e. i386)" ${LD80BITS})
|
|
|
|
option(NOALIGN "Set to ON if host device doesn't need re-align (i.e. i386)" ${NOALIGN})
|
2021-03-14 16:58:04 +00:00
|
|
|
option(ARM_DYNAREC "Set to ON to use ARM Dynamic Recompilation" ${ARM_DYNAREC})
|
2023-03-12 13:04:57 +00:00
|
|
|
option(RV64_DYNAREC "Set to ON to use RISC-V Dynamic Recompilation" ${RV64_DYNAREC})
|
2024-02-28 15:10:13 +00:00
|
|
|
option(LARCH64_DYNAREC "Set to ON to use LOONGARCH64 Dynamic Recompilation" ${LARCH64_DYNAREC})
|
2022-05-22 15:49:54 +00:00
|
|
|
option(STATICBUILD "Set to ON to have a static build (Warning, not working)" ${STATICBUILD})
|
2023-03-26 08:13:45 +00:00
|
|
|
option(NO_LIB_INSTALL "Set ON to not install a few x86_64 libs that are used by many program" ${NO_LIB_INSTALL})
|
2023-04-06 06:11:29 +00:00
|
|
|
option(NO_CONF_INSTALL "Set ON to not install config files" ${NO_CONF_INSTALL})
|
2021-02-28 13:19:04 +00:00
|
|
|
|
|
|
|
if(${CMAKE_VERSION} VERSION_LESS "3.12.2")
|
|
|
|
find_package(PythonInterp 3)
|
|
|
|
if(NOT PYTHONINTERP_FOUND)
|
2023-03-26 07:59:00 +00:00
|
|
|
message( FATAL_ERROR "You need a Python interpreter, CMake will exit." )
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
if(${PYTHON_VERSION_MAJOR} LESS 3)
|
2023-03-26 07:59:00 +00:00
|
|
|
message( FATAL_ERROR "You need a Python 3 interpreter, CMake will exit." )
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
find_package(Python3)
|
|
|
|
if(NOT Python3_Interpreter_FOUND)
|
2023-03-26 07:59:00 +00:00
|
|
|
message( FATAL_ERROR "You need a Python interpreter, CMake will exit." )
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE} CACHE INTERNAL "The Python3 executable" FORCE)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
project(box64 C ASM)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
2021-04-14 10:59:25 +00:00
|
|
|
set(default_build_type "RelWithDebInfo")
|
2021-02-28 13:19:04 +00:00
|
|
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
|
|
message(STATUS "Setting build type to '${default_build_type}' as none was specified.")
|
|
|
|
set(CMAKE_BUILD_TYPE "${default_build_type}" CACHE STRING "Choose the type of build." FORCE)
|
|
|
|
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
|
|
|
|
endif()
|
|
|
|
|
2023-01-09 16:02:14 +00:00
|
|
|
if(RPI3ARM64)
|
|
|
|
add_definitions(-DRPI)
|
|
|
|
add_definitions(-DRPI3ARM64)
|
|
|
|
add_definitions(-pipe -march=armv8-a+crc -mtune=cortex-a53)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc -mtune=cortex-a53")
|
|
|
|
elseif(RPI4ARM64)
|
2021-02-28 13:19:04 +00:00
|
|
|
add_definitions(-DRPI)
|
|
|
|
add_definitions(-DRPI4ARM64)
|
2021-05-19 07:57:59 +00:00
|
|
|
add_definitions(-pipe -march=armv8-a+crc -mtune=cortex-a72)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc -mtune=cortex-a72")
|
2023-12-14 20:34:20 +00:00
|
|
|
elseif(RPI5ARM64)
|
|
|
|
add_definitions(-DRPI)
|
|
|
|
add_definitions(-DRPI5ARM64)
|
|
|
|
add_definitions(-pipe -march=armv8.2-a+crc+crypto+fp16+rcpc+dotprod -mtune=cortex-a76)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.2-a+crc+crypto+fp16+rcpc+dotprod -mtune=cortex-a76")
|
2021-08-06 08:40:17 +00:00
|
|
|
elseif(RK3326)
|
2021-04-07 10:39:23 +00:00
|
|
|
add_definitions(-DRK3326)
|
2021-04-13 11:23:38 +00:00
|
|
|
add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a35+crypto")
|
2021-08-06 08:40:17 +00:00
|
|
|
elseif(RK3399)
|
2021-02-28 13:19:04 +00:00
|
|
|
add_definitions(-DRK3399)
|
2023-02-18 08:09:40 +00:00
|
|
|
add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72.cortex-a53+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a72.cortex-a53+crypto")
|
|
|
|
elseif(RK3588)
|
|
|
|
add_definitions(-DRK3588)
|
2023-02-19 21:20:57 +00:00
|
|
|
add_definitions(-pipe -mcpu=cortex-a76.cortex-a55+crypto)
|
2023-03-05 22:03:52 +00:00
|
|
|
add_definitions(-DBAD_SIGNAL)
|
2023-02-19 21:20:57 +00:00
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -mcpu=cortex-a76.cortex-a55+crypto")
|
2022-02-27 13:53:56 +00:00
|
|
|
elseif(ODROIDN2)
|
|
|
|
add_definitions(-DODROIDN2)
|
|
|
|
add_definitions(-march=armv8-a+crc+simd+crypto -mcpu=cortex-a73.cortex-a53+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a73.cortex-a53+crypto")
|
2021-08-06 08:40:17 +00:00
|
|
|
elseif(TEGRAX1)
|
2021-07-03 19:17:32 +00:00
|
|
|
add_definitions(-DTEGRAX1)
|
2021-07-03 20:26:17 +00:00
|
|
|
add_definitions(-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto -mcpu=cortex-a57+crypto")
|
2024-01-25 22:04:20 +00:00
|
|
|
elseif(TEGRA_T194)
|
|
|
|
add_definitions(-DTEGRA_T194)
|
|
|
|
add_definitions(-pipe -march=armv8.2-a+fp16+simd+crypto+predres -mcpu=cortex-a76+crypto -mtune=cortex-a76)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.2-a+fp16+simd+crypto+predres -mcpu=cortex-a76+crypto -mtune=cortex-a76")
|
|
|
|
elseif(TEGRA_T234)
|
|
|
|
add_definitions(-DTEGRA_T234)
|
|
|
|
add_definitions(-pipe -march=armv8.2-a+fp16+simd+crypto+predres -mcpu=cortex-a78ae+crypto -mtune=cortex-a78ae)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.2-a+fp16+simd+crypto+predres -mcpu=cortex-a78ae+crypto -mtune=cortex-a78ae")
|
2021-10-02 07:46:33 +00:00
|
|
|
elseif(PHYTIUM)
|
2023-07-14 10:03:30 +00:00
|
|
|
add_definitions(-DPHYTIUM)
|
2021-10-02 07:46:33 +00:00
|
|
|
add_definitions(-pipe -march=armv8.1-a+crc+simd+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.1-a+crc+simd+crypto+aes")
|
2021-10-17 21:06:01 +00:00
|
|
|
elseif(SD845)
|
2021-10-17 19:31:45 +00:00
|
|
|
add_definitions(-DSD845)
|
|
|
|
add_definitions(-pipe -march=armv8.2-a+simd+crypto -mtune=cortex-a75.cortex-a55)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.2-a+simd+crypto -mtune=cortex-a75.cortex-a55")
|
2023-08-04 15:00:05 +00:00
|
|
|
elseif(SD888)
|
|
|
|
add_definitions(-DSD888)
|
2023-09-25 11:44:17 +00:00
|
|
|
add_definitions(-pipe -march=armv8.4-a+simd+crypto)
|
2023-10-05 06:09:17 +00:00
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.4-a+simd+crypto")
|
|
|
|
elseif(SD8G2)
|
|
|
|
add_definitions(-DSD8G2)
|
|
|
|
add_definitions(-pipe -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv9-a+i8mm+sm4+sha3+rcpc+crypto+nosve+nosve2")
|
2023-09-25 11:33:33 +00:00
|
|
|
elseif(ADLINK)
|
|
|
|
add_definitions(-DADLINK)
|
2023-10-01 13:12:16 +00:00
|
|
|
add_definitions(-pipe -mcpu=neoverse-n1 -fuse-ld=gold -fuse-linker-plugin)
|
2023-09-25 11:33:33 +00:00
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -mcpu=neoverse-n1")
|
2022-03-20 14:26:07 +00:00
|
|
|
elseif(M1)
|
|
|
|
add_definitions(-DM1)
|
|
|
|
add_definitions(-pipe -march=armv8.5-a+simd+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8.5-a+simd+crypto")
|
2021-09-26 10:09:16 +00:00
|
|
|
elseif(LARCH64)
|
2024-02-28 15:37:18 +00:00
|
|
|
add_definitions(-DLA64)
|
2021-09-26 14:48:28 +00:00
|
|
|
add_definitions(-pipe -march=loongarch64)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=loongarch64")
|
2021-12-30 21:34:59 +00:00
|
|
|
elseif(RV64)
|
|
|
|
add_definitions(-DRV64)
|
2022-06-08 08:31:34 +00:00
|
|
|
add_definitions(-pipe -march=rv64gc)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=rv64gc")
|
2021-11-22 20:53:58 +00:00
|
|
|
elseif(PPC64LE)
|
|
|
|
add_definitions(-DPPC64LE)
|
2021-11-24 10:43:12 +00:00
|
|
|
elseif(LX2160A)
|
|
|
|
add_definitions(-DLX2160A)
|
|
|
|
add_definitions(-pipe -march=armv8-a+crypto+crc -mcpu=cortex-a72+crypto)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crypto+crc -mcpu=cortex-a72+crypto")
|
2022-08-11 09:14:13 +00:00
|
|
|
elseif(SW64)
|
|
|
|
add_definitions(-DSW64)
|
2023-07-14 10:03:30 +00:00
|
|
|
elseif(ARM64)
|
2023-07-14 10:11:08 +00:00
|
|
|
#add_definitions(-pipe -march=native)
|
2023-07-17 20:25:20 +00:00
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+simd")
|
2021-08-06 08:40:17 +00:00
|
|
|
elseif(ARM_DYNAREC)
|
2023-09-02 10:45:59 +00:00
|
|
|
if(NOT ANDROID)
|
|
|
|
set(CMAKE_ASM_FLAGS "-pipe -march=armv8-a+crc+simd+crypto")
|
|
|
|
endif()
|
2021-07-03 19:17:32 +00:00
|
|
|
endif()
|
2023-09-02 09:56:20 +00:00
|
|
|
if(ANDROID)
|
|
|
|
add_definitions(-DANDROID)
|
|
|
|
endif()
|
2023-11-27 16:38:02 +00:00
|
|
|
if(TERMUX)
|
|
|
|
add_definitions(-DTERMUX)
|
|
|
|
endif()
|
2023-03-05 20:01:40 +00:00
|
|
|
if(BAD_SIGNAL)
|
|
|
|
add_definitions(-DBAD_SIGNAL)
|
|
|
|
endif()
|
2023-10-01 13:03:44 +00:00
|
|
|
if(SAVE_MEM)
|
|
|
|
add_definitions(-DSAVE_MEM)
|
|
|
|
endif()
|
2024-02-26 18:22:53 +00:00
|
|
|
if(STATICBUILD)
|
|
|
|
#-fno-pic -mcmodel=large
|
|
|
|
add_definitions(-DSTATICBUILD)
|
|
|
|
add_definitions(-Wno-deprecated-declarations) #by-design, deprecated function can be used
|
|
|
|
set(BUILD_SHARED_LIBS OFF)
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static")
|
|
|
|
set(HAVE_TRACE OFF)
|
|
|
|
endif()
|
2022-06-30 10:45:21 +00:00
|
|
|
|
2021-02-28 13:19:04 +00:00
|
|
|
if(NOGIT)
|
|
|
|
add_definitions(-DNOGIT)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(HAVE_TRACE)
|
2021-07-12 16:42:53 +00:00
|
|
|
set(BOX64 box64)
|
2021-02-28 13:19:04 +00:00
|
|
|
else()
|
|
|
|
set(BOX64 box64)
|
|
|
|
endif()
|
|
|
|
|
2021-07-03 07:46:48 +00:00
|
|
|
#set(BOX64_ELF_ADDRESS "0x500062800000") #random load address...
|
2022-11-28 17:56:53 +00:00
|
|
|
set(BOX64_ELF_ADDRESS "0x34800000") #low address
|
2021-02-28 13:19:04 +00:00
|
|
|
|
|
|
|
if(LD80BITS)
|
|
|
|
add_definitions(-DHAVE_LD80BITS)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOALIGN)
|
|
|
|
add_definitions(-DNOALIGN)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(HAVE_TRACE)
|
|
|
|
add_definitions(-DHAVE_TRACE)
|
|
|
|
endif()
|
|
|
|
|
2021-03-14 16:58:04 +00:00
|
|
|
if(ARM_DYNAREC)
|
|
|
|
add_definitions(-DDYNAREC)
|
|
|
|
add_definitions(-DARM64)
|
|
|
|
enable_language(ASM)
|
2022-02-27 08:48:00 +00:00
|
|
|
include_directories("${BOX64_ROOT}/src/dynarec/arm64")
|
|
|
|
set(DYNAREC ON)
|
2023-03-12 13:04:57 +00:00
|
|
|
elseif(RV64_DYNAREC)
|
|
|
|
add_definitions(-DDYNAREC)
|
|
|
|
add_definitions(-DRV64)
|
|
|
|
enable_language(ASM)
|
|
|
|
include_directories("${BOX64_ROOT}/src/dynarec/rv64")
|
|
|
|
set(DYNAREC ON)
|
2024-02-28 15:10:13 +00:00
|
|
|
elseif(LARCH64_DYNAREC)
|
|
|
|
add_definitions(-DDYNAREC)
|
2024-02-28 15:37:18 +00:00
|
|
|
add_definitions(-DLA64)
|
2024-02-28 15:10:13 +00:00
|
|
|
enable_language(ASM)
|
2024-02-28 15:37:18 +00:00
|
|
|
include_directories("${BOX64_ROOT}/src/dynarec/la64")
|
2024-02-28 15:10:13 +00:00
|
|
|
set(DYNAREC ON)
|
2022-02-27 08:48:00 +00:00
|
|
|
else()
|
|
|
|
set(DYNAREC OFF)
|
2021-03-14 16:58:04 +00:00
|
|
|
endif()
|
|
|
|
|
2021-02-28 13:19:04 +00:00
|
|
|
set(BOX64_ROOT ${CMAKE_SOURCE_DIR})
|
|
|
|
|
|
|
|
add_definitions(-std=gnu11 -funwind-tables -fvisibility=hidden)
|
|
|
|
|
|
|
|
if(USE_CCACHE)
|
|
|
|
find_program(CCACHE_FOUND ccache)
|
|
|
|
if(CCACHE_FOUND)
|
|
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
|
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
2021-04-14 10:59:25 +00:00
|
|
|
else()
|
|
|
|
message(SEND_ERROR "ccache not found!")
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
"${BOX64_ROOT}/src/include"
|
|
|
|
"${BOX64_ROOT}/src"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/generated"
|
|
|
|
)
|
|
|
|
|
|
|
|
# git_head.h is a generated file
|
|
|
|
set_source_files_properties(
|
|
|
|
"${BOX64_ROOT}/src/git_head.h"
|
|
|
|
PROPERTIES GENERATED TRUE
|
|
|
|
HEADER_FILE_ONLY TRUE)
|
|
|
|
|
|
|
|
set(ELFLOADER_SRC
|
|
|
|
"${BOX64_ROOT}/src/main.c"
|
2024-03-25 16:42:01 +00:00
|
|
|
"${BOX64_ROOT}/src/core.c"
|
2021-02-28 13:19:04 +00:00
|
|
|
"${BOX64_ROOT}/src/box64context.c"
|
|
|
|
"${BOX64_ROOT}/src/build_info.c"
|
2021-03-01 14:52:05 +00:00
|
|
|
"${BOX64_ROOT}/src/custommem.c"
|
2024-06-03 06:07:11 +00:00
|
|
|
"${BOX64_ROOT}/src/custommmap.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/dynarec.c"
|
2021-03-01 14:52:05 +00:00
|
|
|
"${BOX64_ROOT}/src/elfs/elfloader.c"
|
|
|
|
"${BOX64_ROOT}/src/elfs/elfparser.c"
|
2024-02-15 17:11:57 +00:00
|
|
|
"${BOX64_ROOT}/src/elfs/elfhash.c"
|
2021-03-01 14:52:05 +00:00
|
|
|
"${BOX64_ROOT}/src/elfs/elfload_dump.c"
|
2024-02-10 15:44:28 +00:00
|
|
|
"${BOX64_ROOT}/src/elfs/elfdwarf_private.c"
|
2023-10-30 15:38:15 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64compstrings.c"
|
2021-03-02 10:45:50 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64emu.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64int3.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x87emu_private.c"
|
2021-03-04 10:21:26 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64primop.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run_private.c"
|
2023-11-21 17:00:43 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64shaext.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64syscall.c"
|
2023-06-17 09:32:56 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x86syscall.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64tls.c"
|
2021-03-02 13:49:36 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64trace.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/librarian/librarian.c"
|
|
|
|
"${BOX64_ROOT}/src/librarian/library.c"
|
2021-05-29 16:05:37 +00:00
|
|
|
"${BOX64_ROOT}/src/librarian/dictionnary.c"
|
|
|
|
"${BOX64_ROOT}/src/librarian/symbols.c"
|
2021-03-02 09:51:27 +00:00
|
|
|
"${BOX64_ROOT}/src/libtools/auxval.c"
|
2021-03-05 09:16:02 +00:00
|
|
|
"${BOX64_ROOT}/src/libtools/myalign.c"
|
2021-03-07 10:44:09 +00:00
|
|
|
"${BOX64_ROOT}/src/libtools/signals.c"
|
2021-03-02 14:18:23 +00:00
|
|
|
"${BOX64_ROOT}/src/libtools/threads.c"
|
2023-03-16 06:43:53 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/bitutils.c"
|
2021-03-02 09:47:22 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/box64stack.c"
|
2021-03-02 16:55:55 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/bridge.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/callback.c"
|
2021-03-06 09:24:33 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/my_cpuid.c"
|
2023-12-31 14:49:57 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/fileutils.c"
|
2021-02-28 13:19:04 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/pathcoll.c"
|
2023-12-31 14:49:57 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/rbtree.c"
|
2022-11-27 17:50:47 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/rcfile.c"
|
2021-02-28 13:19:04 +00:00
|
|
|
"${BOX64_ROOT}/src/tools/wine_tools.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/generated/wrapper.c"
|
2021-02-28 13:19:04 +00:00
|
|
|
)
|
2024-02-26 18:22:53 +00:00
|
|
|
if(NOT STATICBUILD)
|
|
|
|
list(APPEND ELFLOADER_SRC
|
|
|
|
"${BOX64_ROOT}/src/mallochook.c"
|
|
|
|
"${BOX64_ROOT}/src/steam.c"
|
|
|
|
"${BOX64_ROOT}/src/libtools/sdl1rwops.c"
|
|
|
|
"${BOX64_ROOT}/src/libtools/sdl2rwops.c"
|
|
|
|
"${BOX64_ROOT}/src/tools/gtkclass.c"
|
|
|
|
"${BOX64_ROOT}/src/librarian/globalsymbols.c"
|
|
|
|
)
|
|
|
|
endif()
|
2023-09-02 09:56:20 +00:00
|
|
|
if(NOT ANDROID)
|
2023-09-24 20:20:21 +00:00
|
|
|
list(APPEND ELFLOADER_SRC
|
2023-09-02 09:56:20 +00:00
|
|
|
"${BOX64_ROOT}/src/libtools/obstack.c"
|
|
|
|
)
|
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
|
2023-03-27 21:21:36 +00:00
|
|
|
set(INTERPRETER
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run0f.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run64.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run66.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run660f.c"
|
2023-11-04 15:03:28 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run66f20f.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run66f30f.c"
|
2023-03-27 21:21:36 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run6664.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run66d9.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run66dd.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run66f0.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run67.c"
|
2024-05-31 13:59:11 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run67avx.c"
|
2023-06-22 13:06:12 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run67_32.c"
|
2023-07-16 08:42:28 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run6764_32.c"
|
2023-03-27 21:21:36 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64run670f.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run6766.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64run67660f.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rund8.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rund9.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runda.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rundb.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rundc.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rundd.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runde.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64rundf.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runf0.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runf20f.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runf30f.c"
|
2024-05-26 07:21:04 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx.c"
|
2024-05-26 10:57:59 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx0f.c"
|
2024-05-31 13:59:11 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx0f38.c"
|
2024-05-26 10:57:59 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx660f.c"
|
2024-05-27 07:53:49 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf20f.c"
|
2024-05-26 10:57:59 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf30f.c"
|
2024-05-27 08:23:56 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx660f38.c"
|
2024-05-27 07:53:49 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavx660f3a.c"
|
2024-05-31 13:59:11 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf20f38.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf30f38.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf20f3a.c"
|
|
|
|
"${BOX64_ROOT}/src/emu/x64runavxf30f3a.c"
|
2023-03-27 21:21:36 +00:00
|
|
|
)
|
|
|
|
|
2024-02-26 18:22:53 +00:00
|
|
|
if(STATICBUILD)
|
|
|
|
set(WRAPPEDS
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedldlinux.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibbsd.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibc.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibcmusl.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibdl.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibm.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedutil.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibresolv.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibrt.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibpthread.c"
|
|
|
|
)
|
|
|
|
else()
|
2021-03-03 15:43:42 +00:00
|
|
|
set(WRAPPEDS
|
2021-03-13 13:10:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedalure.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedalut.c"
|
2021-04-24 08:14:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedatk.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedatkbridge.c"
|
2022-07-24 18:36:24 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedatomic.c"
|
2021-04-24 09:24:15 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedatspi.c"
|
2023-10-10 12:18:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedayatanaappindicator3.c"
|
2021-03-29 18:19:37 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedbz2.c"
|
2023-07-12 16:51:30 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcap.c"
|
2021-04-08 13:46:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcairo.c"
|
2022-11-22 12:14:43 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcairogobject.c"
|
2021-03-26 13:04:49 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcrashhandler.c"
|
2021-04-06 14:58:51 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcrypto.c"
|
2023-03-27 19:35:27 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcrypto3.c"
|
2021-04-07 13:32:17 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedcurl.c"
|
2021-03-26 14:24:40 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappeddbus.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappeddbusglib1.c"
|
2023-10-10 12:18:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappeddbusmenuglib.c"
|
2024-05-17 12:46:22 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappeddecor0.c"
|
2023-10-07 09:17:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedevent21.c"
|
2021-05-16 08:55:51 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedexpat.c"
|
2022-01-22 17:59:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedfaudio.c"
|
2021-04-16 17:39:29 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedflac.c"
|
2021-03-25 19:56:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedfontconfig.c"
|
2022-09-10 10:41:53 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedfreebl3.c"
|
2021-03-25 19:56:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedfreetype.c"
|
2022-03-27 10:33:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgbm.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgconf2.c"
|
2022-07-09 16:38:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgcrypt.c"
|
2022-07-15 12:10:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgdk3.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgdkpixbuf2.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgdkx112.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgio2.c"
|
2024-02-29 11:55:57 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedglesv2.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedglib2.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgmodule2.c"
|
2022-01-22 17:59:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgmp.c"
|
2021-03-25 20:02:47 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgnutls.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgobject2.c"
|
2023-07-12 16:51:30 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgomp.c"
|
2021-09-04 12:07:43 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgssapi.c"
|
2021-07-27 11:52:21 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgssapikrb5.c"
|
2023-09-16 11:49:09 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstallocators.c"
|
2022-01-22 17:59:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstapp.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstaudio.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstbase.c"
|
2023-09-16 11:49:09 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstcheck.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstcontroller.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstfft.c"
|
2022-11-13 08:51:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstgl.c"
|
2023-09-16 11:49:09 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstnet.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstpbutils.c"
|
2022-01-22 17:59:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstreamer.c"
|
2023-09-16 11:49:09 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstriff.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstrtp.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstrtsp.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstsdp.c"
|
2022-01-22 17:59:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgsttag.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgstvideo.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgthread2.c"
|
2022-07-15 12:10:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgtk3.c"
|
2021-09-18 19:01:13 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedgtkx112.c"
|
2021-07-27 11:52:21 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedkrb5.c"
|
2023-10-07 09:17:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlcms2.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedldlinux.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibasound.c"
|
2023-11-30 20:37:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibbsd.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibc.c"
|
2023-04-16 13:04:43 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibcmusl.c"
|
2021-04-25 07:24:28 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibcrypt.c"
|
2021-03-26 13:42:50 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibcups.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibdl.c"
|
2021-12-31 12:55:29 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibdrm.c"
|
2023-03-04 09:31:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibegl.c"
|
2021-06-03 13:21:29 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibform.c"
|
2021-06-02 12:52:10 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibformw.c"
|
2023-08-28 17:02:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibformw6.c"
|
2021-08-10 16:37:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibfuse.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibgl.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibglu.c"
|
2023-03-05 15:42:20 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibglx.c"
|
2023-04-28 16:26:36 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibharfbuzz.c"
|
2023-03-04 09:31:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibibus.c"
|
2021-03-25 15:35:54 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibice.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibm.c"
|
2021-06-02 12:52:10 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibncurses.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibncurses6.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibncursesw.c"
|
2021-10-23 17:02:49 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibncursesw6.c"
|
2023-03-25 12:01:23 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibnuma.c"
|
2021-03-25 10:53:49 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibogg.c"
|
2021-06-03 13:21:29 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibpanel.c"
|
2021-12-31 13:59:50 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibpci.c"
|
2021-07-04 07:58:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibpcre.c"
|
2021-03-03 16:06:00 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibpthread.c"
|
2021-03-25 13:13:05 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibresolv.c"
|
2021-03-03 16:06:00 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibrt.c"
|
2021-03-25 15:35:54 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibsm.c"
|
2021-09-18 19:15:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibsndfile.c"
|
2021-04-06 14:58:51 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibssl.c"
|
2023-03-27 19:35:27 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibssl3.c"
|
2021-06-02 12:52:10 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibtinfo.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibtinfo6.c"
|
2022-03-04 13:41:17 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibusb1.c"
|
2021-03-25 13:14:31 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibuuid.c"
|
2022-09-10 20:09:14 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibva.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibvadrm.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibvawayland.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibvax11.c"
|
2022-11-13 16:27:53 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibvdpau.c"
|
2021-03-25 11:16:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibvorbis.c"
|
2021-03-08 10:24:03 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibx11.c"
|
2021-03-25 12:26:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibx11xcb.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxau.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcb.c"
|
2023-12-26 14:18:41 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbcursor.c"
|
2021-12-31 12:55:29 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbdri2.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbdri3.c"
|
2021-07-05 11:54:05 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbglx.c"
|
2021-07-04 08:30:17 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbkeysyms.c"
|
2022-12-06 16:30:49 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbicccm.c"
|
2021-07-04 08:27:48 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbimage.c"
|
2023-02-12 18:09:14 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbpresent.c"
|
2021-07-04 08:19:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrandr.c"
|
2022-12-06 16:56:17 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrender.c"
|
2022-12-06 16:41:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbrenderutil.c"
|
2021-07-04 08:09:17 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbshape.c"
|
2021-07-04 08:15:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbshm.c"
|
2022-12-06 17:05:42 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbsync.c"
|
2022-12-06 16:35:00 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbutil.c"
|
2022-12-06 17:14:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbxinerama.c"
|
2024-01-07 23:05:15 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbxinput.c"
|
2021-07-04 08:27:48 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbxfixes.c"
|
2022-12-06 17:30:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbxkb.c"
|
2021-07-04 08:34:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcbxtest.c"
|
2021-03-25 12:26:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcomposite.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxcursor.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxdamage.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxdmcp.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxext.c"
|
2021-03-25 12:26:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxfixes.c"
|
2021-04-17 16:47:22 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxft.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxi.c"
|
2021-03-25 12:26:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxmu.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxpm.c"
|
2022-12-04 07:55:32 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxpresent.c"
|
2021-03-08 15:27:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxrandr.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxrender.c"
|
2021-03-25 12:26:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxss.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxt.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxtst.c"
|
2021-03-08 15:27:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibxxf86vm.c"
|
2021-03-09 15:18:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibz.c"
|
2021-03-29 18:19:37 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlzma.c"
|
2021-07-13 16:40:15 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedmpg123.c"
|
2022-04-18 13:40:53 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappednotify.c"
|
2021-10-04 06:04:11 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappednsl.c"
|
2021-09-08 18:55:05 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappednspr4.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappednss3.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappednssutil3.c"
|
2021-03-08 15:21:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedopenal.c"
|
2023-10-24 12:51:02 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedopencl.c"
|
2021-04-08 13:46:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpango.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpangocairo.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpangoft2.c"
|
2024-02-07 20:58:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpam.c"
|
2021-09-21 18:50:52 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedplc4.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedplds4.c"
|
2021-04-18 11:16:54 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpng16.c"
|
2021-03-12 21:47:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpulse.c"
|
2024-01-16 17:22:52 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpulsemainloopglib.c"
|
2021-03-12 21:47:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpulsesimple.c"
|
2021-03-07 19:19:58 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1.c"
|
2021-03-09 15:18:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1image.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1mixer.c"
|
2021-04-14 14:27:53 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1net.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1sound.c"
|
2021-03-09 15:18:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl1ttf.c"
|
2021-09-19 19:29:06 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsecret1.c"
|
2022-07-30 08:42:43 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsoftokn3.c"
|
2021-03-09 15:18:38 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsmpeg.c"
|
2021-03-07 19:19:58 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl2.c"
|
2021-03-13 09:06:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl2image.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl2mixer.c"
|
2021-04-11 13:08:33 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl2net.c"
|
2021-03-13 09:06:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsdl2ttf.c"
|
2021-09-08 18:55:05 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedselinux.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsmime3.c"
|
2021-03-13 09:06:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedsmpeg2.c"
|
2021-09-21 18:50:52 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedssl3.c"
|
2023-04-16 13:04:43 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedtbbbind.c"
|
2022-12-17 10:19:56 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedtbbmalloc.c"
|
2022-10-29 20:32:47 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedtbbmallocproxy.c"
|
2021-06-15 15:08:14 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedtcmallocminimal.c"
|
2021-03-26 21:48:22 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedudev0.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedudev1.c"
|
2022-04-30 12:28:11 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedunwind.c"
|
2021-04-02 07:22:12 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedutil.c"
|
2021-03-25 11:16:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedvorbisfile.c"
|
2024-06-12 14:00:54 +00:00
|
|
|
#"${BOX64_ROOT}/src/wrapped/wrappedwaylandclient.c"
|
|
|
|
#"${BOX64_ROOT}/src/wrapped/wrappedwaylandcursor.c"
|
2022-07-30 15:02:18 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedwaylandegl.c"
|
2021-03-08 15:27:55 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxinerama.c"
|
2021-07-04 09:04:53 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommon.c"
|
2021-07-04 08:48:39 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxkbcommonx11.c"
|
2024-01-18 17:53:19 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxkbregistry.c"
|
2021-06-01 15:13:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxml2.c"
|
2021-11-14 14:19:25 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxslt.c"
|
2021-11-14 14:15:47 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedldapr.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlber.c"
|
2021-11-21 18:14:40 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedvulkan.c"
|
2022-07-15 09:05:22 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedxshmfence.c"
|
2023-02-12 18:09:14 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedd3dadapter9.c"
|
2024-05-02 20:08:06 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc64.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n64.c"
|
2023-09-25 18:23:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc66.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n66.c"
|
2023-04-13 11:20:45 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc67.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n67.c"
|
2023-03-26 07:58:05 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc72.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n72.c"
|
2024-04-02 13:16:26 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc73.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n73.c"
|
2024-01-05 16:05:21 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicuuc74.c"
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedicui18n74.c"
|
2023-12-23 08:32:26 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedidn2.c"
|
2024-02-16 10:40:19 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedanl.c"
|
2024-05-23 05:49:52 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedpsl5.c"
|
2024-05-30 12:34:08 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibssh2.c"
|
2024-06-06 06:12:34 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedp11kit.c"
|
2024-06-06 07:48:31 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibtasn1.c"
|
2024-06-07 08:22:03 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibnettle8.c"
|
2024-06-11 06:02:11 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibunistring2.c"
|
2024-06-12 13:27:37 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedlibhogweed6.c"
|
2021-03-03 15:43:42 +00:00
|
|
|
)
|
2024-02-26 18:22:53 +00:00
|
|
|
endif()
|
2023-09-02 09:56:20 +00:00
|
|
|
if(ANDROID)
|
|
|
|
list(APPEND WRAPPEDS
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedandroidshmem.c"
|
|
|
|
)
|
|
|
|
endif()
|
2023-12-01 13:57:28 +00:00
|
|
|
if(TERMUX)
|
|
|
|
list(APPEND WRAPPEDS
|
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappediconv.c"
|
2023-12-02 15:37:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedtermuxexec.c"
|
2023-12-01 16:09:35 +00:00
|
|
|
"${BOX64_ROOT}/src/wrapped/wrappedandroidsupport.c"
|
2023-12-01 13:57:28 +00:00
|
|
|
)
|
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
|
2023-02-12 18:09:14 +00:00
|
|
|
# If BOX64_ROOT contains a ".c", the build breaks...
|
|
|
|
string(REPLACE ".c" "_private.h" MODROOT ${BOX64_ROOT})
|
|
|
|
set(WRAPPEDS_HEAD "${BOX64_ROOT}/src/wrapped/wrappedd3dadapter9_genvate.h")
|
2021-03-03 15:43:42 +00:00
|
|
|
foreach(A ${WRAPPEDS})
|
2023-02-12 18:09:14 +00:00
|
|
|
string(REPLACE ".c" "_private.h" C ${A})
|
|
|
|
string(REPLACE "${MODROOT}" "${BOX64_ROOT}" B ${C})
|
2021-03-03 15:43:42 +00:00
|
|
|
set(WRAPPEDS_HEAD ${WRAPPEDS_HEAD} ${B})
|
|
|
|
set_source_files_properties(${A} PROPERTIES OBJECT_DEPENDS ${B})
|
|
|
|
endforeach()
|
|
|
|
|
2023-02-12 18:09:14 +00:00
|
|
|
|
2021-03-03 15:43:42 +00:00
|
|
|
set(WRAPPER "${BOX64_ROOT}/src/wrapped/generated/wrapper.c" "${BOX64_ROOT}/src/wrapped/generated/wrapper.h")
|
|
|
|
|
2023-10-15 13:06:42 +00:00
|
|
|
if(NOT CI)
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT "${BOX64_ROOT}/src/wrapped/generated/functions_list.txt"
|
|
|
|
COMMAND "${PYTHON_EXECUTABLE}" "${BOX64_ROOT}/rebuild_wrappers.py"
|
|
|
|
"${BOX64_ROOT}"
|
2024-02-26 18:22:53 +00:00
|
|
|
"PANDORA" "HAVE_LD80BITS" "NOALIGN" "HAVE_TRACE" "ANDROID" "TERMUX" "STATICBUILD" "--"
|
2023-10-15 13:06:42 +00:00
|
|
|
${WRAPPEDS_HEAD}
|
|
|
|
MAIN_DEPENDENCY "${BOX64_ROOT}/rebuild_wrappers.py"
|
|
|
|
DEPENDS ${WRAPPEDS} ${WRAPPEDS_HEAD}
|
|
|
|
BYPRODUCTS ${WRAPPER}
|
|
|
|
)
|
|
|
|
endif ()
|
2021-02-28 13:19:04 +00:00
|
|
|
|
|
|
|
#add_custom_command(
|
|
|
|
# OUTPUT "${BOX64_ROOT}/src/dynarec/last_run.txt"
|
|
|
|
# COMMAND "${PYTHON_EXECUTABLE}" "${BOX64_ROOT}/rebuild_printer.py" "${BOX64_ROOT}"
|
|
|
|
# MAIN_DEPENDENCY "${BOX64_ROOT}/rebuild_printer.py"
|
2021-03-14 16:58:04 +00:00
|
|
|
# DEPENDS "${BOX64_ROOT}/src/dynarec/arm64_instructions.txt"
|
|
|
|
# BYPRODUCTS "${BOX64_ROOT}/src/dynarec/arm64_printer.c"
|
2021-02-28 13:19:04 +00:00
|
|
|
#)
|
|
|
|
|
2021-03-03 15:43:42 +00:00
|
|
|
add_custom_target(WRAPPERS DEPENDS "${BOX64_ROOT}/src/wrapped/generated/functions_list.txt")
|
2021-02-28 13:19:04 +00:00
|
|
|
#add_custom_target(PRINTER DEPENDS "${BOX64_ROOT}/src/dynarec/last_run.txt")
|
|
|
|
|
2022-02-27 08:48:00 +00:00
|
|
|
if(DYNAREC)
|
2021-03-14 16:58:04 +00:00
|
|
|
set(DYNAREC_SRC
|
|
|
|
"${BOX64_ROOT}/src/dynarec/dynablock.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/dynarec_native.c"
|
2023-03-16 18:48:58 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/dynarec_native_functions.c"
|
2023-03-27 21:21:36 +00:00
|
|
|
"${BOX64_ROOT}/src/emu/x64test.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ARM_DYNAREC)
|
|
|
|
set(DYNAREC_SRC
|
|
|
|
${DYNAREC_SRC}
|
2021-03-14 16:58:04 +00:00
|
|
|
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_functions.c"
|
2024-03-07 16:48:35 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_immenc.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_printer.c"
|
2022-10-31 11:05:04 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_jmpnext.c"
|
2021-03-14 16:58:04 +00:00
|
|
|
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_prolog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_epilog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_next.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/arm64_lock.S"
|
2021-03-14 16:58:04 +00:00
|
|
|
)
|
|
|
|
|
2021-03-15 14:36:30 +00:00
|
|
|
set(DYNAREC_PASS
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_helper.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_emit_tests.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_emit_math.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_emit_logic.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_emit_shift.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_00.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_0f.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_64.c"
|
|
|
|
#"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_65.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_66.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_67.c"
|
2023-10-23 14:44:13 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_67_32.c"
|
2024-06-01 11:33:20 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_67_avx.c"
|
2023-10-23 14:44:13 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_6764_32.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_d8.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_d9.c"
|
2023-10-05 06:09:17 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_da.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_db.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_dc.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_dd.c"
|
2022-10-22 08:23:24 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_de.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_df.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_f0.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_660f.c"
|
2023-11-04 15:03:28 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_66f20f.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_66f30f.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_6664.c"
|
2022-04-17 08:55:03 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_66f0.c"
|
2022-02-27 08:48:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_f20f.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_f30f.c"
|
2024-05-30 10:12:45 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_0f.c"
|
2024-06-06 11:47:47 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_0f38.c"
|
2024-05-30 15:39:46 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_66_0f.c"
|
2024-06-01 12:28:32 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_f2_0f.c"
|
2024-05-31 20:33:12 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_f3_0f.c"
|
2024-05-30 14:53:39 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_66_0f38.c"
|
2024-05-30 13:47:19 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_66_0f3a.c"
|
2024-05-31 20:33:12 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_f2_0f38.c"
|
2024-06-01 11:17:50 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/arm64/dynarec_arm64_avx_f2_0f3a.c"
|
2021-03-15 14:36:30 +00:00
|
|
|
)
|
2022-02-27 08:48:00 +00:00
|
|
|
endif()
|
2021-03-15 14:36:30 +00:00
|
|
|
|
2023-03-12 13:04:57 +00:00
|
|
|
if(RV64_DYNAREC)
|
|
|
|
set(DYNAREC_SRC
|
|
|
|
${DYNAREC_SRC}
|
|
|
|
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_functions.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/rv64_printer.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_jmpnext.c"
|
2023-05-01 10:24:46 +00:00
|
|
|
"${BOX64_ROOT}/src/rv64detect.c"
|
2023-03-12 13:04:57 +00:00
|
|
|
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/rv64_prolog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/rv64_epilog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/rv64_next.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/rv64_lock.S"
|
|
|
|
)
|
|
|
|
|
|
|
|
set(DYNAREC_PASS
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_helper.c"
|
2023-03-14 11:03:14 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_emit_tests.c"
|
2023-03-13 07:17:50 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_emit_math.c"
|
2023-03-14 07:22:22 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_emit_logic.c"
|
2023-03-14 08:16:59 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_emit_shift.c"
|
2023-03-12 13:04:57 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_00.c"
|
2023-04-13 11:49:36 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_00_0.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_00_1.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_00_2.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_00_3.c"
|
2023-03-16 16:40:53 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_0f.c"
|
2023-03-19 09:28:33 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_64.c"
|
2023-03-12 13:04:57 +00:00
|
|
|
#"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_65.c"
|
2023-03-16 20:06:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_66.c"
|
2023-05-03 14:39:42 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_67.c"
|
2023-11-13 11:10:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_67_32.c"
|
2023-03-27 08:00:39 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_d8.c"
|
2023-03-21 20:20:35 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_d9.c"
|
2023-11-24 17:24:02 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_da.c"
|
2023-03-22 10:50:16 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_db.c"
|
2023-05-04 15:10:02 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_dc.c"
|
2023-04-28 14:11:16 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_dd.c"
|
2023-04-01 06:35:52 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_de.c"
|
2023-03-30 10:08:40 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_df.c"
|
2023-03-20 18:24:53 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_f0.c"
|
2023-03-16 20:06:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_660f.c"
|
2023-11-04 15:03:28 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_66f20f.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_66f30f.c"
|
2023-04-30 15:53:00 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_6664.c"
|
2023-04-28 15:20:09 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_66f0.c"
|
2023-03-22 17:49:49 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_f20f.c"
|
2023-03-16 06:32:58 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/rv64/dynarec_rv64_f30f.c"
|
2023-03-12 13:04:57 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2024-02-28 15:10:13 +00:00
|
|
|
if(LARCH64_DYNAREC)
|
|
|
|
set(DYNAREC_SRC
|
|
|
|
${DYNAREC_SRC}
|
|
|
|
|
2024-02-28 15:37:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_functions.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/la64_printer.c"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_jmpnext.c"
|
2024-02-28 15:10:13 +00:00
|
|
|
|
2024-02-28 15:37:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/la64_prolog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/la64_epilog.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/la64_next.S"
|
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/la64_lock.S"
|
2024-02-28 15:10:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(DYNAREC_PASS
|
2024-02-28 15:37:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_helper.c"
|
2024-02-29 18:33:36 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_emit_tests.c"
|
2024-02-29 07:16:40 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_emit_math.c"
|
2024-03-02 19:10:04 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_emit_shift.c"
|
2024-03-04 10:36:27 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_emit_logic.c"
|
2024-02-28 15:37:18 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_00.c"
|
2024-03-02 19:10:04 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_0f.c"
|
2024-04-05 15:56:24 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_64.c"
|
2024-03-02 19:10:04 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_66.c"
|
2024-06-02 08:25:57 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_67.c"
|
2024-03-02 17:26:07 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_f30f.c"
|
2024-03-02 19:10:04 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_660f.c"
|
2024-03-05 11:03:41 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_f0.c"
|
2024-04-04 11:43:30 +00:00
|
|
|
"${BOX64_ROOT}/src/dynarec/la64/dynarec_la64_f20f.c"
|
2024-02-28 15:10:13 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2022-02-27 08:48:00 +00:00
|
|
|
if(DYNAREC)
|
2023-03-13 07:17:50 +00:00
|
|
|
set(DYNAREC_PASS
|
|
|
|
"${BOX64_ROOT}/src/wrapped/generated/wrapper.h"
|
2022-02-27 12:08:28 +00:00
|
|
|
${DYNAREC_PASS}
|
|
|
|
"${BOX64_ROOT}/src/dynarec/dynarec_native_pass.c"
|
|
|
|
)
|
2021-03-14 16:58:04 +00:00
|
|
|
|
2022-02-27 08:48:00 +00:00
|
|
|
add_library(dynarec_native OBJECT ${DYNAREC_SRC})
|
|
|
|
|
|
|
|
add_library(native_pass0 OBJECT ${DYNAREC_PASS})
|
|
|
|
set_target_properties(native_pass0 PROPERTIES COMPILE_FLAGS "-DSTEP=0")
|
|
|
|
add_library(native_pass1 OBJECT ${DYNAREC_PASS})
|
|
|
|
set_target_properties(native_pass1 PROPERTIES COMPILE_FLAGS "-DSTEP=1")
|
|
|
|
add_library(native_pass2 OBJECT ${DYNAREC_PASS})
|
|
|
|
set_target_properties(native_pass2 PROPERTIES COMPILE_FLAGS "-DSTEP=2")
|
|
|
|
add_library(native_pass3 OBJECT ${DYNAREC_PASS})
|
|
|
|
set_target_properties(native_pass3 PROPERTIES COMPILE_FLAGS "-DSTEP=3")
|
2023-03-27 21:21:36 +00:00
|
|
|
add_library(test_interpreter OBJECT ${INTERPRETER})
|
|
|
|
set_target_properties(test_interpreter PROPERTIES COMPILE_FLAGS "-DTEST_INTERPRETER")
|
2022-02-27 08:48:00 +00:00
|
|
|
add_dependencies(native_pass0 WRAPPERS)
|
|
|
|
add_dependencies(native_pass1 WRAPPERS)
|
|
|
|
add_dependencies(native_pass2 WRAPPERS)
|
|
|
|
add_dependencies(native_pass3 WRAPPERS)
|
2021-03-14 16:58:04 +00:00
|
|
|
|
2021-04-14 10:59:25 +00:00
|
|
|
add_library(dynarec STATIC
|
2022-02-27 08:48:00 +00:00
|
|
|
$<TARGET_OBJECTS:dynarec_native>
|
|
|
|
$<TARGET_OBJECTS:native_pass0>
|
|
|
|
$<TARGET_OBJECTS:native_pass1>
|
|
|
|
$<TARGET_OBJECTS:native_pass2>
|
|
|
|
$<TARGET_OBJECTS:native_pass3>
|
2023-03-27 21:21:36 +00:00
|
|
|
$<TARGET_OBJECTS:test_interpreter>
|
2021-03-14 16:58:04 +00:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2021-02-28 13:19:04 +00:00
|
|
|
# creates git_head.h
|
2022-02-27 08:48:00 +00:00
|
|
|
if(DYNAREC)
|
2021-03-14 16:58:04 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT "${BOX64_ROOT}/src/git_head.h"
|
2023-02-05 10:11:29 +00:00
|
|
|
COMMAND sh -c "echo \\\#define GITREV \\\"$(git rev-parse --short HEAD)\\\">\"${BOX64_ROOT}/src/git_head.h\""
|
2023-03-27 21:21:36 +00:00
|
|
|
DEPENDS dynarec ${ELFLOADER_SRC} ${INTERPRETER} ${WRAPPEDS}
|
2021-03-14 16:58:04 +00:00
|
|
|
VERBATIM)
|
|
|
|
else()
|
2021-02-28 13:19:04 +00:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT "${BOX64_ROOT}/src/git_head.h"
|
2023-02-05 10:11:29 +00:00
|
|
|
COMMAND sh -c "echo \\\#define GITREV \\\"$(git rev-parse --short HEAD)\\\">\"${BOX64_ROOT}/src/git_head.h\""
|
2023-03-27 21:21:36 +00:00
|
|
|
DEPENDS ${ELFLOADER_SRC} ${INTERPRETER} ${WRAPPEDS}
|
2021-02-28 13:19:04 +00:00
|
|
|
VERBATIM)
|
2021-03-14 16:58:04 +00:00
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
|
2023-03-27 21:21:36 +00:00
|
|
|
add_library(interpreter OBJECT ${INTERPRETER})
|
|
|
|
|
2021-03-03 15:43:42 +00:00
|
|
|
add_executable(${BOX64} ${ELFLOADER_SRC} ${WRAPPEDS} "${BOX64_ROOT}/src/git_head.h")
|
2021-04-14 10:59:25 +00:00
|
|
|
set_target_properties(${BOX64} PROPERTIES ENABLE_EXPORTS ON)
|
2021-03-03 15:43:42 +00:00
|
|
|
add_dependencies(${BOX64} WRAPPERS)
|
2021-02-28 13:19:04 +00:00
|
|
|
#add_dependencies(${BOX64} PRINTER)
|
2022-03-04 13:41:17 +00:00
|
|
|
#target_link_libraries(${BOX64} c m dl rt pthread resolv)
|
2022-05-22 15:49:54 +00:00
|
|
|
if(STATICBUILD)
|
2024-02-26 18:22:53 +00:00
|
|
|
#set_target_properties(${BOX64} PROPERTIES LINK_FLAGS "-fuse-ld=gold -static -Wl,--no-relax -Wl,--allow-multiple-definition -ldl -lrt -lpthread -lresolv -lc -lutil -lm -Wl,-defsym,_DYNAMIC=0 -pthread")
|
|
|
|
target_link_libraries(${BOX64} c m dl pthread resolv util bsd c)
|
2022-05-22 15:49:54 +00:00
|
|
|
else()
|
2023-09-02 09:56:20 +00:00
|
|
|
if(ANDROID)
|
2023-11-27 15:26:36 +00:00
|
|
|
if(TERMUX)
|
2024-01-31 14:35:33 +00:00
|
|
|
target_link_libraries(${BOX64} c m dl android-sysv-semaphore)
|
2023-11-27 15:26:36 +00:00
|
|
|
else()
|
2024-01-31 14:35:33 +00:00
|
|
|
target_link_libraries(${BOX64} c m dl)
|
2023-11-27 15:26:36 +00:00
|
|
|
endif()
|
2023-09-02 09:56:20 +00:00
|
|
|
else()
|
2024-01-31 14:20:45 +00:00
|
|
|
set_target_properties(${BOX64} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed -lc -lm -ldl -lrt -lpthread -lresolv -lutil -Wl,--as-needed -pthread")
|
2023-09-02 09:56:20 +00:00
|
|
|
endif()
|
2022-05-22 15:49:54 +00:00
|
|
|
endif()
|
2022-02-27 11:52:28 +00:00
|
|
|
if(DYNAREC)
|
2021-02-28 13:19:04 +00:00
|
|
|
target_link_libraries(${BOX64} dynarec)
|
|
|
|
endif()
|
2023-03-27 21:21:36 +00:00
|
|
|
target_link_libraries(${BOX64} interpreter)
|
2021-02-28 13:19:04 +00:00
|
|
|
|
|
|
|
if(${CMAKE_VERSION} VERSION_LESS "3.13")
|
2021-04-13 13:05:19 +00:00
|
|
|
if(NOT NOLOADADDR)
|
2023-11-26 15:47:29 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR WITH_MOLD)
|
2021-07-30 13:00:18 +00:00
|
|
|
set_target_properties(${BOX64} PROPERTIES LINK_FLAGS "-Wl,--image-base=${BOX64_ELF_ADDRESS}")
|
2021-07-30 12:42:01 +00:00
|
|
|
else()
|
|
|
|
set_target_properties(${BOX64} PROPERTIES LINK_FLAGS "-Wl,-Ttext-segment,${BOX64_ELF_ADDRESS}")
|
|
|
|
endif()
|
2021-04-13 13:05:19 +00:00
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
else()
|
2021-04-14 10:59:25 +00:00
|
|
|
# If symbols are missing, try this: target_link_options(${BOX64} PUBLIC -rdynamic)
|
2021-04-13 13:05:19 +00:00
|
|
|
if(NOT NOLOADADDR)
|
2023-11-26 15:47:29 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR WITH_MOLD)
|
2021-07-30 13:00:18 +00:00
|
|
|
target_link_options(${BOX64} PUBLIC LINKER:--image-base=${BOX64_ELF_ADDRESS})
|
2021-07-30 12:42:01 +00:00
|
|
|
else()
|
|
|
|
target_link_options(${BOX64} PUBLIC LINKER:-Ttext-segment,${BOX64_ELF_ADDRESS})
|
|
|
|
endif()
|
2021-04-13 13:05:19 +00:00
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
|
2023-07-23 11:59:07 +00:00
|
|
|
string(COMPARE EQUAL "${CMAKE_SYSTEM_PROCESSOR}" "i686" _x86)
|
|
|
|
string(COMPARE EQUAL "${CMAKE_SYSTEM_PROCESSOR}" "x86_64" _x86_64)
|
|
|
|
string(COMPARE EQUAL "${CMAKE_SYSTEM_PROCESSOR}" "aarch64" _aarch64)
|
|
|
|
string(COMPARE EQUAL "${CMAKE_SYSTEM_PROCESSOR}" "riscv64" _riscv64)
|
2021-07-06 20:35:21 +00:00
|
|
|
|
|
|
|
if(_x86_64 OR _aarch64)
|
|
|
|
add_definitions(-DCONFIG_64BIT)
|
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
|
|
|
|
if(NOT _x86 AND NOT _x86_64)
|
2023-12-03 15:24:46 +00:00
|
|
|
if(NOT TERMUX)
|
|
|
|
install(TARGETS ${BOX64}
|
2021-02-28 13:19:04 +00:00
|
|
|
RUNTIME DESTINATION bin)
|
2023-12-03 15:24:46 +00:00
|
|
|
else()
|
|
|
|
install(TARGETS ${BOX64}
|
|
|
|
RUNTIME DESTINATION ${TERMUX_PATH}/usr/bin)
|
|
|
|
endif()
|
2023-04-06 06:11:29 +00:00
|
|
|
if(NOT NO_CONF_INSTALL)
|
|
|
|
configure_file(system/box64.conf.cmake system/box64.conf)
|
2023-11-28 08:14:40 +00:00
|
|
|
if(NOT TERMUX)
|
|
|
|
install(FILES ${CMAKE_BINARY_DIR}/system/box64.conf DESTINATION /etc/binfmt.d/)
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/system/box64.box64rc DESTINATION /etc/)
|
|
|
|
else()
|
2023-12-27 19:47:04 +00:00
|
|
|
install(FILES ${CMAKE_BINARY_DIR}/system/box64.conf DESTINATION ${TERMUX_PATH}/usr/etc/binfmt.d/)
|
2023-11-28 08:14:40 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/system/box64.box64rc DESTINATION ${TERMUX_PATH}/usr/etc/)
|
|
|
|
endif()
|
|
|
|
|
2023-04-06 06:11:29 +00:00
|
|
|
endif()
|
2024-04-02 16:44:47 +00:00
|
|
|
set(INSTALL_PATH "/usr/lib/x86_64-linux-gnu/")
|
2023-03-26 08:13:45 +00:00
|
|
|
if(NOT NO_LIB_INSTALL)
|
2023-11-28 08:14:40 +00:00
|
|
|
if(NOT TERMUX)
|
2024-04-02 16:44:47 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libstdc++.so.5 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libstdc++.so.6 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libgcc_s.so.1 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libpng12.so.0 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libcrypto.so.1.1 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libssl.so.1.1 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libunwind.so.8 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedx509.so.1 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedx509.so.0 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedtls.so.14 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedtls.so.12 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedcrypto.so.7 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedcrypto.so.3 DESTINATION ${INSTALL_PATH})
|
2024-06-12 14:00:54 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libffi.so.8 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libwayland-client.so.0 DESTINATION ${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libwayland-cursor.so.0 DESTINATION ${INSTALL_PATH})
|
2024-04-02 16:44:47 +00:00
|
|
|
# Create symlinks
|
|
|
|
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${INSTALL_PATH}libssl.so.1.1 ${INSTALL_PATH}libssl.so.1.0.0)")
|
|
|
|
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${INSTALL_PATH}libcrypto.so.1.1 ${INSTALL_PATH}libcrypto.so.1.0.0)")
|
2023-11-28 08:14:40 +00:00
|
|
|
else()
|
2024-04-02 16:44:47 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libstdc++.so.5 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libstdc++.so.6 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libgcc_s.so.1 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libpng12.so.0 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libcrypto.so.1.1 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libssl.so.1.1 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libunwind.so.8 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedx509.so.1 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedx509.so.0 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedtls.so.14 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedtls.so.12 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedcrypto.so.7 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libmbedcrypto.so.3 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
2024-06-12 14:00:54 +00:00
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libffi.so.8 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libwayland-client.so.0 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
|
|
|
install(FILES ${CMAKE_SOURCE_DIR}/x64lib/libwayland-cursor.so.0 DESTINATION ${TERMUX_PATH}${INSTALL_PATH})
|
2023-11-28 08:14:40 +00:00
|
|
|
endif()
|
2023-03-26 08:13:45 +00:00
|
|
|
endif()
|
2021-02-28 13:19:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT TARGET uninstall)
|
|
|
|
configure_file(
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
|
|
|
|
IMMEDIATE @ONLY)
|
|
|
|
|
|
|
|
add_custom_target(uninstall
|
|
|
|
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
|
|
|
|
endif()
|
|
|
|
|
2021-07-09 12:26:29 +00:00
|
|
|
set(CPACK_GENERATOR "DEB")
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "ptitSeb")
|
|
|
|
set(CPACK_PACKAGE_CONTACT "ptitSeb@box86.org")
|
|
|
|
set(CPACK_PACKAGE_DESCRIPTION "Box64 - Linux Userspace x86_64 Emulator with a twist")
|
2023-11-28 08:14:40 +00:00
|
|
|
if(NOT TERMUX)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6")
|
2023-12-02 15:37:35 +00:00
|
|
|
else()
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libandroid-sysv-semaphore")
|
2023-11-28 08:14:40 +00:00
|
|
|
endif()
|
2021-07-09 12:26:29 +00:00
|
|
|
set(CPACK_PACKAGE_HOMEPAGE_URL, "https://box86.org")
|
|
|
|
file(STRINGS "${BOX64_ROOT}/src/box64version.h" TEMP_STRING REGEX "BOX64_MAJOR\\s*")
|
|
|
|
string(REGEX REPLACE "BOX64_MAJOR" "" TEMP_STRING ${TEMP_STRING})
|
|
|
|
string(REGEX MATCH "[0-9]" BOX64_MAJOR ${TEMP_STRING})
|
|
|
|
file(STRINGS "${BOX64_ROOT}/src/box64version.h" TEMP_STRING REGEX "BOX64_MINOR\\s*")
|
|
|
|
string(REGEX REPLACE "BOX64_MINOR" "" TEMP_STRING ${TEMP_STRING})
|
|
|
|
string(REGEX MATCH "[0-9]" BOX64_MINOR ${TEMP_STRING})
|
|
|
|
file(STRINGS "${BOX64_ROOT}/src/box64version.h" TEMP_STRING REGEX "BOX64_REVISION\\s*")
|
|
|
|
string(REGEX REPLACE "BOX64_REVISION" "" TEMP_STRING ${TEMP_STRING})
|
|
|
|
string(REGEX MATCH "[0-9]" BOX64_REVISION ${TEMP_STRING})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MAJOR ${BOX64_MAJOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_MINOR ${BOX64_MINOR})
|
|
|
|
set(CPACK_PACKAGE_VERSION_PATCH ${BOX64_REVISION})
|
2023-12-03 17:18:05 +00:00
|
|
|
if(NOT TERMUX)
|
2021-07-10 08:01:49 +00:00
|
|
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/postinst")
|
2023-12-03 17:18:05 +00:00
|
|
|
endif()
|
2021-07-10 08:01:49 +00:00
|
|
|
if(_aarch64)
|
2023-11-28 08:14:40 +00:00
|
|
|
if(TERMUX)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "aarch64")
|
|
|
|
else()
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "arm64")
|
|
|
|
endif()
|
2023-03-26 08:13:45 +00:00
|
|
|
elseif(__riscv64)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "riscv64")
|
2021-07-10 08:01:49 +00:00
|
|
|
elseif(_x86_64)
|
|
|
|
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "x86_64")
|
|
|
|
else()
|
|
|
|
#probably wrong...
|
|
|
|
execute_process(COMMAND "dpkg --print-architecture" OUTPUT_VARIABLE CPACK_DEBIAN_PACKAGE_ARCHITECTURE)
|
|
|
|
endif()
|
2023-12-03 17:18:05 +00:00
|
|
|
if(TERMUX)
|
|
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "${TERMUX_PATH}/usr")
|
|
|
|
endif()
|
|
|
|
if(NOT TERMUX)
|
|
|
|
set(CPACK_DEBIAN_FILE_NAME "${BOX64}-${BOX64_MAJOR}.${BOX64_MINOR}.${BOX64_REVISION}_${CMAKE_SYSTEM_NAME}-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
|
|
|
|
else()
|
|
|
|
set(CPACK_DEBIAN_FILE_NAME "${BOX64}-${BOX64_MAJOR}.${BOX64_MINOR}.${BOX64_REVISION}_Termux-${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}.deb")
|
|
|
|
endif()
|
2021-07-09 12:26:29 +00:00
|
|
|
INCLUDE(CPack)
|
|
|
|
|
2024-02-14 08:14:01 +00:00
|
|
|
if(NOT ANDROID)
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(bootSyscall ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test01 -D TEST_OUTPUT=tmpfile01.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref01.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(bootSyscallC ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test02 -D TEST_OUTPUT=tmpfile02.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref02.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(printf ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test03 -D TEST_OUTPUT=tmpfile03.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref03.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(args ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test04 -D TEST_ARGS2=yeah -D TEST_OUTPUT=tmpfile04.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref04.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(maths1 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test05 -D TEST_ARGS2=7 -D TEST_OUTPUT=tmpfile05.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref05.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(threadsStart ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test06 -D TEST_OUTPUT=tmpfile06.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref06.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(trig ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test07 -D TEST_OUTPUT=tmpfile07.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref07.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(pi ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test08 -D TEST_OUTPUT=tmpfile08.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref08.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(fork ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test09 -D TEST_OUTPUT=tmpfile09.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref09.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(cppThreads ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test10 -D TEST_OUTPUT=tmpfile10.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref10.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(tlsData ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test11 -D TEST_OUTPUT=tmpfile11.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref11.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(fpu ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test12 -D TEST_OUTPUT=tmpfile12.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref12.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(contexts ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test13 -D TEST_OUTPUT=tmpfile13.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref13.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
#add_test(conditionalThreads ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test14 -D TEST_OUTPUT=tmpfile14.txt
|
2021-03-07 15:14:39 +00:00
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref14.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2021-02-28 13:19:04 +00:00
|
|
|
|
2022-09-29 08:46:02 +00:00
|
|
|
add_test(linkingIndirectNoversion ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test15 -D TEST_OUTPUT=tmpfile15.txt
|
2021-03-08 17:34:07 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref15.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-01-28 18:09:06 +00:00
|
|
|
add_test(sse_asm ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test16 -D TEST_OUTPUT=tmpfile16.txt
|
2021-06-06 18:32:55 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref16.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-01-28 18:09:06 +00:00
|
|
|
set_tests_properties(sse_asm PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTROUND=0")
|
2023-03-13 07:17:50 +00:00
|
|
|
|
2023-01-28 18:09:06 +00:00
|
|
|
add_test(sse_intrinsics ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-02-14 12:13:12 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test17 -D TEST_OUTPUT=tmpfile17.txt
|
2021-07-02 08:17:28 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref17.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-01-29 15:14:27 +00:00
|
|
|
set_tests_properties(sse_intrinsics PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTNAN=0;BOX64_DYNAREC_FASTROUND=0")
|
2023-03-13 07:17:50 +00:00
|
|
|
|
2022-02-14 12:13:12 +00:00
|
|
|
add_test(aes ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test18 -D TEST_OUTPUT=tmpfile18.txt
|
2021-08-28 14:46:59 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref18.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-02-14 12:13:12 +00:00
|
|
|
add_test(backtrace ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test19 -D TEST_OUTPUT=tmpfile19.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref19.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2022-07-03 12:14:17 +00:00
|
|
|
add_test(irelative_reloc ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test20 -D TEST_OUTPUT=tmpfile20.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref20.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-09-04 07:29:55 +00:00
|
|
|
add_test(longjumpInSignals ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-09-29 09:24:42 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test21 -D TEST_OUTPUT=tmpfile21.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref21.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-09-04 07:29:55 +00:00
|
|
|
add_test(x87 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-09-29 09:24:42 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test22 -D TEST_OUTPUT=tmpfile22.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref22.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-09-04 07:29:55 +00:00
|
|
|
set_tests_properties(x87 PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTROUND=0")
|
2023-04-28 14:11:16 +00:00
|
|
|
|
2023-09-04 07:29:55 +00:00
|
|
|
add_test(pshufb ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test23 -D TEST_OUTPUT=tmpfile23.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref23.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-09-24 20:20:21 +00:00
|
|
|
add_test(bswap ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test24 -D TEST_OUTPUT=tmpfile24.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref24.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2023-10-14 16:49:30 +00:00
|
|
|
add_test(x87cache ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test25 -D TEST_OUTPUT=tmpfile25.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref25.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-11-24 17:24:02 +00:00
|
|
|
|
2023-10-25 12:14:11 +00:00
|
|
|
add_test(feround ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test26 -D TEST_OUTPUT=tmpfile26.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref26.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-11-21 17:00:43 +00:00
|
|
|
set_tests_properties(feround PROPERTIES ENVIRONMENT "BOX64_SYNC_ROUNDING=1")
|
2023-11-24 17:24:02 +00:00
|
|
|
|
2023-10-30 15:38:15 +00:00
|
|
|
add_test(sse4_2 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test27 -D TEST_OUTPUT=tmpfile27.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref27.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-11-24 17:24:02 +00:00
|
|
|
|
2023-11-21 17:00:43 +00:00
|
|
|
add_test(shaext ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test28 -D TEST_OUTPUT=tmpfile28.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref28.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-11-24 17:24:02 +00:00
|
|
|
|
2023-12-03 17:26:11 +00:00
|
|
|
add_test(lock ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test29 -D TEST_OUTPUT=tmpfile29.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref29.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2024-06-05 17:44:25 +00:00
|
|
|
|
|
|
|
add_test(avx_intrinsics ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test30 -D TEST_OUTPUT=tmpfile30.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref30.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
set_tests_properties(avx_intrinsics PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTNAN=0;BOX64_DYNAREC_FASTROUND=0;BOX64_AVX=2")
|
|
|
|
|
2024-02-14 08:14:01 +00:00
|
|
|
else()
|
|
|
|
|
|
|
|
add_test(bootSyscall ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test01_android -D TEST_OUTPUT=tmpfile01.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref01.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(bootSyscallC ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test02_android -D TEST_OUTPUT=tmpfile02.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref02.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(printf ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test03_android -D TEST_OUTPUT=tmpfile03.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref03.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-12-03 17:26:11 +00:00
|
|
|
|
2024-02-14 08:14:01 +00:00
|
|
|
add_test(args ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test04_android -D TEST_ARGS2=yeah -D TEST_OUTPUT=tmpfile04.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref04.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(maths1 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test05_android -D TEST_ARGS2=7 -D TEST_OUTPUT=tmpfile05.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref05.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(threadsStart ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test06_android -D TEST_OUTPUT=tmpfile06.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref06.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
2024-04-22 13:57:17 +00:00
|
|
|
#add_test(trig ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test07_android -D TEST_OUTPUT=tmpfile07.txt
|
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref07.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2024-02-14 08:14:01 +00:00
|
|
|
|
|
|
|
add_test(pi ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test08_android -D TEST_OUTPUT=tmpfile08.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref08.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(fork ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test09_android -D TEST_OUTPUT=tmpfile09.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref09.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(fpu ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test12_android -D TEST_OUTPUT=tmpfile12.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref12_android.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(linkingIndirectNoversion ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test15_android -D TEST_OUTPUT=tmpfile15.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref15.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
# Box64 for Android now have problems with test16, then disable it for now
|
|
|
|
|
|
|
|
#add_test(sse_asm ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test16_android -D TEST_OUTPUT=tmpfile16.txt
|
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref16.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
# Box64 for Android now have problems with test17, then disable it for now
|
|
|
|
|
|
|
|
#set_tests_properties(sse_asm PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTROUND=0")
|
|
|
|
|
|
|
|
#add_test(sse_intrinsics ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test17_android -D TEST_OUTPUT=tmpfile17.txt
|
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref17_android.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
#set_tests_properties(sse_intrinsics PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTNAN=0;BOX64_DYNAREC_FASTROUND=0")
|
|
|
|
|
|
|
|
add_test(aes ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test18_android -D TEST_OUTPUT=tmpfile18.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref18.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2023-09-24 20:20:21 +00:00
|
|
|
|
2024-02-14 08:14:01 +00:00
|
|
|
# Android don't have backtrace symbols
|
|
|
|
|
|
|
|
add_test(irelative_reloc ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test20_android -D TEST_OUTPUT=tmpfile20.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref20.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(longjumpInSignals ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test21_android -D TEST_OUTPUT=tmpfile21.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref21.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(x87 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test22_android -D TEST_OUTPUT=tmpfile22.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref22_android.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
set_tests_properties(x87 PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTROUND=0")
|
|
|
|
|
|
|
|
add_test(pshufb ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test23_android -D TEST_OUTPUT=tmpfile23.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref23.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(bswap ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test24_android -D TEST_OUTPUT=tmpfile24.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref24.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(x87cache ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test25_android -D TEST_OUTPUT=tmpfile25.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref25.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(feround ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test26_android -D TEST_OUTPUT=tmpfile26.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref26.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
set_tests_properties(feround PROPERTIES ENVIRONMENT "BOX64_SYNC_ROUNDING=1")
|
|
|
|
|
2024-04-22 15:31:00 +00:00
|
|
|
# TODO: need to regen test with latest test27.c sources
|
|
|
|
|
|
|
|
#add_test(sse4_2 ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test27_android -D TEST_OUTPUT=tmpfile27.txt
|
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref27.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2024-02-14 08:14:01 +00:00
|
|
|
|
|
|
|
add_test(shaext ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test28_android -D TEST_OUTPUT=tmpfile28.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref28.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
|
|
|
|
add_test(lock ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test29_android -D TEST_OUTPUT=tmpfile29.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref29.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
2024-06-05 17:44:25 +00:00
|
|
|
|
|
|
|
#add_test(avx_intrinsics ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
# -D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/test30_android -D TEST_OUTPUT=tmpfile30.txt
|
|
|
|
# -D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/ref30.txt
|
|
|
|
# -P ${CMAKE_SOURCE_DIR}/runTest.cmake )
|
|
|
|
#
|
|
|
|
#set_tests_properties(avx_intrinsics PROPERTIES ENVIRONMENT "BOX64_DYNAREC_FASTNAN=0;BOX64_DYNAREC_FASTROUND=0 BOX64_AVX=2")
|
|
|
|
|
|
|
|
|
2024-02-14 08:14:01 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT ANDROID)
|
2023-09-04 07:29:55 +00:00
|
|
|
file(GLOB extension_tests "${CMAKE_SOURCE_DIR}/tests/extensions/*.c")
|
2021-02-28 13:19:04 +00:00
|
|
|
foreach(file ${extension_tests})
|
|
|
|
get_filename_component(testname "${file}" NAME_WE)
|
|
|
|
add_test(NAME "${testname}" COMMAND ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
2022-01-07 08:37:23 +00:00
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/extensions/${testname} -D TEST_OUTPUT=tmpfile-${testname}.txt
|
2021-02-28 13:19:04 +00:00
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/extensions/${testname}.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake)
|
|
|
|
endforeach()
|
2024-02-14 08:14:01 +00:00
|
|
|
else()
|
|
|
|
|
|
|
|
file(GLOB extension_tests "${CMAKE_SOURCE_DIR}/tests/extensions/*.c")
|
|
|
|
foreach(file ${extension_tests})
|
|
|
|
get_filename_component(testname "${file}" NAME_WE)
|
|
|
|
add_test(NAME "${testname}" COMMAND ${CMAKE_COMMAND} -D TEST_PROGRAM=${CMAKE_BINARY_DIR}/${BOX64}
|
|
|
|
-D TEST_ARGS=${CMAKE_SOURCE_DIR}/tests/extensions/${testname}_android -D TEST_OUTPUT=tmpfile-${testname}.txt
|
|
|
|
-D TEST_REFERENCE=${CMAKE_SOURCE_DIR}/tests/extensions/${testname}.txt
|
|
|
|
-P ${CMAKE_SOURCE_DIR}/runTest.cmake)
|
|
|
|
endforeach()
|
2024-04-02 16:44:47 +00:00
|
|
|
endif()
|