citra-emu
/
citra-canary
Archived
1
0
Fork 0

CMakeLists: Disable dynarmic on ¬x86_64

This commit is contained in:
Emmanuel Gil Peyrot 2018-01-08 17:58:00 +01:00
parent 6773546d5c
commit 2cd2a7491c
2 changed files with 18 additions and 10 deletions

View File

@ -11,11 +11,13 @@ target_include_directories(catch-single-include INTERFACE catch/single_include)
add_subdirectory(cryptopp) add_subdirectory(cryptopp)
# Dynarmic # Dynarmic
# Dynarmic will skip defining xbyak if it's already defined, we then define it below if (ARCHITECTURE_x86_64)
add_library(xbyak INTERFACE) # Dynarmic will skip defining xbyak if it's already defined, we then define it below
option(DYNARMIC_TESTS OFF) add_library(xbyak INTERFACE)
set(DYNARMIC_NO_BUNDLED_FMT ON) option(DYNARMIC_TESTS OFF)
add_subdirectory(dynarmic) set(DYNARMIC_NO_BUNDLED_FMT ON)
add_subdirectory(dynarmic)
endif()
# libfmt # libfmt
add_subdirectory(fmt) add_subdirectory(fmt)

View File

@ -1,10 +1,6 @@
add_library(core STATIC add_library(core STATIC
3ds.h 3ds.h
arm/arm_interface.h arm/arm_interface.h
arm/dynarmic/arm_dynarmic.cpp
arm/dynarmic/arm_dynarmic.h
arm/dynarmic/arm_dynarmic_cp15.cpp
arm/dynarmic/arm_dynarmic_cp15.h
arm/dyncom/arm_dyncom.cpp arm/dyncom/arm_dyncom.cpp
arm/dyncom/arm_dyncom.h arm/dyncom/arm_dyncom.h
arm/dyncom/arm_dyncom_dec.cpp arm/dyncom/arm_dyncom_dec.cpp
@ -404,7 +400,17 @@ add_library(core STATIC
create_target_directory_groups(core) create_target_directory_groups(core)
target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core) target_link_libraries(core PUBLIC common PRIVATE audio_core network video_core)
target_link_libraries(core PUBLIC Boost::boost PRIVATE cryptopp dynarmic fmt) target_link_libraries(core PUBLIC Boost::boost PRIVATE cryptopp fmt)
if (ENABLE_WEB_SERVICE) if (ENABLE_WEB_SERVICE)
target_link_libraries(core PUBLIC json-headers web_service) target_link_libraries(core PUBLIC json-headers web_service)
endif() endif()
if (ARCHITECTURE_x86_64)
add_library(core STATIC
arm/dynarmic/arm_dynarmic.cpp
arm/dynarmic/arm_dynarmic.h
arm/dynarmic/arm_dynarmic_cp15.cpp
arm/dynarmic/arm_dynarmic_cp15.h
)
target_link_libraries(core PRIVATE dynarmic)
endif()